diff --git a/src/Application.php b/src/Application.php index 27a70a4863d80754adbffdf0c2fc95777aa488e8..34ae4f66a1d0979dc8aa1d350af17d7ab1d6b16d 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 00e2af78a2f3239114178c2445f772796640a2fd..9c68d629810d6c0e9a2a07e8fd0a3b18c1ee8a14 100644 --- a/src/Helper/OutputHelper.php +++ b/src/Helper/OutputHelper.php @@ -100,7 +100,7 @@ class OutputHelper $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 083f4c9f5c8e4c105c6fac9b993d181698fb5b81..59127aabba2c951457474142730506496ac51d36 100644 --- a/tests/ApplicationTest.php +++ b/tests/ApplicationTest.php @@ -338,9 +338,9 @@ class ApplicationTest extends TestCase 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 @@ class ApplicationTest extends TestCase { $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');