detain/myadmin-opensrs-domains

View on GitHub

Showing 90 of 90 total issues

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

                foreach ($response['xml_array']['body']['data_block']['dt_assoc']['item'] as $idx => $data) {
Severity: Minor
Found in src/OpenSRS.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 '$domainIdx'.
Open

                                foreach ($domainParentData['dt_array']['item'] as $domainIdx => $domainArray) {
Severity: Minor
Found in src/OpenSRS.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 '$loader'.
Open

        $loader = $event->getSubject();
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 '$levels'.
Open

                    myadmin_log('domains', 'error', 'This Line `'.$xml[$error->line - 1].'` gave a '.$levels[$error->level].' #'.$error->code.' `'.$error->message.'` at Line '.$error->line.' Column '.$error->column.' File '.$error->file, __LINE__, __FILE__, self::$module);
Severity: Minor
Found in src/OpenSRS.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 '$dataIdx'.
Open

                        foreach ($data['dt_assoc']['item'] as $dataIdx => $domainParentData) {
Severity: Minor
Found in src/OpenSRS.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 $d_remains is not named in camelCase.
Open

    public static function activate_domain($id)
    {
        page_title('Activate Domain');
        $settings = get_module_settings('domains');
        $db = get_module_db('domains');
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 $expiry_full_date is not named in camelCase.
Open

    public static function activate_domain($id)
    {
        page_title('Activate Domain');
        $settings = get_module_settings('domains');
        $db = get_module_db('domains');
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 $expiry_full_date is not named in camelCase.
Open

    public static function activate_domain($id)
    {
        page_title('Activate Domain');
        $settings = get_module_settings('domains');
        $db = get_module_db('domains');
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 $tld_info is not named in camelCase.
Open

    public static function activate_domain($id)
    {
        page_title('Activate Domain');
        $settings = get_module_settings('domains');
        $db = get_module_db('domains');
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 $redempt_date is not named in camelCase.
Open

    public static function activate_domain($id)
    {
        page_title('Activate Domain');
        $settings = get_module_settings('domains');
        $db = get_module_db('domains');
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 $website_active is not named in camelCase.
Open

    public static function activate_domain($id)
    {
        page_title('Activate Domain');
        $settings = get_module_settings('domains');
        $db = get_module_db('domains');
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 $date_only_today is not named in camelCase.
Open

    public static function activate_domain($id)
    {
        page_title('Activate Domain');
        $settings = get_module_settings('domains');
        $db = get_module_db('domains');
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 $au_registrant_info is not named in camelCase.
Open

    public static function activate_domain($id)
    {
        page_title('Activate Domain');
        $settings = get_module_settings('domains');
        $db = get_module_db('domains');
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 $d_remains is not named in camelCase.
Open

    public static function activate_domain($id)
    {
        page_title('Activate Domain');
        $settings = get_module_settings('domains');
        $db = get_module_db('domains');
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 $expiry_full_date is not named in camelCase.
Open

    public static function activate_domain($id)
    {
        page_title('Activate Domain');
        $settings = get_module_settings('domains');
        $db = get_module_db('domains');
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 $au_registrant_info is not named in camelCase.
Open

    public static function activate_domain($id)
    {
        page_title('Activate Domain');
        $settings = get_module_settings('domains');
        $db = get_module_db('domains');
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 $e_date is not named in camelCase.
Open

    public static function activate_domain($id)
    {
        page_title('Activate Domain');
        $settings = get_module_settings('domains');
        $db = get_module_db('domains');
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 $redempt_date is not named in camelCase.
Open

    public static function activate_domain($id)
    {
        page_title('Activate Domain');
        $settings = get_module_settings('domains');
        $db = get_module_db('domains');
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 $dns_array is not named in camelCase.
Open

    public static function activate_domain($id)
    {
        page_title('Activate Domain');
        $settings = get_module_settings('domains');
        $db = get_module_db('domains');
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 $date_today is not named in camelCase.
Open

    public static function activate_domain($id)
    {
        page_title('Activate Domain');
        $settings = get_module_settings('domains');
        $db = get_module_db('domains');
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