librenms/librenms

View on GitHub
LibreNMS/Exceptions/UnserializableRouteCache.php

Summary

Maintainability
A
35 mins
Test Coverage

Method __construct has 5 arguments (exceeds 4 allowed). Consider refactoring.
Open

    public function __construct($message = '', $code = 0, Throwable $previous = null, $cli_php_version = null, $web_php_version = null)
Severity: Minor
Found in LibreNMS/Exceptions/UnserializableRouteCache.php - About 35 mins to fix

    The property $cli_php_version is not named in camelCase.
    Open

    class UnserializableRouteCache extends \Exception implements UpgradeableException
    {
        protected $cli_php_version;
        protected $web_php_version;
    
    

    CamelCasePropertyName

    Since: 0.2

    It is considered best practice to use the camelCase notation to name attributes.

    Example

    class ClassName {
        protected $property_name;
    }

    Source

    The property $web_php_version is not named in camelCase.
    Open

    class UnserializableRouteCache extends \Exception implements UpgradeableException
    {
        protected $cli_php_version;
        protected $web_php_version;
    
    

    CamelCasePropertyName

    Since: 0.2

    It is considered best practice to use the camelCase notation to name attributes.

    Example

    class ClassName {
        protected $property_name;
    }

    Source

    There are no issues that match your filters.

    Category
    Status