Showing 4,334 of 7,873 total issues
File setting.inc.php
has 613 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
<?php
/**
* Setting English lexicon topic
*
* @language en
File setting.inc.php
has 613 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
<?php
/**
* Setting English lexicon topic
*
* @language en
File setting.inc.php
has 613 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
<?php
/**
* Setting English lexicon topic
*
* @language en
File setting.inc.php
has 613 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
<?php
/**
* Setting English lexicon topic
*
* @language en
File setting.inc.php
has 613 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
<?php
/**
* Setting English lexicon topic
*
* @language en
File setting.inc.php
has 613 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
<?php
/**
* Setting English lexicon topic
*
* @language en
File setting.inc.php
has 613 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
<?php
/**
* Setting English lexicon topic
*
* @language en
File setting.inc.php
has 613 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
<?php
/**
* Setting English lexicon topic
*
* @language en
File setting.inc.php
has 613 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
<?php
/**
* Setting English lexicon topic
*
* @language en
File setting.inc.php
has 613 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
<?php
/**
* Setting English lexicon topic
*
* @language en
File setting.inc.php
has 613 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
<?php
/**
* Setting English lexicon topic
*
* @language en
File setting.inc.php
has 613 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
<?php
/**
* Setting English lexicon topic
*
* @language en
File setting.inc.php
has 613 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
<?php
/**
* Setting English lexicon topic
*
* @language en
File setting.inc.php
has 613 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
<?php
/**
* Setting English lexicon topic
*
* @language en
File setting.inc.php
has 613 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
<?php
/**
* Setting English lexicon topic
*
* @language en
Method parseSchema
has 265 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function parseSchema($schemaFile, $outputDir= '', $compile= false) {
$this->schemaFile= $schemaFile;
$this->classTemplate= $this->getClassTemplate();
if (!is_file($schemaFile)) {
$this->manager->xpdo->log(xPDO::LOG_LEVEL_ERROR, "Could not find specified XML schema file {$schemaFile}");
Function JSON
has a Cognitive Complexity of 67 (exceeds 5 allowed). Consider refactoring. Open
Open
Ext.util.JSON = new (function(){
var useHasOwn = !!{}.hasOwnProperty,
isNative = Ext.USE_NATIVE_JSON && JSON && JSON.toString() == '[object JSON]';
// crashes Safari in some instances
- 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 compile
has a Cognitive Complexity of 67 (exceeds 5 allowed). Consider refactoring. Open
Open
public function compile($args, Smarty_Internal_TemplateCompilerBase $compiler)
{
$compiler->loopNesting++;
// init
$this->isNamed = 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
Function Ajax
has 264 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
Ext.lib.Ajax = function() {
var activeX = ['MSXML2.XMLHTTP.3.0',
'MSXML2.XMLHTTP',
'Microsoft.XMLHTTP'];
File modx.grid.settings.js
has 606 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
MODx.grid.SettingsGrid = function(config) {
config = config || {};
this.exp = new Ext.grid.RowExpander({
tpl : new Ext.XTemplate(
'<p class="desc">{[MODx.util.safeHtml(values.description_trans)]}</p>'