Function format
has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring.
public static function format(ConverterInterface $converter)
{
if(!$converter->repository) {
throw new \Exception('Language "' . $converter . '" could not be converted to its english name since it is not registered in the Lingua repository');
}
Missing class import via use statement (line '16', column '23').
throw new \Exception('Unable to find language named "' . $this->original . '"');
Missing class import via use statement (line '33', column '23').
throw new \Exception('Language "' . $converter . '" could not be converted to its english name since it is not registered in the Lingua repository');
Avoid using static access to class 'WhiteCube\Lingua\LanguagesRepository' in method 'check'.
if(LanguagesRepository::find('name', self::prepare($format))) return true;
Avoid using static access to class 'WhiteCube\Lingua\LanguagesRepository' in method 'parse'.
$this->repository = LanguagesRepository::find('name', $this->original);
There are no issues that match your filters.