Applied coding standards.
This commit is contained in:
parent
2ca4b42846
commit
7ff0ba8061
|
@ -115,15 +115,15 @@ class PostToOrderOpTableMigrator extends MetaToCustomTableMigrator {
|
|||
'type' => 'date_epoch',
|
||||
'destination' => 'date_paid_gmt',
|
||||
),
|
||||
'_paid_date' => array( // For compatibility with WC < 2.6
|
||||
'_paid_date' => array( // For compatibility with WC < 2.6.
|
||||
'type' => 'date',
|
||||
'destination' => 'date_paid_gmt'
|
||||
'destination' => 'date_paid_gmt',
|
||||
),
|
||||
'_date_completed' => array(
|
||||
'type' => 'date_epoch',
|
||||
'destination' => 'date_completed_gmt',
|
||||
),
|
||||
'_completed_date' => array( // For compatibility with WC < 2.6
|
||||
'_completed_date' => array( // For compatibility with WC < 2.6.
|
||||
'type' => 'date',
|
||||
'destination' => 'date_completed_gmt',
|
||||
),
|
||||
|
|
|
@ -13,6 +13,8 @@ defined( 'ABSPATH' ) || exit;
|
|||
use Automattic\WooCommerce\Internal\DataStores\Orders\CustomOrdersTableController;
|
||||
use Automattic\WooCommerce\Internal\DataStores\Orders\DataSynchronizer;
|
||||
use WC_Mock_Payment_Gateway;
|
||||
use WC_Order;
|
||||
use WC_Product;
|
||||
use \WC_Tax;
|
||||
use \WC_Shipping_Rate;
|
||||
use \WC_Order_Item_Shipping;
|
||||
|
@ -48,7 +50,7 @@ class OrderHelper {
|
|||
/**
|
||||
* Create a order.
|
||||
*
|
||||
* @param int $customer_id Customer ID.
|
||||
* @param int $customer_id Customer ID.
|
||||
* @param WC_Product $product Product object.
|
||||
*
|
||||
* @return WC_Order WC_Order object.
|
||||
|
|
Loading…
Reference in New Issue