@@ -37,7 +37,7 @@ discard block |
||
37 | 37 | public function saveTranslations(Translations $translations) |
38 | 38 | { |
39 | 39 | $locale = $translations->getLanguage(); |
40 | - $domain = (string)$translations->getDomain(); |
|
40 | + $domain = (string) $translations->getDomain(); |
|
41 | 41 | |
42 | 42 | if (!$locale) { |
43 | 43 | throw new InvalidTranslationException('Locale is missing'); |
@@ -181,7 +181,7 @@ discard block |
||
181 | 181 | $item->key = $this->getKey($locale, $domain, $translation); |
182 | 182 | $item->domain = $domain; |
183 | 183 | $item->locale = $locale; |
184 | - $item->context = (string)$translation->getContext(); |
|
184 | + $item->context = (string) $translation->getContext(); |
|
185 | 185 | $item->original = $translation->getOriginal(); |
186 | 186 | $item->translation = $translation->getTranslation(); |
187 | 187 | $item->originalPlural = $translation->getPlural(); |
@@ -225,8 +225,8 @@ discard block |
||
225 | 225 | { |
226 | 226 | return $this->convertItems( |
227 | 227 | $locale, |
228 | - (string)$domain, |
|
229 | - $this->repository->getAll($locale, (string)$domain) |
|
228 | + (string) $domain, |
|
229 | + $this->repository->getAll($locale, (string) $domain) |
|
230 | 230 | ); |
231 | 231 | } |
232 | 232 | |
@@ -241,8 +241,8 @@ discard block |
||
241 | 241 | { |
242 | 242 | return $this->convertItems( |
243 | 243 | $locale, |
244 | - (string)$domain, |
|
245 | - $this->repository->getEnabled($locale, (string)$domain) |
|
244 | + (string) $domain, |
|
245 | + $this->repository->getEnabled($locale, (string) $domain) |
|
246 | 246 | ); |
247 | 247 | } |
248 | 248 | |
@@ -255,9 +255,9 @@ discard block |
||
255 | 255 | */ |
256 | 256 | public function getEnabledTranslated(string $locale, $domain): Translations |
257 | 257 | { |
258 | - $items = $this->repository->getEnabledTranslated($locale, (string)$domain); |
|
258 | + $items = $this->repository->getEnabledTranslated($locale, (string) $domain); |
|
259 | 259 | |
260 | - return $this->convertItems($locale, (string)$domain, $items); |
|
260 | + return $this->convertItems($locale, (string) $domain, $items); |
|
261 | 261 | } |
262 | 262 | |
263 | 263 | /** |
@@ -269,9 +269,9 @@ discard block |
||
269 | 269 | */ |
270 | 270 | public function getEnabledTranslatedJs(string $locale, $domain): Translations |
271 | 271 | { |
272 | - $items = $this->repository->getEnabledTranslatedJs($locale, (string)$domain); |
|
272 | + $items = $this->repository->getEnabledTranslatedJs($locale, (string) $domain); |
|
273 | 273 | |
274 | - return $this->convertItems($locale, (string)$domain, $items); |
|
274 | + return $this->convertItems($locale, (string) $domain, $items); |
|
275 | 275 | } |
276 | 276 | |
277 | 277 | /** |
@@ -285,8 +285,8 @@ discard block |
||
285 | 285 | { |
286 | 286 | return $this->convertItems( |
287 | 287 | $locale, |
288 | - (string)$domain, |
|
289 | - $this->repository->getRequiresTranslating($locale, (string)$domain) |
|
288 | + (string) $domain, |
|
289 | + $this->repository->getRequiresTranslating($locale, (string) $domain) |
|
290 | 290 | ); |
291 | 291 | } |
292 | 292 | |
@@ -300,7 +300,7 @@ discard block |
||
300 | 300 | */ |
301 | 301 | private function convertItems(string $locale, $domain, array $items): Translations |
302 | 302 | { |
303 | - $domain = (string)$domain; |
|
303 | + $domain = (string) $domain; |
|
304 | 304 | |
305 | 305 | $translations = new Translations; |
306 | 306 | $translations->setDomain($domain); |