Skip to content

Commit 76fdb2f

Browse files
committed
fix command
1 parent 0bc371f commit 76fdb2f

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/Commands/ShowDeadTranslationsCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ public function handleLocale(string $locale): array
2727

2828
return progress(
2929
"Scanning files: {$locale}",
30-
array_combine($namespaces, $namespaces),
30+
$namespaces,
3131
function (string $namespace, Progress $progress) use ($locale) {
3232
$progress->hint($namespace);
3333

src/Commands/ShowMissingTranslationsCommand.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,11 @@ public function handle(): int
2121

2222
$rows = collect(Translator::getAllMissingTranslations($reference))
2323
->flatMap(
24-
fn (array $namespaces, string $locale) => collect($namespaces)
24+
fn ($namespaces, string $locale) => $namespaces
2525
->flatMap(function (array $keys, string $namespace) use ($locale, $namespaces) {
2626
$values = array_map(fn (string $key) => [$locale, "{$namespace}.$key"], $keys);
2727

28-
if (array_key_last($namespaces) !== $namespace) {
28+
if ($namespaces->keys()->last() !== $namespace) {
2929
$values[] = [new TableSeparator, new TableSeparator];
3030
}
3131

0 commit comments

Comments
 (0)