diff --git a/src/MakePhpCommand.php b/src/MakePhpCommand.php index 1f8fc88..eebfa50 100644 --- a/src/MakePhpCommand.php +++ b/src/MakePhpCommand.php @@ -80,7 +80,7 @@ public function __invoke( $args, $assoc_args ) { continue; } - $result_count++; + ++$result_count; } WP_CLI::success( sprintf( 'Created %d %s.', $result_count, Utils\pluralize( 'file', $result_count ) ) ); diff --git a/src/PhpArrayGenerator.php b/src/PhpArrayGenerator.php index b8fe09e..28c1c57 100644 --- a/src/PhpArrayGenerator.php +++ b/src/PhpArrayGenerator.php @@ -27,7 +27,7 @@ public static function toString( Translations $translations, array $options = [] } $headers = [ - 'X-Generator' => 'x-generator', + 'X-Generator' => 'x-generator', ]; foreach ( $translations->getHeaders() as $name => $value ) {