Skip to content

Commit

Permalink
Update dependencies, use latest PER
Browse files Browse the repository at this point in the history
  • Loading branch information
alies-dev committed Oct 27, 2024
1 parent 188e4af commit 67f60eb
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .php-cs-fixer.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

return (new PhpCsFixer\Config())
->setRules([
'@PSR12' => true,
'@PER-CS' => true,
'array_syntax' => ['syntax' => 'short'],
'ordered_imports' => ['sort_algorithm' => 'alpha'],
'no_unused_imports' => true,
Expand Down
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@
"illuminate/support": "^10.0 || ^11.0"
},
"require-dev": {
"friendsofphp/php-cs-fixer": "^3.50",
"friendsofphp/php-cs-fixer": "^3.64",
"orchestra/testbench": "^8.0 || ^9.0",
"phpunit/phpunit": "^10.5 || ^11.0",
"vimeo/psalm": "^5.22"
"vimeo/psalm": "^5.26"
},
"minimum-stability": "dev",
"prefer-stable": true,
Expand Down
6 changes: 3 additions & 3 deletions src/Commands/FindMissingTranslations.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ public function handle(): int
/** @var string|null $directoryOption */
$directoryOption = $this->option('dir');

$pathToLocates = match(true) {
$pathToLocates = match (true) {
$directoryOption === null => resource_path(self::DEFAULT_LANG_DIRNAME),
File::isDirectory($directoryOption) => $directoryOption,
File::isDirectory(base_path($directoryOption)) => base_path($directoryOption),
Expand All @@ -47,7 +47,7 @@ public function handle(): int

$baseLocale = $this->option('base') ?: config('app.locale');
assert(is_string($baseLocale), 'Invalid base locale');
$baseLocaleDirectoryPath = $pathToLocates.\DIRECTORY_SEPARATOR.$baseLocale;
$baseLocaleDirectoryPath = $pathToLocates . \DIRECTORY_SEPARATOR . $baseLocale;

$onlyLocales = $this->option('only');
$onlyLocalesArray = $onlyLocales ? explode(',', $onlyLocales) : [];
Expand Down Expand Up @@ -87,7 +87,7 @@ public function handle(): int
$localesMissing = array_values(array_diff($onlyLocalesArray, $locales));
if (count($localesMissing) > 0) {
$this->error('The following locales are missing:', 'q');
$this->table(['locale'], array_map(fn ($locale) => [$locale], $localesMissing));
$this->table(['locale'], array_map(fn($locale) => [$locale], $localesMissing));
}
}

Expand Down

0 comments on commit 67f60eb

Please sign in to comment.