XoopsModules25x/apcal

View on GitHub
admin/admin.php

Summary

Maintainability
A
1 hr
Test Coverage

Avoid deeply nested control flow statements.
Open

                if ($counter > 4) {
                    $counter = 0;
                    echo '</tr>';
                    echo '<tr>';
                }
Severity: Major
Found in admin/admin.php - About 45 mins to fix

    Avoid deeply nested control flow statements.
    Open

                    if (false !== $all_ok || in_array($modversion['category'], $ok_syscats)) {
                        echo "<td class='$class' align='center' valign='bottom' width='19%'>";
                        echo "<a href='" . XOOPS_URL . '/modules/system/admin.php?fct=' . $file . "'><b>" . trim($modversion['name']) . "</b></a>\n";
                        echo '</td>';
                        ++$counter;
    Severity: Major
    Found in admin/admin.php - About 45 mins to fix

      Line exceeds 120 characters; contains 125 characters
      Open

                          || false !== $syspermHandler->checkRight('system_admin', $category, $groups, $xoopsModule->getVar('mid'))
      Severity: Minor
      Found in admin/admin.php by phpcodesniffer

      Line exceeds 120 characters; contains 125 characters
      Open

                      include XOOPS_ROOT_PATH . '/modules/system/language/' . $xoopsConfig['language'] . '/admin/' . $fct . '.php';
      Severity: Minor
      Found in admin/admin.php by phpcodesniffer

      Line exceeds 120 characters; contains 145 characters
      Open

                          echo "<a href='" . XOOPS_URL . '/modules/system/admin.php?fct=' . $file . "'><b>" . trim($modversion['name']) . "</b></a>\n";
      Severity: Minor
      Found in admin/admin.php by phpcodesniffer

      Line exceeds 120 characters; contains 132 characters
      Open

                  if (file_exists(XOOPS_ROOT_PATH . '/modules/system/language/' . $xoopsConfig['language'] . '/admin/' . $fct . '.php')) {
      Severity: Minor
      Found in admin/admin.php by phpcodesniffer

      There are no issues that match your filters.

      Category
      Status