Showing 2,378 of 15,774 total issues
Function RenderActions
has a Cognitive Complexity of 34 (exceeds 5 allowed). Consider refactoring. Open
public static function RenderActions(QControl $objControl, $strEventName, $objActions) {
$strToReturn = '';
$strJqUiProperty = null;
if ($objControl->ActionsMustTerminate) {
- 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 __construct
has a Cognitive Complexity of 34 (exceeds 5 allowed). Consider refactoring. Open
public function __construct($mixFieldData, $objDb = null) {
$objDatabaseRow = null;
$objDatabaseRow = $mixFieldData ; // BG New
- 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 __construct
has a Cognitive Complexity of 34 (exceeds 5 allowed). Consider refactoring. Open
public function __construct($mixFieldData, $objDb = null) {
$objDatabaseRow = null;
try {
$objDatabaseRow = QType::Cast($mixFieldData, 'QSqlServer2005DatabaseRow');
} catch (QInvalidCastException $objExc) {
- 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
Method ParsePoData
has 126 lines of code (exceeds 25 allowed). Consider refactoring. Open
protected function ParsePoData($strPoData) {
$strPoData = str_replace("\r", '', trim($strPoData));
$strPoLines = explode("\n", $strPoData);
$strMatches = array();
Consider simplifying this complex logical expression. Open
if ( event.pageX == null && original.clientX != null ) {
eventDoc = event.target.ownerDocument || document;
doc = eventDoc.documentElement;
body = eventDoc.body;
QDateTime
has 38 functions (exceeds 20 allowed). Consider refactoring. Open
class QDateTime extends DateTime implements JsonSerializable, Serializable {
/** Used to specify the time right now (used when creating new instances of this class) */
const Now = 'now';
/** Date and time in ISO format */
const FormatIso = 'YYYY-MM-DD hhhh:mm:ss';
QDatabaseBase
has 38 functions (exceeds 20 allowed). Consider refactoring. Open
abstract class QDatabaseBase extends QBaseClass {
// Must be updated for all Adapters
/** Adapter name */
const Adapter = 'Generic Database Adapter (Abstract)';
Method __set
has 125 lines of code (exceeds 25 allowed). Consider refactoring. Open
public function __set($strName, $mixValue) {
$this->blnModified = true;
switch ($strName) {
// APPEARANCE
Function __construct
has a Cognitive Complexity of 33 (exceeds 5 allowed). Consider refactoring. Open
public function __construct($mixFieldData, $objDb = null) {
$this->strName = $mixFieldData->GetColumn('column_name');
$this->strOriginalName = $this->strName;
$this->strTable = $mixFieldData->GetColumn('table_name');
$this->strOriginalTable = $this->strTable;
- 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 jquery-migrate.js
has 371 lines of code (exceeds 250 allowed). Consider refactoring. Open
/*!
* jQuery Migrate - v1.1.1 - 2013-02-16
* https://github.com/jquery/jquery-migrate
* Copyright 2005, 2013 jQuery Foundation, Inc. and other contributors; Licensed MIT
*/
Method __construct
has 120 lines of code (exceeds 25 allowed). Consider refactoring. Open
public function __construct($mixFieldData, $objDb = null) {
$this->strName = $mixFieldData->GetColumn('column_name');
$this->strOriginalName = $this->strName;
$this->strTable = $mixFieldData->GetColumn('table_name');
$this->strOriginalTable = $this->strTable;
Method __set
has 119 lines of code (exceeds 25 allowed). Consider refactoring. Open
public function __set($strName, $mixValue) {
switch ($strName) {
// APPEARANCE
case "Noun":
try {
Method __construct
has 119 lines of code (exceeds 25 allowed). Consider refactoring. Open
public function __construct($mixFieldData, $objDb = null) {
$objDatabaseRow = null;
try {
$objDatabaseRow = QType::Cast($mixFieldData, 'QSqlServer2005DatabaseRow');
} catch (QInvalidCastException $objExc) {
Function processImmediateAjaxResponse
has a Cognitive Complexity of 32 (exceeds 5 allowed). Consider refactoring. Open
processImmediateAjaxResponse: function(json, qFormParams) {
if (json.controls) $j.each(json.controls, function() {
var strControlId = '#' + this.id,
control = $j(strControlId),
wrapper = $j(strControlId + '_ctl');
- 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 Save
has a Cognitive Complexity of 32 (exceeds 5 allowed). Consider refactoring. Open
public static function Save($strFormState, $blnBackButtonFlag) {
// Compress (if available)
if (function_exists('gzcompress'))
$strFormState = gzcompress($strFormState, 9);
- 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
Method RemoveAccents
has 117 lines of code (exceeds 25 allowed). Consider refactoring. Open
public static function RemoveAccents($strString) {
if (!preg_match('/[\x80-\xff]/', $strString))
return $strString;
if (self::IsUtf8($strString)) {
Function _create
has 115 lines of code (exceeds 25 allowed). Consider refactoring. Open
_create: function() {
this.element.closest( "form" )
.unbind( "reset" + this.eventNamespace )
.bind( "reset" + this.eventNamespace, formResetHandler );
Method __construct
has 115 lines of code (exceeds 25 allowed). Consider refactoring. Open
public function __construct($objSettingsXml) {
parent::__construct($objSettingsXml);
// Make settings file accessible to templates
//$this->objSettingsXml = $objSettingsXml;
Function RenderOutput
has a Cognitive Complexity of 31 (exceeds 5 allowed). Consider refactoring. Open
protected function RenderOutput($strOutput, $blnDisplayOutput, $blnForceAsBlockElement = false) {
if ($blnForceAsBlockElement) {
$this->blnIsBlockElement = true; // must be remembered for ajax drawing
}
- 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 __set
has a Cognitive Complexity of 31 (exceeds 5 allowed). Consider refactoring. Open
public function __set($strName, $mixValue) {
switch ($strName) {
// APPEARANCE
case "TextAlign":
try {
- 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"