Squiz.WhiteSpace.SuperfluousWhitespace.EmptyLines
This commit is contained in:
parent
741f2b954a
commit
d430dabb37
|
@ -227,7 +227,6 @@ class WC_Admin_Report {
|
||||||
";
|
";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
if ( ! empty( $where_meta ) ) {
|
if ( ! empty( $where_meta ) ) {
|
||||||
|
|
||||||
$relation = isset( $where_meta['relation'] ) ? $where_meta['relation'] : 'AND';
|
$relation = isset( $where_meta['relation'] ) ? $where_meta['relation'] : 'AND';
|
||||||
|
|
|
@ -219,7 +219,6 @@ class WC_Settings_Payment_Gateways extends WC_Settings_Page {
|
||||||
'desc_tip' => true,
|
'desc_tip' => true,
|
||||||
),
|
),
|
||||||
|
|
||||||
|
|
||||||
array(
|
array(
|
||||||
'type' => 'sectionend',
|
'type' => 'sectionend',
|
||||||
'id' => 'checkout_endpoint_options',
|
'id' => 'checkout_endpoint_options',
|
||||||
|
|
|
@ -145,7 +145,6 @@ class WC_API extends WC_Legacy_API {
|
||||||
include_once( dirname( __FILE__ ) . '/abstracts/abstract-wc-rest-terms-controller.php' );
|
include_once( dirname( __FILE__ ) . '/abstracts/abstract-wc-rest-terms-controller.php' );
|
||||||
include_once( dirname( __FILE__ ) . '/abstracts/abstract-wc-settings-api.php' );
|
include_once( dirname( __FILE__ ) . '/abstracts/abstract-wc-settings-api.php' );
|
||||||
|
|
||||||
|
|
||||||
// REST API controllers.
|
// REST API controllers.
|
||||||
include_once( dirname( __FILE__ ) . '/api/class-wc-rest-coupons-controller.php' );
|
include_once( dirname( __FILE__ ) . '/api/class-wc-rest-coupons-controller.php' );
|
||||||
include_once( dirname( __FILE__ ) . '/api/class-wc-rest-customer-downloads-controller.php' );
|
include_once( dirname( __FILE__ ) . '/api/class-wc-rest-customer-downloads-controller.php' );
|
||||||
|
|
|
@ -616,7 +616,6 @@ class WC_CLI_Customer extends WC_CLI_Command {
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
||||||
// Allow dot notation for nested array so that user can specifies field
|
// Allow dot notation for nested array so that user can specifies field
|
||||||
// like 'billing_address.first_name'.
|
// like 'billing_address.first_name'.
|
||||||
return $this->flatten_array( $customer );
|
return $this->flatten_array( $customer );
|
||||||
|
|
|
@ -84,7 +84,6 @@ abstract class WC_Legacy_Customer extends WC_Data {
|
||||||
$key = 'shipping_address_1';
|
$key = 'shipping_address_1';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
return $key;
|
return $key;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -90,7 +90,6 @@ class WC_Tests_Cart extends WC_Unit_Test_Case {
|
||||||
WC()->cart->remove_coupons();
|
WC()->cart->remove_coupons();
|
||||||
WC_Helper_Product::delete_product( $product->id );
|
WC_Helper_Product::delete_product( $product->id );
|
||||||
|
|
||||||
|
|
||||||
# Test case 3 #11626
|
# Test case 3 #11626
|
||||||
update_post_meta( $coupon->get_id(), 'discount_type', 'percent' );
|
update_post_meta( $coupon->get_id(), 'discount_type', 'percent' );
|
||||||
update_post_meta( $coupon->get_id(), 'coupon_amount', '50' );
|
update_post_meta( $coupon->get_id(), 'coupon_amount', '50' );
|
||||||
|
|
|
@ -218,7 +218,6 @@ class WC_Tests_CRUD_Data extends WC_Unit_Test_Case {
|
||||||
WHERE post_id = %d ORDER BY meta_id
|
WHERE post_id = %d ORDER BY meta_id
|
||||||
", $object_id ) );
|
", $object_id ) );
|
||||||
|
|
||||||
|
|
||||||
$object->delete_meta_data( 'test_meta_key' );
|
$object->delete_meta_data( 'test_meta_key' );
|
||||||
$object->update_meta_data( 'test_meta_key_2', 'updated_value', $raw_metadata[1]->meta_id );
|
$object->update_meta_data( 'test_meta_key_2', 'updated_value', $raw_metadata[1]->meta_id );
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue