xoops_version.php
File xoops_version.php
has 384 lines of code (exceeds 250 allowed). Consider refactoring. Open
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.
Avoid deeply nested control flow statements. Open
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;
Expected 1 space after comma in function call; 2 found Open
Open
$dump_tables = Request::getBool('dump_tables', false);
- Exclude checks
Line exceeds 120 characters; contains 131 characters Open
Open
'type' => 'admin', // $type = 'blocks' -> templates/blocks , 'admin' -> templates/admin , 'module' | '' -> templates
- Exclude checks
Line exceeds 120 characters; contains 131 characters Open
Open
'type' => 'admin', // $type = 'blocks' -> templates/blocks , 'admin' -> templates/admin , 'module' | '' -> templates
- Exclude checks
Line exceeds 120 characters; contains 131 characters Open
Open
'type' => 'admin', // $type = 'blocks' -> templates/blocks , 'admin' -> templates/admin , 'module' | '' -> templates
- Exclude checks
Line exceeds 120 characters; contains 131 characters Open
Open
'type' => 'admin', // $type = 'blocks' -> templates/blocks , 'admin' -> templates/admin , 'module' | '' -> templates
- Exclude checks
Line exceeds 120 characters; contains 131 characters Open
Open
'type' => 'admin', // $type = 'blocks' -> templates/blocks , 'admin' -> templates/admin , 'module' | '' -> templates
- Exclude checks
Line exceeds 120 characters; contains 127 characters Open
Open
'credits' => 'XOOPS Project Team, trabis, irmtfan, mamba, tatane, cesagonchu, zyspec, blackrx, timgno, chefry',
- Exclude checks
Line exceeds 120 characters; contains 174 characters Open
Open
. '&page=help', 1, sprintf(_MI_USERLOG_WEBMASTER_NOPERM, implode(',', $perm['super']['uid']), implode(',', $perm['super']['group'])));
- Exclude checks
Line indented incorrectly; expected at least 12 spaces, found 11 Open
Open
$dump_modules = Request::getBool('dump_modules', false);
- Exclude checks
Line indented incorrectly; expected 12 spaces, found 8 Open
Open
}
- Exclude checks
Line indented incorrectly; expected at least 16 spaces, found 12 Open
Open
$dirname = $modversion['dirname'];
- Exclude checks
Closing brace indented incorrectly; expected 8 spaces, found 4 Open
Open
}
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
}
- Exclude checks
Line indented incorrectly; expected 12 spaces, found 8 Open
Open
if (true === $dump_tables || true === $dump_modules) {
- Exclude checks