fix PHP 7.2 travis build

This commit is contained in:
Karolína Vyskočilová 2018-10-28 11:36:55 +01:00
parent 1dec0264bc
commit 6687633c92
1 changed files with 3 additions and 3 deletions

View File

@ -164,7 +164,7 @@ class WC_Settings_Shipping extends WC_Settings_Page {
$method->admin_options();
}
}
if ( !$is_shipping_method ) {
if ( ! $is_shipping_method ) {
$settings = $this->get_settings();
$settings = apply_filters( 'woocommerce_get_settings_' . $this->id, $settings, $current_section );
WC_Admin_Settings::output_fields( $settings );
@ -198,7 +198,7 @@ class WC_Settings_Shipping extends WC_Settings_Page {
do_action( 'woocommerce_update_options_' . $this->id . '_' . $method->id );
}
}
if ( !$is_shipping_method ) {
if ( ! $is_shipping_method ) {
WC_Admin_Settings::save_fields( $this->get_settings( $current_section ) );
}
break;