Showing 2,378 of 15,774 total issues
Method Init
has 219 lines of code (exceeds 25 allowed). Consider refactoring. Open
public static function Init() {
$intIndex = -1;
$intIndex++;
Examples::$Categories[$intIndex] = array();
Function SqlVariable
has a Cognitive Complexity of 56 (exceeds 5 allowed). Consider refactoring. Open
public function SqlVariable($mixData, $blnIncludeEquality = false, $blnReverseEquality = false) {
// Are we SqlVariabling a BOOLEAN value?
if (is_bool($mixData)) {
// Yes
if ($blnIncludeEquality) {
- 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 SqlVariable
has a Cognitive Complexity of 56 (exceeds 5 allowed). Consider refactoring. Open
public function SqlVariable($mixData, $blnIncludeEquality = false, $blnReverseEquality = false) {
// Are we SqlVariabling a BOOLEAN value?
if (is_bool($mixData)) {
// Yes
if ($blnIncludeEquality) {
- 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 __set
has 218 lines of code (exceeds 25 allowed). Consider refactoring. Open
public function __set($strName, $mixValue) {
$this->blnModified = true;
switch ($strName) {
// APPEARANCE
Function setDocument
has 216 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;
QFormBase
has 59 functions (exceeds 20 allowed). Consider refactoring. Open
abstract class QFormBase extends QBaseClass {
///////////////////////////
// Static Members
///////////////////////////
/** @var bool True when css scripts get rendered on page. Lets user call RenderStyles in header. */
Method __set
has 211 lines of code (exceeds 25 allowed). Consider refactoring. Open
public function __set($strName, $mixValue) {
switch ($strName) {
case 'AddClasses':
try {
$this->blnAddClasses = QType::Cast($mixValue, QType::Boolean);
Function __set
has a Cognitive Complexity of 54 (exceeds 5 allowed). Consider refactoring. Open
public function __set($strName, $mixValue) {
// Setters that do not cause a complete redraw
switch ($strName) {
case "Text":
case "Value":
- 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 __set
has 208 lines of code (exceeds 25 allowed). Consider refactoring. Open
public function __set($strName, $mixValue) {
// Setters that do not cause a complete redraw
switch ($strName) {
case "Text":
case "Value":
File QImageControlBase.class.php
has 512 lines of code (exceeds 250 allowed). Consider refactoring. Open
<?php
/**
* This file contains the QImageControlBase class.
*
* @package Controls
Function _create
has 203 lines of code (exceeds 25 allowed). Consider refactoring. Open
_create: function() {
// Some browsers only repeat keydown events, not keypress events,
// so we use the suppressKeyPress flag to determine if we've already
// handled the keydown event. #7269
// Unfortunately the code for & in keypress is the same as the up arrow,
File QHtmlTableBase.class.php
has 497 lines of code (exceeds 250 allowed). Consider refactoring. Open
<?php
/**
* <p>This control is used to display a simple html table.
*
* <p>The control itself will display things based off of an array of objects that gets set as the "Data Source".
File QPostgreSqlPdoDatabase.class.php
has 497 lines of code (exceeds 250 allowed). Consider refactoring. Open
<?php
/**
* EXPERIMENTAL PostgreSQL database driver, based on PDO.
* @author Marcos Sanchez [marcosdsanchez at thinkclear dot ar]
* @package DatabaseAdapters
File QOracleDatabase.class.php
has 496 lines of code (exceeds 250 allowed). Consider refactoring. Open
<?php
/**
* EXPERIMENTAL Oracle database adapter.
*
* @package DatabaseAdapters
QQ
has 55 functions (exceeds 20 allowed). Consider refactoring. Open
class QQ {
/////////////////////////
// QQCondition Factories
/////////////////////////
Method __set
has 194 lines of code (exceeds 25 allowed). Consider refactoring. Open
public function __set($strName, $mixValue) {
switch ($strName) {
case 'AppendTo':
$this->mixAppendTo = $mixValue;
$this->AddAttributeScript($this->getJqSetupFunction(), 'option', 'appendTo', $mixValue);
Function MakeJqOptions
has a Cognitive Complexity of 50 (exceeds 5 allowed). Consider refactoring. Open
protected function MakeJqOptions() {
$jqOptions = null;
if (!is_null($val = $this->AltField)) {$jqOptions['altField'] = $val;}
if (!is_null($val = $this->AltFormat)) {$jqOptions['altFormat'] = $val;}
if (!is_null($val = $this->AppendText)) {$jqOptions['appendText'] = $val;}
- 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 MakeJqOptions
has a Cognitive Complexity of 50 (exceeds 5 allowed). Consider refactoring. Open
protected function MakeJqOptions() {
$jqOptions = null;
if (!is_null($val = $this->AltField)) {$jqOptions['altField'] = $val;}
if (!is_null($val = $this->AltFormat)) {$jqOptions['altFormat'] = $val;}
if (!is_null($val = $this->AppendText)) {$jqOptions['appendText'] = $val;}
- 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 examples.inc.php
has 487 lines of code (exceeds 250 allowed). Consider refactoring. Open
<?php
class Examples {
public static $Categories = array();
public static $AdditionalCode = array();
public static $PluginExamples = array();
Function RenderImage
has a Cognitive Complexity of 49 (exceeds 5 allowed). Consider refactoring. Open
protected function RenderImage($strPath = null) {
$strWidth = $this->Width;
// Make Sure Font File Exists
if (file_exists($this->strFontNames))
- 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"