detain/myadmin-cpanel-webhosting

View on GitHub

Showing 139 of 139 total issues

The method get_protocol is not named in camelCase.
Open

    public function get_protocol()
    {
        return $this->protocol;
    }
Severity: Minor
Found in src/xmlapi.php by phpmd

CamelCaseMethodName

Since: 0.2

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

Example

class ClassName {
    public function get_name() {
    }
}

Source

The method get_auth_type is not named in camelCase.
Open

    public function get_auth_type()
    {
        return $this->auth_type;
    }
Severity: Minor
Found in src/xmlapi.php by phpmd

CamelCaseMethodName

Since: 0.2

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

Example

class ClassName {
    public function get_name() {
    }
}

Source

The method get_http_client is not named in camelCase.
Open

    public function get_http_client()
    {
        return $this->http_client;
    }
Severity: Minor
Found in src/xmlapi.php by phpmd

CamelCaseMethodName

Since: 0.2

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

Example

class ClassName {
    public function get_name() {
    }
}

Source

The method get_host is not named in camelCase.
Open

    public function get_host()
    {
        return $this->host;
    }
Severity: Minor
Found in src/xmlapi.php by phpmd

CamelCaseMethodName

Since: 0.2

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

Example

class ClassName {
    public function get_name() {
    }
}

Source

The method set_auth_type is not named in camelCase.
Open

    public function set_auth_type($auth_type)
    {
        if ($auth_type != 'hash' && $auth_type != 'pass') {
            throw new Exception('the only two allowable auth types arehash and path');
        }
Severity: Minor
Found in src/xmlapi.php by phpmd

CamelCaseMethodName

Since: 0.2

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

Example

class ClassName {
    public function get_name() {
    }
}

Source

The method password_auth is not named in camelCase.
Open

    public function password_auth($user, $pass)
    {
        $this->set_password($pass);
        $this->set_user($user);
    }
Severity: Minor
Found in src/xmlapi.php by phpmd

CamelCaseMethodName

Since: 0.2

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

Example

class ClassName {
    public function get_name() {
    }
}

Source

The method set_password is not named in camelCase.
Open

    public function set_password($pass)
    {
        $this->auth_type = 'pass';
        $this->auth = $pass;
    }
Severity: Minor
Found in src/xmlapi.php by phpmd

CamelCaseMethodName

Since: 0.2

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

Example

class ClassName {
    public function get_name() {
    }
}

Source

The method get_output is not named in camelCase.
Open

    public function get_output()
    {
        return $this->output;
    }
Severity: Minor
Found in src/xmlapi.php by phpmd

CamelCaseMethodName

Since: 0.2

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

Example

class ClassName {
    public function get_name() {
    }
}

Source

The method set_output is not named in camelCase.
Open

    public function set_output($output)
    {
        if ($output != 'json' && $output != 'xml' && $output != 'array' && $output != 'simplexml') {
            throw new Exception('json, xml, array and simplexml are the only allowed values for set_output');
        }
Severity: Minor
Found in src/xmlapi.php by phpmd

CamelCaseMethodName

Since: 0.2

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

Example

class ClassName {
    public function get_name() {
    }
}

Source

The method curl_query is not named in camelCase.
Open

    private function curl_query($url, $postdata, $authstr)
    {
        $curl = curl_init();
        curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, 0);
        // Return contents of transfer on curl_exec
Severity: Minor
Found in src/xmlapi.php by phpmd

CamelCaseMethodName

Since: 0.2

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

Example

class ClassName {
    public function get_name() {
    }
}

Source

The method get_user is not named in camelCase.
Open

    public function get_user()
    {
        return $this->user;
    }
Severity: Minor
Found in src/xmlapi.php by phpmd

CamelCaseMethodName

Since: 0.2

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

Example

class ClassName {
    public function get_name() {
    }
}

Source

The method return_object is not named in camelCase.
Open

    public function return_object()
    {
        $this->set_output('simplexml');
    }
Severity: Minor
Found in src/xmlapi.php by phpmd

CamelCaseMethodName

Since: 0.2

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

Example

class ClassName {
    public function get_name() {
    }
}

Source

The method set_host is not named in camelCase.
Open

    public function set_host($host)
    {
        $this->host = $host;
    }
Severity: Minor
Found in src/xmlapi.php by phpmd

CamelCaseMethodName

Since: 0.2

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

Example

class ClassName {
    public function get_name() {
    }
}

Source

The method set_port is not named in camelCase.
Open

    public function set_port($port)
    {
        if (!is_int($port)) {
            $port = intval($port);
        }
Severity: Minor
Found in src/xmlapi.php by phpmd

CamelCaseMethodName

Since: 0.2

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

Example

class ClassName {
    public function get_name() {
    }
}

Source

The method set_user is not named in camelCase.
Open

    public function set_user($user)
    {
        $this->user = $user;
    }
Severity: Minor
Found in src/xmlapi.php by phpmd

CamelCaseMethodName

Since: 0.2

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

Example

class ClassName {
    public function get_name() {
    }
}

Source

The method api1_query is not named in camelCase.
Open

    public function api1_query($user, $module, $function, $args = [])
    {
        if (!isset($module) || !isset($function) || !isset($user)) {
            error_log("api1_query requires that a module and function are passed to it");

Severity: Minor
Found in src/xmlapi.php by phpmd

CamelCaseMethodName

Since: 0.2

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

Example

class ClassName {
    public function get_name() {
    }
}

Source

The method xmlapi_query is not named in camelCase.
Open

    public function xmlapi_query($function, $vars = [])
    {
        // Check to make sure all the data needed to perform the query is in place
        if (!$function) {
            throw new Exception('xmlapi_query() requires a function to be passed to it');
Severity: Minor
Found in src/xmlapi.php by phpmd

CamelCaseMethodName

Since: 0.2

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

Example

class ClassName {
    public function get_name() {
    }
}

Source

The method set_protocol is not named in camelCase.
Open

    public function set_protocol($proto)
    {
        if ($proto != 'https' && $proto != 'http') {
            throw new Exception('https and http are the only protocols that can be passed to set_protocol');
        }
Severity: Minor
Found in src/xmlapi.php by phpmd

CamelCaseMethodName

Since: 0.2

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

Example

class ClassName {
    public function get_name() {
    }
}

Source

The method set_hash is not named in camelCase.
Open

    public function set_hash($hash)
    {
        $this->auth_type = 'hash';
        $this->auth = preg_replace("/(\n|\r|\s)/", '', $hash);
    }
Severity: Minor
Found in src/xmlapi.php by phpmd

CamelCaseMethodName

Since: 0.2

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

Example

class ClassName {
    public function get_name() {
    }
}

Source

Severity
Category
Status
Source
Language