File tree 3 files changed +7
-8
lines changed
3 files changed +7
-8
lines changed Original file line number Diff line number Diff line change 12
12
namespace Ahc \Cli ;
13
13
14
14
use Ahc \Cli \Exception \InvalidArgumentException ;
15
- use Ahc \Cli \Helper \InflectsString ;
16
15
use Ahc \Cli \Helper \OutputHelper ;
17
16
use Ahc \Cli \Input \Command ;
18
17
use Ahc \Cli \IO \Interactor ;
@@ -46,7 +45,7 @@ class Application
46
45
public static $ locale = 'en ' ;
47
46
48
47
/**
49
- * list of translations for each supported locale
48
+ * list of translations for each supported locale.
50
49
*
51
50
* @var array<string, array>
52
51
*
Original file line number Diff line number Diff line change @@ -100,7 +100,7 @@ public function printTrace(Throwable $e): void
100
100
$ traceStr .= " <comment> $ i)</end> <red> $ symbol</end><comment>( $ args)</end> " ;
101
101
if ('' !== $ trace ['file ' ]) {
102
102
$ 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/> " ;
104
104
}
105
105
}
106
106
Original file line number Diff line number Diff line change @@ -338,9 +338,9 @@ public function test_default_translations()
338
338
public function test_custom_translations (): void
339
339
{
340
340
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 ' ,
344
344
], true );
345
345
346
346
$ this ->assertSame ('Afficher la version ' , t ('Show version ' ));
@@ -355,8 +355,8 @@ public function test_app_translated()
355
355
{
356
356
$ app = $ this ->newApp ('test ' );
357
357
$ 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é ' ,
360
360
'%1$s [default: %2$s] ' => '%s [par défaut: %s] ' ,
361
361
], true );
362
362
$ app ->command ('rmdir ' );
You can’t perform that action at this time.
0 commit comments