diff --git a/includes/abstracts/abstract-wc-order.php b/includes/abstracts/abstract-wc-order.php
index 8ab364fc387..921524dbaaa 100644
--- a/includes/abstracts/abstract-wc-order.php
+++ b/includes/abstracts/abstract-wc-order.php
@@ -1060,7 +1060,7 @@ abstract class WC_Abstract_Order extends WC_Abstract_Legacy_Order {
$token_ids = get_post_meta( $this->get_id(), '_payment_tokens', true );
- if ( empty ( $token_ids ) ) {
+ if ( empty( $token_ids ) ) {
$token_ids = array();
}
diff --git a/includes/admin/class-wc-admin-post-types.php b/includes/admin/class-wc-admin-post-types.php
index d61d85a6491..8acf3b83dac 100644
--- a/includes/admin/class-wc-admin-post-types.php
+++ b/includes/admin/class-wc-admin-post-types.php
@@ -1296,7 +1296,7 @@ class WC_Admin_Post_Types {
case 3 :
if ( strstr( $regular_price, '%' ) ) {
$percent = str_replace( '%', '', $regular_price ) / 100;
- $new_price = max( 0, $old_regular_price - ( round ( $old_regular_price * $percent, wc_get_price_decimals() ) ) );
+ $new_price = max( 0, $old_regular_price - ( round( $old_regular_price * $percent, wc_get_price_decimals() ) ) );
} else {
$new_price = max( 0, $old_regular_price - $regular_price );
}
diff --git a/includes/admin/settings/class-wc-settings-checkout.php b/includes/admin/settings/class-wc-settings-checkout.php
index 258a4b38444..85fe82c38d5 100644
--- a/includes/admin/settings/class-wc-settings-checkout.php
+++ b/includes/admin/settings/class-wc-settings-checkout.php
@@ -328,7 +328,7 @@ class WC_Settings_Payment_Gateways extends WC_Settings_Page {
echo '
';
if ( $gateway->enabled == 'yes' )
- echo '' . __ ( 'Yes', 'woocommerce' ) . '';
+ echo '' . __( 'Yes', 'woocommerce' ) . '';
else
echo '-';
diff --git a/includes/api/class-wc-rest-system-status-tools-controller.php b/includes/api/class-wc-rest-system-status-tools-controller.php
index ee344974cd2..7266832ba60 100644
--- a/includes/api/class-wc-rest-system-status-tools-controller.php
+++ b/includes/api/class-wc-rest-system-status-tools-controller.php
@@ -165,7 +165,7 @@ class WC_REST_System_Status_Tools_Controller extends WC_REST_Controller {
public function get_items( $request ) {
$tools = array();
foreach ( $this->get_tools() as $id => $tool ) {
- $tools[] = $this->prepare_response_for_collection( $this->prepare_item_for_response ( array(
+ $tools[] = $this->prepare_response_for_collection( $this->prepare_item_for_response( array(
'id' => $id,
'name' => $tool['name'],
'action' => $tool['button'],
@@ -189,7 +189,7 @@ class WC_REST_System_Status_Tools_Controller extends WC_REST_Controller {
return new WP_Error( 'woocommerce_rest_system_status_tool_invalid_id', __( 'Invalid tool ID.', 'woocommerce' ), array( 'status' => 404 ) );
}
$tool = $tools[ $request['id'] ];
- return rest_ensure_response( $this->prepare_item_for_response ( array(
+ return rest_ensure_response( $this->prepare_item_for_response( array(
'id' => $request['id'],
'name' => $tool['name'],
'action' => $tool['button'],
diff --git a/includes/class-wc-customer.php b/includes/class-wc-customer.php
index 5e0b3b0ece2..fe419caf2ed 100644
--- a/includes/class-wc-customer.php
+++ b/includes/class-wc-customer.php
@@ -1152,7 +1152,7 @@ class WC_Customer extends WC_Legacy_Customer {
'username' => $user_object->user_login,
'date_created' => strtotime( $user_object->user_registered ),
'date_modified' => get_user_meta( $id, 'last_update', true ),
- 'role' => ! empty ( $user_object->roles[0] ) ? $user_object->roles[0] : 'customer',
+ 'role' => ! empty( $user_object->roles[0] ) ? $user_object->roles[0] : 'customer',
) );
$this->read_meta_data();
}
diff --git a/includes/class-wc-payment-tokens.php b/includes/class-wc-payment-tokens.php
index 669ec0e892f..285659f7ef8 100644
--- a/includes/class-wc-payment-tokens.php
+++ b/includes/class-wc-payment-tokens.php
@@ -186,7 +186,7 @@ class WC_Payment_Tokens {
*/
public static function delete( $token_id ) {
$type = self::get_token_type_by_id( $token_id );
- if ( ! empty ( $type ) ) {
+ if ( ! empty( $type ) ) {
$class = 'WC_Payment_Token_' . $type;
$token = new $class( $token_id );
$token->delete();
diff --git a/includes/gateways/simplify-commerce/class-wc-gateway-simplify-commerce.php b/includes/gateways/simplify-commerce/class-wc-gateway-simplify-commerce.php
index 2b5ea8a6600..9b9e0b9c3f0 100644
--- a/includes/gateways/simplify-commerce/class-wc-gateway-simplify-commerce.php
+++ b/includes/gateways/simplify-commerce/class-wc-gateway-simplify-commerce.php
@@ -311,7 +311,7 @@ class WC_Gateway_Simplify_Commerce extends WC_Payment_Gateway_CC {
}
public function add_payment_method() {
- if ( empty ( $_POST['simplify_token'] ) ) {
+ if ( empty( $_POST['simplify_token'] ) ) {
wc_add_notice( __( 'There was a problem adding this card.', 'woocommerce' ), 'error' );
return;
}
@@ -428,11 +428,11 @@ class WC_Gateway_Simplify_Commerce extends WC_Payment_Gateway_CC {
// or the customer token (just saved method, previously saved method)
$pass_tokens = array();
- if ( ! empty ( $cart_token ) ) {
+ if ( ! empty( $cart_token ) ) {
$pass_tokens['token'] = $cart_token;
}
- if ( ! empty ( $customer_token ) ) {
+ if ( ! empty( $customer_token ) ) {
$pass_tokens['customer'] = $customer_token;
// Use the customer token only, since we already saved the (one time use) card token to the customer
if ( isset( $_POST['wc-simplify_commerce-new-payment-method'] ) && true === (bool) $_POST['wc-simplify_commerce-new-payment-method'] ) {
@@ -441,7 +441,7 @@ class WC_Gateway_Simplify_Commerce extends WC_Payment_Gateway_CC {
}
// Did we create an account and save a payment method? We might need to use the customer token instead of the card token
- if ( isset( $_POST['createaccount'] ) && true === (bool) $_POST['createaccount'] && empty ( $customer_token ) ) {
+ if ( isset( $_POST['createaccount'] ) && true === (bool) $_POST['createaccount'] && empty( $customer_token ) ) {
$user_token = $this->get_users_token();
if ( ! is_null( $user_token ) ) {
$pass_tokens['customer'] = $user_token->get_token();
diff --git a/phpcs.ruleset.xml b/phpcs.ruleset.xml
index 215c13c19cb..e7ef7fc995a 100644
--- a/phpcs.ruleset.xml
+++ b/phpcs.ruleset.xml
@@ -38,7 +38,7 @@
-
+
diff --git a/templates/myaccount/payment-methods.php b/templates/myaccount/payment-methods.php
index b5590219432..05cd3d13d04 100644
--- a/templates/myaccount/payment-methods.php
+++ b/templates/myaccount/payment-methods.php
@@ -47,7 +47,7 @@ do_action( 'woocommerce_before_account_payment_methods', $has_methods ); ?>
if ( has_action( 'woocommerce_account_payment_methods_column_' . $column_id ) ) {
do_action( 'woocommerce_account_payment_methods_column_' . $column_id, $method );
} elseif ( 'method' === $column_id ) {
- if ( ! empty ( $method['method']['last4'] ) ) {
+ if ( ! empty( $method['method']['last4'] ) ) {
echo sprintf( __( '%1$s ending in %2$s', 'woocommerce' ), esc_html( wc_get_credit_card_type_label( $method['method']['brand'] ) ), esc_html( $method['method']['last4'] ) );
} else {
echo esc_html( wc_get_credit_card_type_label( $method['method']['brand'] ) );
diff --git a/templates/single-product/add-to-cart/grouped.php b/templates/single-product/add-to-cart/grouped.php
index c4c5b0db5c0..7c919ea4215 100644
--- a/templates/single-product/add-to-cart/grouped.php
+++ b/templates/single-product/add-to-cart/grouped.php
@@ -65,7 +65,7 @@ do_action( 'woocommerce_before_add_to_cart_form' ); ?>
|
-
+
|