Conditions | 2 |
Paths | 2 |
Total Lines | 9 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Changes | 4 | ||
Bugs | 0 | Features | 0 |
1 | <?php namespace Modules\Translation\Services; |
||
18 | public function get($key, array $replace = [], $locale = null, $fallback = true) |
||
19 | { |
||
20 | $translationRepository = app(TranslationRepository::class); |
||
21 | if ($translation = $translationRepository->findByKeyAndLocale($key, $locale)) { |
||
22 | return $this->makeReplacements($translation, $replace); |
||
23 | } |
||
24 | |||
25 | return parent::get($key, $replace, $locale); |
||
26 | } |
||
27 | } |
||
28 |