Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
QuentinGab committed Jun 20, 2024
1 parent a58032d commit 128f676
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/Translator.php
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ public function translateTranslations(
): Translations {
$service = $service ?? $this->translateService;

if (!$service) {
if (! $service) {
throw TranslatorServiceException::missingTranslateService();
}

Expand All @@ -146,7 +146,7 @@ function (Translations $translations) use ($referenceLocale, $targetLocale, $nam
->toBase()
->dot()
->only($keys)
->filter(fn ($value) => !blank($value))
->filter(fn ($value) => ! blank($value))
->toArray();

$translatedValues = $service->translateAll(
Expand All @@ -171,7 +171,7 @@ public function fixGrammarTranslations(
): Translations {
$service = $service ?? $this->grammarService;

if (!$service) {
if (! $service) {
throw TranslatorServiceException::missingGrammarService();
}

Expand All @@ -182,7 +182,7 @@ public function fixGrammarTranslations(
->toBase()
->dot()
->only($keys)
->filter(fn ($value) => !blank($value))
->filter(fn ($value) => ! blank($value))
->toArray()
);

Expand Down

0 comments on commit 128f676

Please sign in to comment.