detain/myadmin-abuse-plugin

View on GitHub
src/abuse_admin.php

Summary

Maintainability
F
4 days
Test Coverage

Function abuse_admin has a Cognitive Complexity of 91 (exceeds 5 allowed). Consider refactoring.
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 - About 1 day to fix

Cognitive Complexity

Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

A method's cognitive complexity is based on a few simple rules:

  • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
  • Code is considered more complex for each "break in the linear flow of the code"
  • Code is considered more complex when "flow breaking structures are nested"

Further reading

Method abuse_admin has 351 lines of code (exceeds 25 allowed). Consider refactoring.
Open

function abuse_admin()
{
    function_requirements('get_server_from_ip');
    function_requirements('class.ImapAbuseCheck');
    add_js('bootstrap');
Severity: Major
Found in src/abuse_admin.php - About 1 day to fix

    File abuse_admin.php has 355 lines of code (exceeds 250 allowed). Consider refactoring.
    Open

    <?php
    /**
     * Administrative Functionality
     * @author Joe Huss <detain@interserver.net>
     * @copyright 2019
    Severity: Minor
    Found in src/abuse_admin.php - About 4 hrs to fix

      Avoid deeply nested control flow statements.
      Open

                              if ($date < $limit_date) {
                                  continue;
                              }
      Severity: Major
      Found in src/abuse_admin.php - About 45 mins to fix

        The function abuse_admin() has a Cyclomatic Complexity of 64. The configured cyclomatic complexity threshold is 10.
        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

        CyclomaticComplexity

        Since: 0.1

        Complexity is determined by the number of decision points in a method plus one for the method entry. The decision points are 'if', 'while', 'for', and 'case labels'. Generally, 1-4 is low complexity, 5-7 indicates moderate complexity, 8-10 is high complexity, and 11+ is very high complexity.

        Example

        // Cyclomatic Complexity = 11
        class Foo {
        1   public function example() {
        2       if ($a == $b) {
        3           if ($a1 == $b1) {
                        fiddle();
        4           } elseif ($a2 == $b2) {
                        fiddle();
                    } else {
                        fiddle();
                    }
        5       } elseif ($c == $d) {
        6           while ($c == $d) {
                        fiddle();
                    }
        7        } elseif ($e == $f) {
        8           for ($n = 0; $n < $h; $n++) {
                        fiddle();
                    }
                } else {
                    switch ($z) {
        9               case 1:
                            fiddle();
                            break;
        10              case 2:
                            fiddle();
                            break;
        11              case 3:
                            fiddle();
                            break;
                        default:
                            fiddle();
                            break;
                    }
                }
            }
        }

        Source https://phpmd.org/rules/codesize.html#cyclomaticcomplexity

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

                        $date = new \DateTime((is_numeric($parts[1]) && mb_strlen($parts[1]) == 10) ? date(MYSQL_DATE_FORMAT, $parts[1]) : $parts[1]);
        Severity: Minor
        Found in src/abuse_admin.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 '39', column '19').
        Open

            $table2 = new \TFTable();
        Severity: Minor
        Found in src/abuse_admin.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 '398', column '18').
        Open

            $table = new \TFTable();
        Severity: Minor
        Found in src/abuse_admin.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 '59', column '23').
        Open

            $table_orig = new \TFTable();
        Severity: Minor
        Found in src/abuse_admin.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 '189', column '33').
        Open

                            $date = new \DateTime(is_numeric($parts[1]) && mb_strlen($parts[1]) == 10 ? date(MYSQL_DATE_FORMAT, $parts[1]) : $parts[1]);
        Severity: Minor
        Found in src/abuse_admin.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 '217', column '30').
        Open

                                (new \MyAdmin\Mail())->clientMail($subject, $message, $server_data['email_abuse'], 'client/abuse.tpl');
        Severity: Minor
        Found in src/abuse_admin.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 '46', column '22').
        Open

                $table = new \TFTable();
        Severity: Minor
        Found in src/abuse_admin.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 '164', column '26').
        Open

                            (new \MyAdmin\Mail())->clientMail($subject, $message, $server_data['email_abuse'], 'client/abuse.tpl');
        Severity: Minor
        Found in src/abuse_admin.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 '191', column '43').
        Open

                                $limit_date = new \DateTime(date(MYSQL_DATE_FORMAT, time() - $GLOBALS['tf']->variables->request['dates']));
        Severity: Minor
        Found in src/abuse_admin.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 '344', column '18').
        Open

            $table = new \TFTable();
        Severity: Minor
        Found in src/abuse_admin.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 '378', column '18').
        Open

            $table = new \TFTable();
        Severity: Minor
        Found in src/abuse_admin.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 '264', column '26').
        Open

                            (new \MyAdmin\Mail())->clientMail($subject, $message, $server_data['email_abuse'], 'client/abuse.tpl');
        Severity: Minor
        Found in src/abuse_admin.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 '325', column '18').
        Open

            $table = new \TFTable();
        Severity: Minor
        Found in src/abuse_admin.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 '123', column '22').
        Open

                        (new \MyAdmin\Mail())->clientMail($subject, $message, $server_data['email_abuse'], 'client/abuse.tpl');
        Severity: Minor
        Found in src/abuse_admin.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 '310', column '26').
        Open

                            (new \MyAdmin\Mail())->clientMail($subject, $message, $server_data['email_abuse'], 'client/abuse.tpl');
        Severity: Minor
        Found in src/abuse_admin.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 '$mailed'.
        Open

            $mailed = 0;
        Severity: Minor
        Found in src/abuse_admin.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 '$maxmailed'.
        Open

            $maxmailed = 5;
        Severity: Minor
        Found in src/abuse_admin.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 '$min_date'.
        Open

                $min_date = mysql_date_sub(null, 'INTERVAL 24 HOUR');
        Severity: Minor
        Found in src/abuse_admin.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 $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 $email_template 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 $email_template 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 $table_orig 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 $lid_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 $table_orig 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 $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 $email_template 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 $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 $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 $lid_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 $lid_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 $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 $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 $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 $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 $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 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 $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 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 $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 $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 $lid_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 $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 $email_template 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 $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 variable $lid_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 $email_template 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 $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 $email_template 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 $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 $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 $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 $limit_date 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 $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 $min_date 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 $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 $limit_date 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 $lid_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

        There are no issues that match your filters.

        Category
        Status