XoopsModules25x/userlog

View on GitHub
xoops_version.php

Summary

Maintainability
B
5 hrs
Test Coverage

File xoops_version.php has 384 lines of code (exceeds 250 allowed). Consider refactoring.
Open

<?php
/*
 You may not change or alter any portion of this comment or credits
 of supporting developers from this source code or any supporting source code
 which is considered copyrighted (c) material of the original comment or credit authors.
Severity: Minor
Found in xoops_version.php - About 5 hrs to fix

    Avoid deeply nested control flow statements.
    Open

                    if (is_object($xoopsUser) && !in_array($xoopsUser->getVar('uid'), $perm['super']['uid'])
                        && 0 == count(array_intersect($xoopsUser->getGroups(), $perm['super']['group']))) {
                        $modversion['hasAdmin']    = 0;
                        $modversion['system_menu'] = 0;
                        $modversion['tables']      = null;
    Severity: Major
    Found in xoops_version.php - About 45 mins to fix

      Expected 1 space after comma in function call; 2 found
      Open

                  $dump_tables = Request::getBool('dump_tables',  false);
      Severity: Minor
      Found in xoops_version.php by phpcodesniffer

      Line exceeds 120 characters; contains 131 characters
      Open

              'type'        => 'admin', // $type = 'blocks' -> templates/blocks , 'admin' -> templates/admin , 'module' | '' -> templates
      Severity: Minor
      Found in xoops_version.php by phpcodesniffer

      Line exceeds 120 characters; contains 131 characters
      Open

              'type'        => 'admin', // $type = 'blocks' -> templates/blocks , 'admin' -> templates/admin , 'module' | '' -> templates
      Severity: Minor
      Found in xoops_version.php by phpcodesniffer

      Line exceeds 120 characters; contains 131 characters
      Open

              'type'        => 'admin', // $type = 'blocks' -> templates/blocks , 'admin' -> templates/admin , 'module' | '' -> templates
      Severity: Minor
      Found in xoops_version.php by phpcodesniffer

      Line exceeds 120 characters; contains 131 characters
      Open

              'type'        => 'admin', // $type = 'blocks' -> templates/blocks , 'admin' -> templates/admin , 'module' | '' -> templates
      Severity: Minor
      Found in xoops_version.php by phpcodesniffer

      Line exceeds 120 characters; contains 131 characters
      Open

              'type'        => 'admin', // $type = 'blocks' -> templates/blocks , 'admin' -> templates/admin , 'module' | '' -> templates
      Severity: Minor
      Found in xoops_version.php by phpcodesniffer

      Line exceeds 120 characters; contains 127 characters
      Open

          'credits'             => 'XOOPS Project Team, trabis, irmtfan, mamba, tatane, cesagonchu, zyspec, blackrx, timgno, chefry',
      Severity: Minor
      Found in xoops_version.php by phpcodesniffer

      Line exceeds 120 characters; contains 174 characters
      Open

                                          . '&amp;page=help', 1, sprintf(_MI_USERLOG_WEBMASTER_NOPERM, implode(',', $perm['super']['uid']), implode(',', $perm['super']['group'])));
      Severity: Minor
      Found in xoops_version.php by phpcodesniffer

      Line indented incorrectly; expected at least 12 spaces, found 11
      Open

                 $dump_modules = Request::getBool('dump_modules', false);
      Severity: Minor
      Found in xoops_version.php by phpcodesniffer

      Line indented incorrectly; expected 12 spaces, found 8
      Open

              }
      Severity: Minor
      Found in xoops_version.php by phpcodesniffer

      Line indented incorrectly; expected at least 16 spaces, found 12
      Open

                  $dirname = $modversion['dirname'];
      Severity: Minor
      Found in xoops_version.php by phpcodesniffer

      Closing brace indented incorrectly; expected 8 spaces, found 4
      Open

          }
      Severity: Minor
      Found in xoops_version.php by phpcodesniffer

      Line indented incorrectly; expected 8 spaces, found 4
      Open

          }
      Severity: Minor
      Found in xoops_version.php by phpcodesniffer

      Line indented incorrectly; expected 12 spaces, found 8
      Open

              if (true === $dump_tables || true === $dump_modules) {
      Severity: Minor
      Found in xoops_version.php by phpcodesniffer

      There are no issues that match your filters.

      Category
      Status