diff --git a/src/Translator.php b/src/Translator.php index 78df681..688b5fb 100755 --- a/src/Translator.php +++ b/src/Translator.php @@ -127,7 +127,7 @@ public function translateTranslations( ): Translations { $service = $service ?? $this->translateService; - if (!$service) { + if (! $service) { throw TranslatorServiceException::missingTranslateService(); } @@ -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( @@ -171,7 +171,7 @@ public function fixGrammarTranslations( ): Translations { $service = $service ?? $this->grammarService; - if (!$service) { + if (! $service) { throw TranslatorServiceException::missingGrammarService(); } @@ -182,7 +182,7 @@ public function fixGrammarTranslations( ->toBase() ->dot() ->only($keys) - ->filter(fn ($value) => !blank($value)) + ->filter(fn ($value) => ! blank($value)) ->toArray() );