PHPCS fixes

This commit is contained in:
Gerhard 2019-02-28 15:37:37 +02:00
parent b8a5a9ec55
commit 36f0041673
1 changed files with 1 additions and 1 deletions

View File

@ -740,7 +740,7 @@ function wc_update_240_shipping_methods() {
if ( version_compare( $shipping_method->get_option( 'version', 0 ), '2.4.0', '<' ) ) {
$shipping_classes = WC()->shipping()->get_shipping_classes();
$has_classes = count( $shipping_classes ) > 0;
$cost_key = $has_classes ? 'no_class_cost': 'cost';
$cost_key = $has_classes ? 'no_class_cost' : 'cost';
$min_fee = $shipping_method->get_option( 'minimum_fee' );
$math_cost_strings = array(
'cost' => array(),