From 8716c7451c8d5baf46c0b4a629889a33eb8d3f2d Mon Sep 17 00:00:00 2001 From: Gerhard Date: Wed, 10 Apr 2019 14:29:40 +0200 Subject: [PATCH] PHPCS fixes --- .../admin/settings/class-wc-settings-general.php | 3 ++- .../admin/settings/class-wc-settings-products.php | 12 ++++++++---- 2 files changed, 10 insertions(+), 5 deletions(-) diff --git a/includes/admin/settings/class-wc-settings-general.php b/includes/admin/settings/class-wc-settings-general.php index e965b19b0e4..44c4dc7b51b 100644 --- a/includes/admin/settings/class-wc-settings-general.php +++ b/includes/admin/settings/class-wc-settings-general.php @@ -51,7 +51,8 @@ class WC_Settings_General extends WC_Settings_Page { } $settings = apply_filters( - 'woocommerce_general_settings', array( + 'woocommerce_general_settings', + array( array( 'title' => __( 'Store Address', 'woocommerce' ), diff --git a/includes/admin/settings/class-wc-settings-products.php b/includes/admin/settings/class-wc-settings-products.php index 4d319bad1e8..d274e88992c 100644 --- a/includes/admin/settings/class-wc-settings-products.php +++ b/includes/admin/settings/class-wc-settings-products.php @@ -78,7 +78,8 @@ class WC_Settings_Products extends WC_Settings_Page { public function get_settings( $current_section = '' ) { if ( 'inventory' === $current_section ) { $settings = apply_filters( - 'woocommerce_inventory_settings', array( + 'woocommerce_inventory_settings', + array( array( 'title' => __( 'Inventory', 'woocommerce' ), @@ -208,7 +209,8 @@ class WC_Settings_Products extends WC_Settings_Page { } elseif ( 'downloadable' === $current_section ) { $settings = apply_filters( - 'woocommerce_downloadable_products_settings', array( + 'woocommerce_downloadable_products_settings', + array( array( 'title' => __( 'Downloadable products', 'woocommerce' ), 'type' => 'title', @@ -269,8 +271,10 @@ class WC_Settings_Products extends WC_Settings_Page { } else { $settings = apply_filters( - 'woocommerce_product_settings', apply_filters( - 'woocommerce_products_general_settings', array( + 'woocommerce_product_settings', + apply_filters( + 'woocommerce_products_general_settings', + array( array( 'title' => __( 'Shop pages', 'woocommerce' ), 'type' => 'title',