XoopsModules25x/userlog

View on GitHub
admin/index.php

Summary

Maintainability
A
0 mins
Test Coverage

Line exceeds 120 characters; contains 136 characters
Open

        // use sprintf in moduleadmin: sprintf($text, "<span style='color : " . $color . "; font-weight : bold;'>" . $value . "</span>")
Severity: Minor
Found in admin/index.php by phpcodesniffer

Line exceeds 120 characters; contains 199 characters
Open

            sprintf(_AM_USERLOG_STATS_TYPE_PERIOD, '%1$s', $types[$type], constant('_AM_USERLOG_' . strtoupper($periods[$period]))) . ' ' . _AM_USERLOG_STATS_TIME_UPDATE . ' ' . $arr2['time_update'],
Severity: Minor
Found in admin/index.php by phpcodesniffer

Line exceeds 120 characters; contains 140 characters
Open

if ((isset($stats['fileall'][0]) && 0 == $stats['fileall'][0]['value']) || (0 == $stats['file' . $userlog->getWorkingFile()][0]['value'])) {
Severity: Minor
Found in admin/index.php by phpcodesniffer

Line exceeds 120 characters; contains 236 characters
Open

$adminObject->addConfigBoxLine("<span class='bold " . ($userlog->getConfig('status') ? 'green' : 'red') . "'>" . _MI_USERLOG_STATUS . ' ' . ($userlog->getConfig('status') ? _MI_USERLOG_ACTIVE : _MI_USERLOG_IDLE) . '</span>', 'default');
Severity: Minor
Found in admin/index.php by phpcodesniffer

Line exceeds 120 characters; contains 198 characters
Open

        $adminObject->addConfigBoxLine("<span class='bold red'>" . sprintf(_AM_USERLOG_CONFIG_CREATE_FOLDER, $userlog->getConfig('logfilepath') . '/' . USERLOG_DIRNAME, 755) . '</span>', 'default');
Severity: Minor
Found in admin/index.php by phpcodesniffer

Line exceeds 120 characters; contains 172 characters
Open

        $adminObject->addConfigBoxLine("<span class='bold red'>" . sprintf(_AM_USERLOG_CONFIG_CHMOD_ERROR, $userlog->getConfig('logfilepath'), 755) . '</span>', 'default');
Severity: Minor
Found in admin/index.php by phpcodesniffer

Line exceeds 120 characters; contains 122 characters
Open

    $adminObject->addInfoBoxLine('<a href="logs.php?options[referer]=google.com">' . _AM_USERLOG_SUMMARY_GOOGLE . '</a>');
Severity: Minor
Found in admin/index.php by phpcodesniffer

Line exceeds 120 characters; contains 145 characters
Open

    $adminObject->addInfoBoxLine('<a href="logs.php?options[referer]=del&options[request_method]=POST">' . _AM_USERLOG_SUMMARY_DELETED . '</a>');
Severity: Minor
Found in admin/index.php by phpcodesniffer

Multi-line function call not indented correctly; expected 16 spaces but found 12
Open

            $arr2['value']
Severity: Minor
Found in admin/index.php by phpcodesniffer

Multi-line function call not indented correctly; expected 16 spaces but found 12
Open

            sprintf(_AM_USERLOG_STATS_TYPE_PERIOD, '%1$s', $types[$type], constant('_AM_USERLOG_' . strtoupper($periods[$period]))) . ' ' . _AM_USERLOG_STATS_TIME_UPDATE . ' ' . $arr2['time_update'],
Severity: Minor
Found in admin/index.php by phpcodesniffer

There are no issues that match your filters.

Category
Status