Skip to content

Commit ffba556

Browse files
authored
Merge pull request #121 from adhocore/analysis-negvk5
Apply fixes from StyleCI
2 parents 86be16e + 5f5cab8 commit ffba556

File tree

3 files changed

+7
-8
lines changed

3 files changed

+7
-8
lines changed

src/Application.php

+1-2
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212
namespace Ahc\Cli;
1313

1414
use Ahc\Cli\Exception\InvalidArgumentException;
15-
use Ahc\Cli\Helper\InflectsString;
1615
use Ahc\Cli\Helper\OutputHelper;
1716
use Ahc\Cli\Input\Command;
1817
use 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
*

src/Helper/OutputHelper.php

+1-1
Original file line numberDiff line numberDiff 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

tests/ApplicationTest.php

+5-5
Original file line numberDiff line numberDiff 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');

0 commit comments

Comments
 (0)