@@ -249,7 +249,7 @@ discard block |
||
249 | 249 | $item->key = $this->getKey($locale, $domain, $translation); |
250 | 250 | $item->domain = $domain; |
251 | 251 | $item->locale = $locale; |
252 | - $item->context = (string)$translation->getContext(); |
|
252 | + $item->context = (string) $translation->getContext(); |
|
253 | 253 | $item->original = $translation->getOriginal(); |
254 | 254 | $item->translation = $translation->getTranslation(); |
255 | 255 | $item->originalPlural = $translation->getPlural(); |
@@ -293,8 +293,8 @@ discard block |
||
293 | 293 | { |
294 | 294 | return $this->convertItems( |
295 | 295 | $locale, |
296 | - (string)$domain, |
|
297 | - $this->repository->getAll($locale, (string)$domain) |
|
296 | + (string) $domain, |
|
297 | + $this->repository->getAll($locale, (string) $domain) |
|
298 | 298 | ); |
299 | 299 | } |
300 | 300 | |
@@ -309,8 +309,8 @@ discard block |
||
309 | 309 | { |
310 | 310 | return $this->convertItems( |
311 | 311 | $locale, |
312 | - (string)$domain, |
|
313 | - $this->repository->getEnabled($locale, (string)$domain) |
|
312 | + (string) $domain, |
|
313 | + $this->repository->getEnabled($locale, (string) $domain) |
|
314 | 314 | ); |
315 | 315 | } |
316 | 316 | |
@@ -323,9 +323,9 @@ discard block |
||
323 | 323 | */ |
324 | 324 | public function getEnabledTranslated(string $locale, $domain): Translations |
325 | 325 | { |
326 | - $items = $this->repository->getEnabledTranslated($locale, (string)$domain); |
|
326 | + $items = $this->repository->getEnabledTranslated($locale, (string) $domain); |
|
327 | 327 | |
328 | - return $this->convertItems($locale, (string)$domain, $items); |
|
328 | + return $this->convertItems($locale, (string) $domain, $items); |
|
329 | 329 | } |
330 | 330 | |
331 | 331 | /** |
@@ -337,9 +337,9 @@ discard block |
||
337 | 337 | */ |
338 | 338 | public function getEnabledTranslatedJs(string $locale, $domain): Translations |
339 | 339 | { |
340 | - $items = $this->repository->getEnabledTranslatedJs($locale, (string)$domain); |
|
340 | + $items = $this->repository->getEnabledTranslatedJs($locale, (string) $domain); |
|
341 | 341 | |
342 | - return $this->convertItems($locale, (string)$domain, $items); |
|
342 | + return $this->convertItems($locale, (string) $domain, $items); |
|
343 | 343 | } |
344 | 344 | |
345 | 345 | /** |
@@ -353,8 +353,8 @@ discard block |
||
353 | 353 | { |
354 | 354 | return $this->convertItems( |
355 | 355 | $locale, |
356 | - (string)$domain, |
|
357 | - $this->repository->getRequiresTranslating($locale, (string)$domain) |
|
356 | + (string) $domain, |
|
357 | + $this->repository->getRequiresTranslating($locale, (string) $domain) |
|
358 | 358 | ); |
359 | 359 | } |
360 | 360 | |
@@ -368,7 +368,7 @@ discard block |
||
368 | 368 | */ |
369 | 369 | private function convertItems(string $locale, $domain, array $items): Translations |
370 | 370 | { |
371 | - $domain = (string)$domain; |
|
371 | + $domain = (string) $domain; |
|
372 | 372 | |
373 | 373 | $translations = new Translations; |
374 | 374 | $translations->setDomain($domain); |