Conditions | 7 |
Paths | 5 |
Total Lines | 17 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Tests | 7 |
CRAP Score | 7.0957 |
Changes | 1 | ||
Bugs | 1 | Features | 0 |
1 | <?php |
||
22 | 27 | public function getFileName($countryCallingCode, $language, $script, $region) |
|
|
|||
23 | { |
||
24 | 27 | if (strlen($language) == 0) { |
|
25 | return ""; |
||
26 | } |
||
27 | |||
28 | 27 | if ($language === 'zh' && ($region == 'TW' || $region == 'HK' || $region == 'MO')) { |
|
29 | 1 | $language = 'zh_Hant'; |
|
30 | } |
||
31 | |||
32 | 27 | if ($this->inMap($language, $countryCallingCode)) { |
|
33 | 22 | return $language . DIRECTORY_SEPARATOR . $countryCallingCode . '.php'; |
|
34 | } |
||
35 | |||
36 | |||
37 | 9 | return ""; |
|
38 | } |
||
39 | |||
45 |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.