whiteCube/lingua

View on GitHub
src/Lingua/NativeConverter.php

Summary

Maintainability
A
0 mins
Test Coverage

Showing 4 of 4 total issues

Missing class import via use statement (line '16', column '23').
Open

throw new \Exception('Unable to find native language named "' . $this->original . '"');
Severity: Minor
Found in src/Lingua/NativeConverter.php by phpmd

Missing class import via use statement (line '33', column '23').
Open

throw new \Exception('Language "' . $converter . '" could not be converted to its native name since it is not registered in the Lingua repository');
Severity: Minor
Found in src/Lingua/NativeConverter.php by phpmd

Avoid using static access to class 'WhiteCube\Lingua\LanguagesRepository' in method 'parse'.
Open

$this->repository = LanguagesRepository::find('native', $this->original);
Severity: Minor
Found in src/Lingua/NativeConverter.php by phpmd

Avoid using static access to class 'WhiteCube\Lingua\LanguagesRepository' in method 'check'.
Open

if(LanguagesRepository::find('native', self::prepare($format))) return true;
Severity: Minor
Found in src/Lingua/NativeConverter.php by phpmd

There are no issues that match your filters.

Category
Status