PHPCS fixes

This commit is contained in:
Gerhard 2019-04-10 14:29:40 +02:00
parent deaaa5d1d8
commit 8716c7451c
2 changed files with 10 additions and 5 deletions

View File

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

View File

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