XoopsModules25x/xfguestbook

View on GitHub

Showing 1,027 of 1,027 total issues

Expected 1 blank line at end of file; 2 found
Open

];
Severity: Minor
Found in config/config.php by phpcodesniffer

Method name "Utility::clear_tmp_files" is not in camel caps format
Open

    public static function clear_tmp_files($dir_path, $prefix = 'tmp_')
Severity: Minor
Found in class/Utility.php by phpcodesniffer

Method name "Utility::get_badips" is not in camel caps format
Open

    public static function get_badips($all = null)
Severity: Minor
Found in class/Utility.php by phpcodesniffer

Expected 1 blank line at end of file; 2 found
Open

}
Severity: Minor
Found in header.php by phpcodesniffer

Expected 1 blank line at end of file; 2 found
Open

];
Severity: Minor
Found in config/icons.php by phpcodesniffer

Method name "Utility::get_user_data" is not in camel caps format
Open

    public static function get_user_data($user_id)
Severity: Minor
Found in class/Utility.php by phpcodesniffer

The DEFAULT body must start on the line following the statement
Open

    default:
Severity: Minor
Found in contact.php by phpcodesniffer

Expected 1 blank line at end of file; 2 found
Open

require __DIR__ . '/admin_footer.php';
Severity: Minor
Found in admin/index.php by phpcodesniffer

There must be one USE keyword per declaration
Open

use XoopsModules\Xfguestbook\{
Severity: Minor
Found in testdata/index.php by phpcodesniffer

Scope keyword "public" must be followed by a single space
Open

    public  $dirname;
Severity: Minor
Found in class/Common/Breadcrumb.php by phpcodesniffer

The CASE body must start on the line following the statement
Open

    case 'preview':
Severity: Minor
Found in contact.php by phpcodesniffer

Missing class import via use statement (line '137', column '33').
Open

    $buttonTray->addElement(new \XoopsFormButton('', 'post', _SUBMIT, 'submit'));
Severity: Minor
Found in admin/country_manager.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 '130', column '31').
Open

    $flagform->addElement(new \XoopsFormLabel('', $flag_desc));
Severity: Minor
Found in admin/country_manager.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 '126', column '25').
Open

        $img_flag = new \XoopsFormLabel('', '<br>' . $flag_img . '<br>');
Severity: Minor
Found in admin/country_manager.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 '196', column '23').
Open

    $buttonTray = new \XoopsFormElementTray('', '');
Severity: Minor
Found in admin/country_manager.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 '179', column '29').
Open

        $sform        = new \XoopsThemeForm(AM_XFGUESTBOOK_MODCOUNTRY, 'op', xoops_getenv('SCRIPT_NAME'), 'post', true);
Severity: Minor
Found in admin/country_manager.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 '92', column '33').
Open

    $buttonTray->addElement(new \XoopsFormHidden('op', 'badIpSave'));
Severity: Minor
Found in admin/ip_manager.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 '136', column '23').
Open

    $buttonTray = new \XoopsFormElementTray('', '');
Severity: Minor
Found in admin/country_manager.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 '81', column '25').
Open

        $sform    = new \XoopsThemeForm(AM_XFGUESTBOOK_ADD_BADIP, 'op', xoops_getenv('SCRIPT_NAME'), 'post', true);
Severity: Minor
Found in admin/ip_manager.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 '184', column '29').
Open

        $sform        = new \XoopsThemeForm(AM_XFGUESTBOOK_ADDCOUNTRY, 'op', xoops_getenv('SCRIPT_NAME'), 'post', true);
Severity: Minor
Found in admin/country_manager.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

Severity
Category
Status
Source
Language