src/Lingua/LanguagesRepository.php
Showing 3 of 3 total issues
Function find
has a Cognitive Complexity of 11 (exceeds 5 allowed). Consider refactoring. Open
Open
public static function find($format, $value) { $instance = self::getInstance(); foreach ($instance->languages as $language) { if(!isset($language[$format])) continue;
- Read upRead up
Remove error control operator '@' on line 59. Open
Open
protected function loadRepository() { if(false === @file_get_contents($this->path)) { throw new \Exception('Lingua\'s languages repository could not be loaded'); }
- Read upRead up
- Exclude checks
Missing class import via use statement (line '60', column '23'). Open
Open
throw new \Exception('Lingua\'s languages repository could not be loaded');
- Read upRead up
- Exclude checks