'; break; diff --git a/templates/loop/pagination.php b/templates/loop/pagination.php index e2188dc8368..cf394db03b2 100644 --- a/templates/loop/pagination.php +++ b/templates/loop/pagination.php @@ -38,7 +38,7 @@ if ( $wp_query->max_num_pages <= 1 ) { 'next_text' => '→', 'type' => 'list', 'end_size' => 3, - 'mid_size' => 3 + 'mid_size' => 3, ) ) ); ?> diff --git a/templates/myaccount/downloads.php b/templates/myaccount/downloads.php index 7381b89ed6b..0b375a70c79 100644 --- a/templates/myaccount/downloads.php +++ b/templates/myaccount/downloads.php @@ -72,8 +72,8 @@ do_action( 'woocommerce_before_account_downloads', $has_downloads ); ?> $actions = array( 'download' => array( 'url' => $download['download_url'], - 'name' => __( 'Download', 'woocommerce' ) - ) + 'name' => __( 'Download', 'woocommerce' ), + ), ); if ( $actions = apply_filters( 'woocommerce_account_download_actions', $actions, $download ) ) { diff --git a/templates/myaccount/my-address.php b/templates/myaccount/my-address.php index b8b345f0401..b082813a506 100644 --- a/templates/myaccount/my-address.php +++ b/templates/myaccount/my-address.php @@ -25,11 +25,11 @@ $customer_id = get_current_user_id(); if ( ! wc_ship_to_billing_address_only() && wc_shipping_enabled() ) { $get_addresses = apply_filters( 'woocommerce_my_account_get_addresses', array( 'billing' => __( 'Billing Address', 'woocommerce' ), - 'shipping' => __( 'Shipping Address', 'woocommerce' ) + 'shipping' => __( 'Shipping Address', 'woocommerce' ), ), $customer_id ); } else { $get_addresses = apply_filters( 'woocommerce_my_account_get_addresses', array( - 'billing' => __( 'Billing Address', 'woocommerce' ) + 'billing' => __( 'Billing Address', 'woocommerce' ), ), $customer_id ); } @@ -61,7 +61,7 @@ $col = 1; 'city' => get_user_meta( $customer_id, $name . '_city', true ), 'state' => get_user_meta( $customer_id, $name . '_state', true ), 'postcode' => get_user_meta( $customer_id, $name . '_postcode', true ), - 'country' => get_user_meta( $customer_id, $name . '_country', true ) + 'country' => get_user_meta( $customer_id, $name . '_country', true ), ), $customer_id, $name ); $formatted_address = WC()->countries->get_formatted_address( $address ); diff --git a/templates/myaccount/my-orders.php b/templates/myaccount/my-orders.php index 071b5723027..ce5c3ba86ee 100644 --- a/templates/myaccount/my-orders.php +++ b/templates/myaccount/my-orders.php @@ -22,7 +22,7 @@ $customer_orders = get_posts( apply_filters( 'woocommerce_my_account_my_orders_q 'meta_key' => '_customer_user', 'meta_value' => get_current_user_id(), 'post_type' => wc_get_order_types( 'view-orders' ), - 'post_status' => array_keys( wc_get_order_statuses() ) + 'post_status' => array_keys( wc_get_order_statuses() ), ) ) ); if ( $customer_orders ) : ?> @@ -69,16 +69,16 @@ if ( $customer_orders ) : ?> $actions = array( 'pay' => array( 'url' => $order->get_checkout_payment_url(), - 'name' => __( 'Pay', 'woocommerce' ) + 'name' => __( 'Pay', 'woocommerce' ), ), 'view' => array( 'url' => $order->get_view_order_url(), - 'name' => __( 'View', 'woocommerce' ) + 'name' => __( 'View', 'woocommerce' ), ), 'cancel' => array( 'url' => $order->get_cancel_order_url( wc_get_page_permalink( 'myaccount' ) ), - 'name' => __( 'Cancel', 'woocommerce' ) - ) + 'name' => __( 'Cancel', 'woocommerce' ), + ), ); if ( ! $order->needs_payment() ) { diff --git a/templates/myaccount/orders.php b/templates/myaccount/orders.php index 0ee143e8610..6bfc7dee172 100644 --- a/templates/myaccount/orders.php +++ b/templates/myaccount/orders.php @@ -65,16 +65,16 @@ do_action( 'woocommerce_before_account_orders', $has_orders ); ?> $actions = array( 'pay' => array( 'url' => $order->get_checkout_payment_url(), - 'name' => __( 'Pay', 'woocommerce' ) + 'name' => __( 'Pay', 'woocommerce' ), ), 'view' => array( 'url' => $order->get_view_order_url(), - 'name' => __( 'View', 'woocommerce' ) + 'name' => __( 'View', 'woocommerce' ), ), 'cancel' => array( 'url' => $order->get_cancel_order_url( wc_get_page_permalink( 'myaccount' ) ), - 'name' => __( 'Cancel', 'woocommerce' ) - ) + 'name' => __( 'Cancel', 'woocommerce' ), + ), ); if ( ! $order->needs_payment() ) { diff --git a/templates/notices/error.php b/templates/notices/error.php index c5bf82c2530..0322ae3bd87 100644 --- a/templates/notices/error.php +++ b/templates/notices/error.php @@ -20,7 +20,7 @@ if ( ! defined( 'ABSPATH' ) ) { exit; // Exit if accessed directly } -if ( ! $messages ){ +if ( ! $messages ) { return; } diff --git a/templates/notices/notice.php b/templates/notices/notice.php index 0bcc8695204..fe92bbe9b11 100644 --- a/templates/notices/notice.php +++ b/templates/notices/notice.php @@ -20,7 +20,7 @@ if ( ! defined( 'ABSPATH' ) ) { exit; // Exit if accessed directly } -if ( ! $messages ){ +if ( ! $messages ) { return; } diff --git a/templates/notices/success.php b/templates/notices/success.php index 5d0918280c7..c3940e511b0 100644 --- a/templates/notices/success.php +++ b/templates/notices/success.php @@ -20,7 +20,7 @@ if ( ! defined( 'ABSPATH' ) ) { exit; // Exit if accessed directly } -if ( ! $messages ){ +if ( ! $messages ) { return; } diff --git a/templates/order/order-details.php b/templates/order/order-details.php index fe6f38afaad..899b3b53132 100644 --- a/templates/order/order-details.php +++ b/templates/order/order-details.php @@ -35,7 +35,7 @@ $show_customer_details = is_user_logged_in() && $order->get_user_id() === get_cu