diff --git a/src/Option_Command.php b/src/Option_Command.php index 302b3a17..dd9cf65e 100644 --- a/src/Option_Command.php +++ b/src/Option_Command.php @@ -619,12 +619,12 @@ function ( $key ) { array_slice( $args, 1 ) ); - if (function_exists( 'maybe_unserialize' )) { - $value = maybe_unserialize( $value ); + if ( function_exists( 'maybe_unserialize' ) ) { + $value = maybe_unserialize( $value ); } - if (Utils\is_json( $value )) { - $value = json_decode( $value ); + if ( Utils\is_json( $value ) ) { + $value = json_decode( $value ); } $traverser = new RecursiveDataStructureTraverser( $value ); @@ -635,10 +635,10 @@ function ( $key ) { die( 1 ); } - if (function_exists( 'is_serialized' ) && - function_exists( 'maybe_serialize' ) && - !is_serialized( $value ) ) { - $value = maybe_serialize( $value ); + if ( function_exists( 'is_serialized' ) && + function_exists( 'maybe_serialize' ) && + ! is_serialized( $value ) ) { + $value = maybe_serialize( $value ); } WP_CLI::print_value( $value, $assoc_args ); @@ -759,12 +759,12 @@ function ( $key ) { $old_value = clone $current_value; } - if (function_exists('maybe_unserialize')) { - $current_value = maybe_unserialize($current_value); + if ( function_exists( 'maybe_unserialize' ) ) { + $current_value = maybe_unserialize( $current_value ); } - if (Utils\is_json($current_value)) { - $current_value = json_decode($current_value); + if ( Utils\is_json( $current_value ) ) { + $current_value = json_decode( $current_value ); } $traverser = new RecursiveDataStructureTraverser( $current_value );