Conditions | 3 |
Paths | 3 |
Total Lines | 11 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 12 |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
41 | private function getLanguages(): array |
||
42 | { |
||
43 | if (class_exists(Languages::class)) { |
||
44 | return Languages::getNames(); |
||
45 | } |
||
46 | |||
47 | if (class_exists(Intl::class)) { |
||
48 | return Intl::getLanguageBundle()->getLanguageNames(); |
||
|
|||
49 | } |
||
50 | |||
51 | throw new RuntimeException('No language provider exists'); |
||
52 | } |
||
54 |
This function has been deprecated. The supplier of the function has supplied an explanatory message.
The explanatory message should give you some clue as to whether and when the function will be removed and what other function to use instead.