XoopsModules25x/apcal

View on GitHub
admin/index.php

Summary

Maintainability
A
0 mins
Test Coverage

Line exceeds 120 characters; contains 189 characters
Open

$infoBoxes[_AM_APCAL_TIMEZONE][]   = sprintf(_AM_APCAL_FMT_SERVER_TZ_ALL, date('Z', 1104537600) / 3600, date('Z', 1120176000) / 3600, date('T'), $xoopsConfig['server_TZ'], $cal->server_TZ);
Severity: Minor
Found in admin/index.php by phpcodesniffer

Line exceeds 120 characters; contains 176 characters
Open

                                             '<span style="color:' . ($nbWaitingEvents > 0 ? '#aa0000' : '#00aa00') . '; font-weight : bold;">' . $nbWaitingEvents . '</span>');
Severity: Minor
Found in admin/index.php by phpcodesniffer

Line exceeds 120 characters; contains 127 characters
Open

$infoBoxes[_MI_APCAL_ADMENU1][]    = sprintf(_AM_APCAL_NBEVENTS, '<span style="font-weight : bold;">' . $nbEvents . '</span>');
Severity: Minor
Found in admin/index.php by phpcodesniffer

Line exceeds 120 characters; contains 124 characters
Open

$rs = $GLOBALS['xoopsDB']->query("SELECT COUNT(id) FROM {$cal->table} WHERE admission<1 AND (rrule_pid=0 OR rrule_pid=id)");
Severity: Minor
Found in admin/index.php by phpcodesniffer

Line exceeds 120 characters; contains 123 characters
Open

$infoBoxes[_MI_APCAL_ADMENU_CAT][] = sprintf(_AM_APCAL_NBCATS, '<span style="font-weight : bold;">' . $nbCats . '</span>');
Severity: Minor
Found in admin/index.php by phpcodesniffer

Line exceeds 120 characters; contains 133 characters
Open

$rs = $GLOBALS['xoopsDB']->query("SELECT COUNT(id) FROM {$cal->table} WHERE end>UNIX_TIMESTAMP() AND (rrule_pid=0 OR rrule_pid=id)");
Severity: Minor
Found in admin/index.php by phpcodesniffer

Line exceeds 120 characters; contains 182 characters
Open

$adminObject->addInfoBoxLine(sprintf(_AM_APCAL_FMT_SERVER_TZ_ALL, date('Z', 1104537600) / 3600, date('Z', 1120176000) / 3600, date('T'), $xoopsConfig['server_TZ'], $cal->server_TZ));
Severity: Minor
Found in admin/index.php by phpcodesniffer

Line exceeds 120 characters; contains 169 characters
Open

                                     '<span style="color:' . ($nbWaitingEvents > 0 ? '#aa0000' : '#00aa00') . '; font-weight : bold;">' . $nbWaitingEvents . '</span>'));
Severity: Minor
Found in admin/index.php by phpcodesniffer

Opening parenthesis of a multi-line function call must be the last content on the line
Open

$adminObject->addInfoBoxLine(sprintf(_AM_APCAL_NBWAITINGEVENTS,
Severity: Minor
Found in admin/index.php by phpcodesniffer

Multi-line function call not indented correctly; expected 0 spaces but found 37
Open

                                     '<span style="color:' . ($nbWaitingEvents > 0 ? '#aa0000' : '#00aa00') . '; font-weight : bold;">' . $nbWaitingEvents . '</span>'));
Severity: Minor
Found in admin/index.php by phpcodesniffer

Closing parenthesis of a multi-line function call must be on a line by itself
Open

                                     '<span style="color:' . ($nbWaitingEvents > 0 ? '#aa0000' : '#00aa00') . '; font-weight : bold;">' . $nbWaitingEvents . '</span>'));
Severity: Minor
Found in admin/index.php by phpcodesniffer

There are no issues that match your filters.

Category
Status