Showing 540 of 47,256 total issues
File protector.php
has 730 lines of code (exceeds 250 allowed). Consider refactoring. Open
<?php
class Protector {
var $mydirname;
var $_conn = null;
Function protector_postcommon
has a Cognitive Complexity of 73 (exceeds 5 allowed). Consider refactoring. Open
function protector_postcommon() {
global $xoopsModule;
// configs writable check
if (@$_SERVER['REQUEST_URI'] == '/admin.php' && !is_writable(dirname(__DIR__) . '/configs')) {
- Read upRead up
Cognitive Complexity
Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.
A method's cognitive complexity is based on a few simple rules:
- Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
- Code is considered more complex for each "break in the linear flow of the code"
- Code is considered more complex when "flow breaking structures are nested"
Further reading
Function queryFromFile
has a Cognitive Complexity of 72 (exceeds 5 allowed). Consider refactoring. Open
public function queryFromFile($sql_file_path) {
$tables = array();
if (!file_exists($sql_file_path)) {
return false;
- Read upRead up
Cognitive Complexity
Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.
A method's cognitive complexity is based on a few simple rules:
- Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
- Code is considered more complex for each "break in the linear flow of the code"
- Code is considered more complex when "flow breaking structures are nested"
Further reading
File preferences.php
has 632 lines of code (exceeds 250 allowed). Consider refactoring. Open
<?php
// $Id: preferences.php 12227 2013-07-19 08:07:21Z fiammy $
// %%%%%% Admin Module Name AdminGroup %%%%%
// dont change
if (!defined('_AM_DBUPDATED')) {
File preferences.php
has 629 lines of code (exceeds 250 allowed). Consider refactoring. Open
<?php
// 08/2008 Updated and adapted for ImpressCMS by evoc - webmaster of www.impresscms.it
// Published by ImpressCMS Italian Official Support Site - www.impresscms.it
// Updated by evoc - webmaster of ImpressCMS
// Updated by Ianez - Xoops Italia Staff
File preferences.php
has 623 lines of code (exceeds 250 allowed). Consider refactoring. Open
<?php
// $Id: blauer-fisch $
//%%%%%% Admin Module Name AdminGroup %%%%%
// dont change
if (!defined('_AM_DBUPDATED')) {define("_AM_DBUPDATED","数据库更新成功!");}
File preferences.php
has 593 lines of code (exceeds 250 allowed). Consider refactoring. Open
<?php
// $Id: preferences.php 9546 2009-11-14 12:16:02Z Phoenyx $
//%%%%%% Admin Module Name AdminGroup %%%%%
// dont change
if(!defined('_AM_DBUPDATED')){define("_AM_DBUPDATED","Database succesvol bijgewerkt!");}
File update-112-to-122.php
has 580 lines of code (exceeds 250 allowed). Consider refactoring. Open
<?php
/**
* DataBase Update Functions - 1.1.2 to 1.2.2 release
*
* @copyright The ImpressCMS Project http://www.impresscms.org/
Function xoops_module_update_system
has a Cognitive Complexity of 60 (exceeds 5 allowed). Consider refactoring. Open
function xoops_module_update_system(&$module, $oldversion = null, $dbVersion = null) {
global $xoTheme;
$from_112 = $abortUpdate = false;
- Read upRead up
Cognitive Complexity
Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.
A method's cognitive complexity is based on a few simple rules:
- Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
- Code is considered more complex for each "break in the linear flow of the code"
- Code is considered more complex when "flow breaking structures are nested"
Further reading
File main.php
has 559 lines of code (exceeds 250 allowed). Consider refactoring. Open
<?php
// $Id: main.php 12455 2014-06-24 09:30:49Z sato-san $
// ------------------------------------------------------------------------ //
// XOOPS - PHP Content Management System //
// Copyright (c) 2000 XOOPS.org //
Method icms_cp_header
has 234 lines of code (exceeds 25 allowed). Consider refactoring. Open
function icms_cp_header() {
global $icmsConfig, $icmsConfigPlugins, $icmsConfigPersona, $xoopsModule, $xoopsTpl, $xoopsOption, $icmsTheme, $xoTheme, $icmsConfigMultilang, $icmsAdminTpl;
icms::$logger->stopTime('Module init');
icms::$logger->startTime('ImpressCMS CP Output Init');
File system_blocks.php
has 553 lines of code (exceeds 250 allowed). Consider refactoring. Open
<?php
// $Id: system_blocks.php 12313 2013-09-15 21:14:35Z skenow $
// ------------------------------------------------------------------------ //
// XOOPS - PHP Content Management System //
Function protector_oninstall_base
has a Cognitive Complexity of 58 (exceeds 5 allowed). Consider refactoring. Open
function protector_oninstall_base($module, $mydirname) {
// transations on module install
global $ret; // TODO :-D
if (!is_array($ret)) $ret = array ();
- Read upRead up
Cognitive Complexity
Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.
A method's cognitive complexity is based on a few simple rules:
- Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
- Code is considered more complex for each "break in the linear flow of the code"
- Code is considered more complex when "flow breaking structures are nested"
Further reading
Function setDocument
has 215 lines of code (exceeds 25 allowed). Consider refactoring. Open
setDocument = Sizzle.setDocument = function( node ) {
var hasCompare,
doc = node ? node.ownerDocument || node : preferredDoc,
parent = doc.defaultView;
Method xoops_module_uninstall
has 208 lines of code (exceeds 25 allowed). Consider refactoring. Open
function xoops_module_uninstall($dirname) {
global $icmsConfig, $icmsAdminTpl;
$reservedTables = array('avatar',
'avatar_users_link',
File xoops.js
has 512 lines of code (exceeds 250 allowed). Consider refactoring. Open
if ( typeof window.$ != 'function' ) {
function $() {
var elements = new Array();
for (var i = 0; i < arguments.length; i++) {
Function Enumerable
has 206 lines of code (exceeds 25 allowed). Consider refactoring. Open
var Enumerable = (function() {
function each(iterator, context) {
try {
this._each(iterator, context);
} catch (e) {
Function formatTimestamp
has a Cognitive Complexity of 52 (exceeds 5 allowed). Consider refactoring. Open
function formatTimestamp($time, $format = "l", $timeoffset = null)
{
global $icmsConfig;
$format_copy = $format;
- Read upRead up
Cognitive Complexity
Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.
A method's cognitive complexity is based on a few simple rules:
- Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
- Code is considered more complex for each "break in the linear flow of the code"
- Code is considered more complex when "flow breaking structures are nested"
Further reading
File makedata.php
has 503 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.
File findusers.php
has 498 lines of code (exceeds 250 allowed). Consider refactoring. Open
<?php
/**
* Finds users
*
* @copyright The XOOPS project http://www.xoops.org/