Applied coding standards.

This commit is contained in:
vedanshujain 2022-05-18 13:24:42 +05:30
parent 2ca4b42846
commit 7ff0ba8061
2 changed files with 6 additions and 4 deletions

View File

@ -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',
),

View File

@ -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.