detain/myadmin-abuse-plugin

View on GitHub

Showing 199 of 199 total issues

The variable $server_data is not named in camelCase.
Open

function abuse_admin()
{
    function_requirements('get_server_from_ip');
    function_requirements('class.ImapAbuseCheck');
    add_js('bootstrap');
Severity: Minor
Found in src/abuse_admin.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 $server_data is not named in camelCase.
Open

function abuse_admin()
{
    function_requirements('get_server_from_ip');
    function_requirements('class.ImapAbuseCheck');
    add_js('bootstrap');
Severity: Minor
Found in src/abuse_admin.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 $match_against is not named in camelCase.
Open

    public function process($type = 'spam', $limit = false)
    {
        //print_r($this->MC);
        if ($this->MC->Nmsgs > 0) {
            $abused = 0;
Severity: Minor
Found in src/ImapAbuseCheck.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 $match_against is not named in camelCase.
Open

    public function process($type = 'spam', $limit = false)
    {
        //print_r($this->MC);
        if ($this->MC->Nmsgs > 0) {
            $abused = 0;
Severity: Minor
Found in src/ImapAbuseCheck.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 $server_data is not named in camelCase.
Open

function abuse_admin()
{
    function_requirements('get_server_from_ip');
    function_requirements('class.ImapAbuseCheck');
    add_js('bootstrap');
Severity: Minor
Found in src/abuse_admin.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 $server_data is not named in camelCase.
Open

function abuse_admin()
{
    function_requirements('get_server_from_ip');
    function_requirements('class.ImapAbuseCheck');
    add_js('bootstrap');
Severity: Minor
Found in src/abuse_admin.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 $x_max is not named in camelCase.
Open

function abuse_admin()
{
    function_requirements('get_server_from_ip');
    function_requirements('class.ImapAbuseCheck');
    add_js('bootstrap');
Severity: Minor
Found in src/abuse_admin.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 $server_data is not named in camelCase.
Open

function abuse_admin()
{
    function_requirements('get_server_from_ip');
    function_requirements('class.ImapAbuseCheck');
    add_js('bootstrap');
Severity: Minor
Found in src/abuse_admin.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 method set_all_ips is not named in camelCase.
Open

    public function set_all_ips($all_ips)
    {
        $this->all_ips = $all_ips;
    }
Severity: Minor
Found in src/ImapAbuseCheck.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 delete_messages is not named in camelCase.
Open

    public function delete_messages()
    {
        imap_expunge($this->mbox);
    }
Severity: Minor
Found in src/ImapAbuseCheck.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 load_all_ips is not named in camelCase.
Open

    public function load_all_ips()
    {
        //echo "Loading IP Blocks\n";
        function_requirements('get_all_ips_from_ipblocks');
        $this->all_ips = get_all_ips_from_ipblocks(true);
Severity: Minor
Found in src/ImapAbuseCheck.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 register_preg_match_all is not named in camelCase.
Open

    public function register_preg_match_all($regex, $against = 'headers', $field = 'ip')
    {
        $regex = str_replace('%IP%', $this->get_ip_regex(), $regex);
        $this->preg_match_all[] = [
            'regex' => $regex,
Severity: Minor
Found in src/ImapAbuseCheck.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_folders is not named in camelCase.
Open

    public function get_folders()
    {
        /* This Gave me this:
        (0) {mx.interserver.net:143/imap/readonly}INBOX.Archives.2009,'.',64<br />
        ...
Severity: Minor
Found in src/ImapAbuseCheck.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 list_folders is not named in camelCase.
Open

    public function list_folders()
    {
        /* This Gave me this:
        <h1>Mailboxes</h1>
        {mx.interserver.net:143/imap/readonly}INBOX.Archives.2009<br />
Severity: Minor
Found in src/ImapAbuseCheck.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 fix_headers is not named in camelCase.
Open

    public static function fix_headers($headers)
    {
        $out = '';
        $state = 0;
        $headers = false;
Severity: Minor
Found in src/ImapAbuseCheck.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_default_email_headers is not named in camelCase.
Open

    public function set_default_email_headers()
    {
        $this->email_headers = "MIME-Version: 1.0\nContent-type: text/html; charset=UTF-8\nFrom: Abuse <abuse@interserver.net>\n";
    }
Severity: Minor
Found in src/ImapAbuseCheck.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 register_preg_match is not named in camelCase.
Open

    public function register_preg_match($regex, $against = 'headers', $field = 'ip')
    {
        $regex = str_replace('%IP%', $this->get_ip_regex(), $regex);
        $this->preg_match[] = [
            'regex' => $regex,
Severity: Minor
Found in src/ImapAbuseCheck.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_ip_regex is not named in camelCase.
Open

    public function get_ip_regex()
    {
        return $this->ip_regex;
    }
Severity: Minor
Found in src/ImapAbuseCheck.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 load_client_ips is not named in camelCase.
Open

    public function load_client_ips()
    {
        //echo "Loading IP Blocks\n";
        function_requirements('get_client_ips');
        $this->client_ips = get_client_ips(true);
Severity: Minor
Found in src/ImapAbuseCheck.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