LibreNMS/Authentication/LegacyAuth.php
Missing class import via use statement (line '60', column '23'). Open
Open
throw new \RuntimeException($type . ' not found as auth_mechanism');
- Read upRead up
- Exclude checks
MissingImport
Since: 2.7.0
Importing all external classes in a file through use statements makes them clearly visible.
Example
function make() {
return new \stdClass();
}
Source http://phpmd.org/rules/cleancode.html#MissingImport
The property $_instance is not named in camelCase. Open
Open
class LegacyAuth
{
protected static $_instance;
private static $configToClassMap = [
'mysql' => 'LibreNMS\Authentication\MysqlAuthorizer',
- Read upRead up
- Exclude checks
CamelCasePropertyName
Since: 0.2
It is considered best practice to use the camelCase notation to name attributes.
Example
class ClassName {
protected $property_name;
}
Source
Property name "$_instance" should not be prefixed with an underscore to indicate visibility Open
Open
protected static $_instance;
- Exclude checks