diff --git a/src/Application.php b/src/Application.php index 27a70a4..34ae4f6 100644 --- a/src/Application.php +++ b/src/Application.php @@ -12,7 +12,6 @@ namespace Ahc\Cli; use Ahc\Cli\Exception\InvalidArgumentException; -use Ahc\Cli\Helper\InflectsString; use Ahc\Cli\Helper\OutputHelper; use Ahc\Cli\Input\Command; use Ahc\Cli\IO\Interactor; @@ -46,7 +45,7 @@ class Application public static $locale = 'en'; /** - * list of translations for each supported locale + * list of translations for each supported locale. * * @var array * diff --git a/src/Helper/OutputHelper.php b/src/Helper/OutputHelper.php index 00e2af7..9c68d62 100644 --- a/src/Helper/OutputHelper.php +++ b/src/Helper/OutputHelper.php @@ -100,7 +100,7 @@ public function printTrace(Throwable $e): void $traceStr .= " $i) $symbol($args)"; if ('' !== $trace['file']) { $file = realpath($trace['file']); - $traceStr .= " " . t('at') . " $file:{$trace['line']}"; + $traceStr .= ' ' . t('at') . " $file:{$trace['line']}"; } } diff --git a/tests/ApplicationTest.php b/tests/ApplicationTest.php index 083f4c9..59127aa 100644 --- a/tests/ApplicationTest.php +++ b/tests/ApplicationTest.php @@ -338,9 +338,9 @@ public function test_default_translations() public function test_custom_translations(): void { Application::addLocale('fr', [ - 'Show version' => 'Afficher la version', - '%1$s [default: %2$s]' => '%1$s [par défaut: %2$s]', - 'Command "%s" already added' => 'La commande "%s" a déjà été ajoutée' + 'Show version' => 'Afficher la version', + '%1$s [default: %2$s]' => '%1$s [par défaut: %2$s]', + 'Command "%s" already added' => 'La commande "%s" a déjà été ajoutée', ], true); $this->assertSame('Afficher la version', t('Show version')); @@ -355,8 +355,8 @@ public function test_app_translated() { $app = $this->newApp('test'); $app->addLocale('fr', [ - 'Show version' => 'Afficher la version', - 'Verbosity level' => 'Niveau de verbocité', + 'Show version' => 'Afficher la version', + 'Verbosity level' => 'Niveau de verbocité', '%1$s [default: %2$s]' => '%s [par défaut: %s]', ], true); $app->command('rmdir');