detain/myadmin-hyperv-vps

View on GitHub

Showing 102 of 102 total issues

Missing class import via use statement (line '477', column '25').
Open

            $soap = new \SoapClient($url, $params);
Severity: Minor
Found in src/Plugin.php by phpmd

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

Missing class import via use statement (line '585', column '29').
Open

                $soap = new \SoapClient($url, $params);
Severity: Minor
Found in src/Plugin.php by phpmd

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

Avoid too many return statements within this method.
Open

            return [
                'vmId' => $serviceInfo['vps_vzid'],
                'hyperVAdmin' => 'Administrator',
                'adminPassword' => $serviceInfo['server_info']['vps_root']
            ];
Severity: Major
Found in src/Plugin.php - About 30 mins to fix

    Missing class import via use statement (line '290', column '29').
    Open

                    $soap = new \SoapClient($url, $params);
    Severity: Minor
    Found in src/Plugin.php by phpmd

    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

    Missing class import via use statement (line '442', column '25').
    Open

                $soap = new \SoapClient($url, $params);
    Severity: Minor
    Found in src/Plugin.php by phpmd

    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

    Missing class import via use statement (line '512', column '29').
    Open

                    $soap = new \SoapClient($url, $params);
    Severity: Minor
    Found in src/Plugin.php by phpmd

    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

    Missing class import via use statement (line '347', column '25').
    Open

                $soap = new \SoapClient($url, $params);
    Severity: Minor
    Found in src/Plugin.php by phpmd

    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

    Missing class import via use statement (line '112', column '37').
    Open

                            $soap = new \SoapClient(self::getSoapClientUrl($serviceInfo['server_info']['vps_ip']), self::getSoapClientParams());
    Severity: Minor
    Found in src/Plugin.php by phpmd

    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

    Missing class import via use statement (line '371', column '29').
    Open

                    $soap = new \SoapClient($url, $params);
    Severity: Minor
    Found in src/Plugin.php by phpmd

    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

    Missing class import via use statement (line '498', column '25').
    Open

                $soap = new \SoapClient($url, $params);
    Severity: Minor
    Found in src/Plugin.php by phpmd

    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

    Missing class import via use statement (line '614', column '29').
    Open

                    $soap = new \SoapClient($url, $params);
    Severity: Minor
    Found in src/Plugin.php by phpmd

    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

    Avoid unused local variables such as '$response'.
    Open

                            $response = $soap->$call(self::getSoapCallParams($call, $serviceInfo));
    Severity: Minor
    Found in src/Plugin.php by phpmd

    UnusedLocalVariable

    Since: 0.2

    Detects when a local variable is declared and/or assigned, but not used.

    Example

    class Foo {
        public function doSomething()
        {
            $i = 5; // Unused
        }
    }

    Source https://phpmd.org/rules/unusedcode.html#unusedlocalvariable

    Avoid unused local variables such as '$ip_parameters'.
    Open

                $ip_parameters = [
    Severity: Minor
    Found in src/Plugin.php by phpmd

    UnusedLocalVariable

    Since: 0.2

    Detects when a local variable is declared and/or assigned, but not used.

    Example

    class Foo {
        public function doSomething()
        {
            $i = 5; // Unused
        }
    }

    Source https://phpmd.org/rules/unusedcode.html#unusedlocalvariable

    The variable $iops_parameters is not named in camelCase.
    Open

        public static function queueCreate($serviceInfo)
        {
            $db = get_module_db(self::$module);
            $db2 = get_module_db(self::$module);
            $settings = get_module_settings(self::$module);
    Severity: Minor
    Found in src/Plugin.php by phpmd

    CamelCaseVariableName

    Since: 0.2

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

    Example

    class ClassName {
        public function doSomething() {
            $data_module = new DataModule();
        }
    }

    Source

    The variable $iops_parameters is not named in camelCase.
    Open

        public static function queueCreate($serviceInfo)
        {
            $db = get_module_db(self::$module);
            $db2 = get_module_db(self::$module);
            $settings = get_module_settings(self::$module);
    Severity: Minor
    Found in src/Plugin.php by phpmd

    CamelCaseVariableName

    Since: 0.2

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

    Example

    class ClassName {
        public function doSomething() {
            $data_module = new DataModule();
        }
    }

    Source

    The variable $password_parameters is not named in camelCase.
    Open

        public static function queueCreate($serviceInfo)
        {
            $db = get_module_db(self::$module);
            $db2 = get_module_db(self::$module);
            $settings = get_module_settings(self::$module);
    Severity: Minor
    Found in src/Plugin.php by phpmd

    CamelCaseVariableName

    Since: 0.2

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

    Example

    class ClassName {
        public function doSomething() {
            $data_module = new DataModule();
        }
    }

    Source

    The variable $install_time is not named in camelCase.
    Open

        public static function queueCreate($serviceInfo)
        {
            $db = get_module_db(self::$module);
            $db2 = get_module_db(self::$module);
            $settings = get_module_settings(self::$module);
    Severity: Minor
    Found in src/Plugin.php by phpmd

    CamelCaseVariableName

    Since: 0.2

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

    Example

    class ClassName {
        public function doSomething() {
            $data_module = new DataModule();
        }
    }

    Source

    The variable $create_parameters is not named in camelCase.
    Open

        public static function queueCreate($serviceInfo)
        {
            $db = get_module_db(self::$module);
            $db2 = get_module_db(self::$module);
            $settings = get_module_settings(self::$module);
    Severity: Minor
    Found in src/Plugin.php by phpmd

    CamelCaseVariableName

    Since: 0.2

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

    Example

    class ClassName {
        public function doSomething() {
            $data_module = new DataModule();
        }
    }

    Source

    The variable $turnon_response is not named in camelCase.
    Open

        public static function queueCreate($serviceInfo)
        {
            $db = get_module_db(self::$module);
            $db2 = get_module_db(self::$module);
            $settings = get_module_settings(self::$module);
    Severity: Minor
    Found in src/Plugin.php by phpmd

    CamelCaseVariableName

    Since: 0.2

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

    Example

    class ClassName {
        public function doSomething() {
            $data_module = new DataModule();
        }
    }

    Source

    The variable $turnon_response is not named in camelCase.
    Open

        public static function queueCreate($serviceInfo)
        {
            $db = get_module_db(self::$module);
            $db2 = get_module_db(self::$module);
            $settings = get_module_settings(self::$module);
    Severity: Minor
    Found in src/Plugin.php by phpmd

    CamelCaseVariableName

    Since: 0.2

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

    Example

    class ClassName {
        public function doSomething() {
            $data_module = new DataModule();
        }
    }

    Source

    Severity
    Category
    Status
    Source
    Language