File tree Expand file tree Collapse file tree 3 files changed +7
-8
lines changed Expand file tree Collapse file tree 3 files changed +7
-8
lines changed Original file line number Diff line number Diff line change 1212namespace Ahc \Cli ;
1313
1414use Ahc \Cli \Exception \InvalidArgumentException ;
15- use Ahc \Cli \Helper \InflectsString ;
1615use Ahc \Cli \Helper \OutputHelper ;
1716use Ahc \Cli \Input \Command ;
1817use Ahc \Cli \IO \Interactor ;
@@ -46,7 +45,7 @@ class Application
4645 public static $ locale = 'en ' ;
4746
4847 /**
49- * list of translations for each supported locale
48+ * list of translations for each supported locale.
5049 *
5150 * @var array<string, array>
5251 *
Original file line number Diff line number Diff line change @@ -100,7 +100,7 @@ public function printTrace(Throwable $e): void
100100 $ traceStr .= " <comment> $ i)</end> <red> $ symbol</end><comment>( $ args)</end> " ;
101101 if ('' !== $ trace ['file ' ]) {
102102 $ file = realpath ($ trace ['file ' ]);
103- $ traceStr .= " <eol/> <yellow> " . t ('at ' ) . " $ file</end><white>: {$ trace ['line ' ]}</end><eol/> " ;
103+ $ traceStr .= ' <eol/> <yellow> ' . t ('at ' ) . " $ file</end><white>: {$ trace ['line ' ]}</end><eol/> " ;
104104 }
105105 }
106106
Original file line number Diff line number Diff line change @@ -338,9 +338,9 @@ public function test_default_translations()
338338 public function test_custom_translations (): void
339339 {
340340 Application::addLocale ('fr ' , [
341- 'Show version ' => 'Afficher la version ' ,
342- '%1$s [default: %2$s] ' => '%1$s [par défaut: %2$s] ' ,
343- 'Command "%s" already added ' => 'La commande "%s" a déjà été ajoutée '
341+ 'Show version ' => 'Afficher la version ' ,
342+ '%1$s [default: %2$s] ' => '%1$s [par défaut: %2$s] ' ,
343+ 'Command "%s" already added ' => 'La commande "%s" a déjà été ajoutée ' ,
344344 ], true );
345345
346346 $ this ->assertSame ('Afficher la version ' , t ('Show version ' ));
@@ -355,8 +355,8 @@ public function test_app_translated()
355355 {
356356 $ app = $ this ->newApp ('test ' );
357357 $ app ->addLocale ('fr ' , [
358- 'Show version ' => 'Afficher la version ' ,
359- 'Verbosity level ' => 'Niveau de verbocité ' ,
358+ 'Show version ' => 'Afficher la version ' ,
359+ 'Verbosity level ' => 'Niveau de verbocité ' ,
360360 '%1$s [default: %2$s] ' => '%s [par défaut: %s] ' ,
361361 ], true );
362362 $ app ->command ('rmdir ' );
You can’t perform that action at this time.
0 commit comments