@@ -154,12 +154,12 @@ |
||
| 154 | 154 | |
| 155 | 155 | // If extensions are set, filter other files out |
| 156 | 156 | if ($item->extensions) { |
| 157 | - $files = array_filter($files, function ($file) use ($item) { |
|
| 157 | + $files = array_filter($files, function($file) use ($item) { |
|
| 158 | 158 | return in_array($file['extension'], $item->extensions); |
| 159 | 159 | }); |
| 160 | 160 | } |
| 161 | 161 | |
| 162 | - return array_map(function ($file) use ($dir) { |
|
| 162 | + return array_map(function($file) use ($dir) { |
|
| 163 | 163 | return $dir . DIRECTORY_SEPARATOR . $file['path']; |
| 164 | 164 | }, $files); |
| 165 | 165 | } |
@@ -30,7 +30,7 @@ discard block |
||
| 30 | 30 | public function saveTranslations(Translations $translations) |
| 31 | 31 | { |
| 32 | 32 | $locale = $translations->getLanguage(); |
| 33 | - $domain = (string)$translations->getDomain(); |
|
| 33 | + $domain = (string) $translations->getDomain(); |
|
| 34 | 34 | |
| 35 | 35 | if (!$locale) { |
| 36 | 36 | throw new InvalidTranslationException('Locale is missing'); |
@@ -115,7 +115,7 @@ discard block |
||
| 115 | 115 | $item->key = $this->getKey($locale, $domain, $translation); |
| 116 | 116 | $item->domain = $domain; |
| 117 | 117 | $item->locale = $locale; |
| 118 | - $item->context = (string)$translation->getContext(); |
|
| 118 | + $item->context = (string) $translation->getContext(); |
|
| 119 | 119 | $item->original = $translation->getOriginal(); |
| 120 | 120 | $item->translation = $translation->getTranslation(); |
| 121 | 121 | $item->originalPlural = $translation->getPlural(); |
@@ -166,7 +166,7 @@ discard block |
||
| 166 | 166 | |
| 167 | 167 | private function getTranslations(string $locale, $domain, bool $enabledOnly, bool $translatedOnly): Translations |
| 168 | 168 | { |
| 169 | - $domain = (string)$domain; |
|
| 169 | + $domain = (string) $domain; |
|
| 170 | 170 | |
| 171 | 171 | $translations = new Translations; |
| 172 | 172 | $translations->setDomain($domain); |