Skip to content

Commit 051a223

Browse files
committed
fix
1 parent a38e83e commit 051a223

File tree

2 files changed

+12
-8
lines changed

2 files changed

+12
-8
lines changed

src/Commands/FixGrammarTranslationsCommand.php

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,10 +39,12 @@ public function handle(): int
3939

4040
$this->line(count($keys)." keys to fix found in {$locale}/{$namespace}.php");
4141

42-
if (count($keys)) {
43-
if (! $this->confirm('Would you like to continue?', true)) {
44-
continue;
45-
}
42+
if (! count($keys)) {
43+
continue;
44+
}
45+
46+
if (! $this->confirm('Would you like to continue?', true)) {
47+
continue;
4648
}
4749

4850
$translations = Translator::fixGrammarTranslations(

src/Commands/TranslateTranslationsCommand.php

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -40,10 +40,12 @@ public function handle(): int
4040

4141
$this->line(count($keys)." keys to translate found in {$target}/{$namespace}.php");
4242

43-
if (count($keys)) {
44-
if (! $this->confirm('Would you like to continue?', true)) {
45-
continue;
46-
}
43+
if (! count($keys)) {
44+
continue;
45+
}
46+
47+
if (! $this->confirm('Would you like to continue?', true)) {
48+
continue;
4749
}
4850

4951
$translations = Translator::translateTranslations(

0 commit comments

Comments
 (0)