Conditions | 4 |
Paths | 4 |
Total Lines | 11 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Tests | 8 |
CRAP Score | 4 |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
23 | 102 | protected function getPathForEnglish(string $locale): string |
|
24 | { |
||
25 | 102 | if ($this->is_json) { |
|
26 | 54 | return $locale === 'en' |
|
27 | 54 | ? '/script/en/en.json' |
|
28 | 54 | : '/json/' . $locale . '.json'; |
|
29 | } |
||
30 | |||
31 | 48 | return $locale === 'en' |
|
32 | 48 | ? '/script/en' |
|
33 | 48 | : '/src/' . $locale; |
|
34 | } |
||
36 |