qcubed/framework

View on GitHub
includes/base_controls/QHtmlTableColumn.class.php

Summary

Maintainability
F
1 wk
Test Coverage

File QHtmlTableColumn.class.php has 941 lines of code (exceeds 250 allowed). Consider refactoring.
Open

<?php

    /**
     * Represents a column for a QHtmlTable. Different subclasses (see below) allow accessing and fetching the data
     * for each cells in a variety of ways
Severity: Major
Found in includes/base_controls/QHtmlTableColumn.class.php - About 2 days to fix

    Function GetObjectValue has a Cognitive Complexity of 35 (exceeds 5 allowed). Consider refactoring.
    Open

            protected static function GetObjectValue ($mixSpec, $item) {
                if (is_array($mixSpec)) {
                    if (is_object($mixSpec[0]) && is_callable($mixSpec)) {
                        // If its a callable array, then call it
                        return call_user_func($mixSpec, $item);
    Severity: Minor
    Found in includes/base_controls/QHtmlTableColumn.class.php - About 5 hrs to fix

    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 25 (exceeds 5 allowed). Consider refactoring.
    Open

            public function __set($strName, $mixValue) {
                switch ($strName) {
                    case "AsButton":
                        try {
                            $this->blnAsButton = QType::Cast($mixValue, QType::Boolean);
    Severity: Minor
    Found in includes/base_controls/QHtmlTableColumn.class.php - About 3 hrs to fix

    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 88 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

            public function __set($strName, $mixValue) {
                switch ($strName) {
                    case "Name":
                        try {
                            $this->strName = QType::Cast($mixValue, QType::String);
    Severity: Major
    Found in includes/base_controls/QHtmlTableColumn.class.php - About 3 hrs to fix

      The class QAbstractHtmlTableColumn has 11 public methods. Consider refactoring QAbstractHtmlTableColumn to keep number of public methods under 10.
      Open

          abstract class QAbstractHtmlTableColumn extends QBaseClass {
              /** @var string */
              protected $strName;
              /** @var string */
              protected $strCssClass = null;

      TooManyPublicMethods

      Since: 0.1

      A class with too many public methods is probably a good suspect for refactoring, in order to reduce its complexity and find a way to have more fine grained objects.

      By default it ignores methods starting with 'get' or 'set'.

      Example

      Source https://phpmd.org/rules/codesize.html#toomanypublicmethods

      The class QAbstractHtmlTableColumn has an overall complexity of 77 which is very high. The configured complexity threshold is 50.
      Open

          abstract class QAbstractHtmlTableColumn extends QBaseClass {
              /** @var string */
              protected $strName;
              /** @var string */
              protected $strCssClass = null;

      The class QHtmlTableLinkColumn has an overall complexity of 61 which is very high. The configured complexity threshold is 50.
      Open

          class QHtmlTableLinkColumn extends QAbstractHtmlTableDataColumn {
              /** @var bool  */
              protected $blnHtmlEntities = false;    // we are rendering a link so turn off entities
      
              /** @var  string|array */

      Function __set has a Cognitive Complexity of 23 (exceeds 5 allowed). Consider refactoring.
      Open

              public function __set($strName, $mixValue) {
                  switch ($strName) {
                      case "Name":
                          try {
                              $this->strName = QType::Cast($mixValue, QType::String);
      Severity: Minor
      Found in includes/base_controls/QHtmlTableColumn.class.php - About 3 hrs to fix

      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 FetchCellValue has a Cognitive Complexity of 23 (exceeds 5 allowed). Consider refactoring.
      Open

              public function FetchCellValue($item) {
                  $strText = parent::FetchCellValue($item);    // allow post processing of cell label
      
                  $getVars = null;
                  if ($this->getVars) {
      Severity: Minor
      Found in includes/base_controls/QHtmlTableColumn.class.php - About 3 hrs to fix

      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 72 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

              public function __set($strName, $mixValue) {
                  switch ($strName) {
                      case "AsButton":
                          try {
                              $this->blnAsButton = QType::Cast($mixValue, QType::Boolean);
      Severity: Major
      Found in includes/base_controls/QHtmlTableColumn.class.php - About 2 hrs to fix

        Function __construct has a Cognitive Complexity of 16 (exceeds 5 allowed). Consider refactoring.
        Open

                public function __construct($strName, $objNodes) {
                    if ($objNodes instanceof QQNode) {
                        $objNodes = [$objNodes];
                    }
                    elseif (empty($objNodes) || !is_array($objNodes) || !$objNodes[0] instanceof QQNode) {
        Severity: Minor
        Found in includes/base_controls/QHtmlTableColumn.class.php - About 2 hrs to fix

        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 GetObjectValue has 51 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

                protected static function GetObjectValue ($mixSpec, $item) {
                    if (is_array($mixSpec)) {
                        if (is_object($mixSpec[0]) && is_callable($mixSpec)) {
                            // If its a callable array, then call it
                            return call_user_func($mixSpec, $item);
        Severity: Major
        Found in includes/base_controls/QHtmlTableColumn.class.php - About 2 hrs to fix

          Method __set has 45 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

                  public function __set($strName, $mixValue) {
                      switch ($strName) {
                          case "OrderByClause":
                              try {
                                  $this->objOrderByClause = $mixValue;
          Severity: Minor
          Found in includes/base_controls/QHtmlTableColumn.class.php - About 1 hr to fix

            Method __get has 42 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

                    public function __get($strName) {
                        switch ($strName) {
                            case 'Name':
                                return $this->strName;
                            case 'CssClass':
            Severity: Minor
            Found in includes/base_controls/QHtmlTableColumn.class.php - About 1 hr to fix

              Method FetchCellValue has 40 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                      public function FetchCellValue($item) {
                          $strText = parent::FetchCellValue($item);    // allow post processing of cell label
              
                          $getVars = null;
                          if ($this->getVars) {
              Severity: Minor
              Found in includes/base_controls/QHtmlTableColumn.class.php - About 1 hr to fix

                Method __construct has 36 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                        public function __construct($strName, $objNodes) {
                            if ($objNodes instanceof QQNode) {
                                $objNodes = [$objNodes];
                            }
                            elseif (empty($objNodes) || !is_array($objNodes) || !$objNodes[0] instanceof QQNode) {
                Severity: Minor
                Found in includes/base_controls/QHtmlTableColumn.class.php - About 1 hr to fix

                  Function __set has a Cognitive Complexity of 12 (exceeds 5 allowed). Consider refactoring.
                  Open

                          public function __set($strName, $mixValue) {
                              switch ($strName) {
                                  case "OrderByClause":
                                      try {
                                          $this->objOrderByClause = $mixValue;
                  Severity: Minor
                  Found in includes/base_controls/QHtmlTableColumn.class.php - About 1 hr to fix

                  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 27 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                          public function __set($strName, $mixValue) {
                              switch ($strName) {
                                  case "Property":
                                      try {
                                          $this->strProperty = QType::Cast($mixValue, QType::String);
                  Severity: Minor
                  Found in includes/base_controls/QHtmlTableColumn.class.php - About 1 hr to fix

                    Function SplitSpec has a Cognitive Complexity of 8 (exceeds 5 allowed). Consider refactoring.
                    Open

                            protected static function SplitSpec ($mixSpec)
                            {
                                if (is_array($mixSpec)) {
                                    return $mixSpec; // already split
                                } elseif (is_string($mixSpec)) {
                    Severity: Minor
                    Found in includes/base_controls/QHtmlTableColumn.class.php - About 45 mins to fix

                    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 GetCellParams has a Cognitive Complexity of 8 (exceeds 5 allowed). Consider refactoring.
                    Open

                            protected function GetCellParams ($item) {
                                $aParams = array();
                    
                                if ($strClass = $this->GetCellClass ($item)) {
                                    $aParams['class'] = $strClass;
                    Severity: Minor
                    Found in includes/base_controls/QHtmlTableColumn.class.php - About 45 mins to fix

                    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 __construct has 6 arguments (exceeds 4 allowed). Consider refactoring.
                    Open

                            public function __construct($strName, $mixText, $mixDestination = null, $getVars = null, $tagAttributes = null, $blnAsButton = false) {
                    Severity: Minor
                    Found in includes/base_controls/QHtmlTableColumn.class.php - About 45 mins to fix

                      Function __set has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring.
                      Open

                              public function __set($strName, $mixValue) {
                                  switch ($strName) {
                                      case "Property":
                                          try {
                                              $this->strProperty = QType::Cast($mixValue, QType::String);
                      Severity: Minor
                      Found in includes/base_controls/QHtmlTableColumn.class.php - About 35 mins to fix

                      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 RenderCell has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring.
                      Open

                              public function RenderCell($item, $blnAsHeader = false) {
                                  if (!$this->blnVisible) return '';
                      
                                  $cellValue = $this->FetchCellValue($item);
                                  if ($this->blnHtmlEntities)
                      Severity: Minor
                      Found in includes/base_controls/QHtmlTableColumn.class.php - About 35 mins to fix

                      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 FetchCellValue has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring.
                      Open

                              public function FetchCellValue($item) {
                                  $cellValue = $this->FetchCellObject($item);
                                              
                                  if ($cellValue !== null && $this->strPostMethod) {
                                      $strPostMethod = $this->strPostMethod;
                      Severity: Minor
                      Found in includes/base_controls/QHtmlTableColumn.class.php - About 35 mins to fix

                      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

                      Avoid too many return statements within this method.
                      Open

                                          return $this->objCellStyler;
                      Severity: Major
                      Found in includes/base_controls/QHtmlTableColumn.class.php - About 30 mins to fix

                        Avoid too many return statements within this method.
                        Open

                                        return $mixSpec;
                        Severity: Major
                        Found in includes/base_controls/QHtmlTableColumn.class.php - About 30 mins to fix

                          Avoid too many return statements within this method.
                          Open

                                              return $this->objHeaderCellStyler;
                          Severity: Major
                          Found in includes/base_controls/QHtmlTableColumn.class.php - About 30 mins to fix

                            Avoid too many return statements within this method.
                            Open

                                                return $this->strId;
                            Severity: Major
                            Found in includes/base_controls/QHtmlTableColumn.class.php - About 30 mins to fix

                              Avoid too many return statements within this method.
                              Open

                                                  return $value;
                              Severity: Major
                              Found in includes/base_controls/QHtmlTableColumn.class.php - About 30 mins to fix

                                Avoid too many return statements within this method.
                                Open

                                            return $mixSpec; // In this case, we return a static value
                                Severity: Major
                                Found in includes/base_controls/QHtmlTableColumn.class.php - About 30 mins to fix

                                  Avoid too many return statements within this method.
                                  Open

                                                      return $this->blnVisible;
                                  Severity: Major
                                  Found in includes/base_controls/QHtmlTableColumn.class.php - About 30 mins to fix

                                    Avoid too many return statements within this method.
                                    Open

                                                        return $this->objParentTable;
                                    Severity: Major
                                    Found in includes/base_controls/QHtmlTableColumn.class.php - About 30 mins to fix

                                      Avoid too many return statements within this method.
                                      Open

                                                          return $this->intSpan;
                                      Severity: Major
                                      Found in includes/base_controls/QHtmlTableColumn.class.php - About 30 mins to fix

                                        Avoid too many return statements within this method.
                                        Open

                                                            return $this->blnRenderAsHeader;
                                        Severity: Major
                                        Found in includes/base_controls/QHtmlTableColumn.class.php - About 30 mins to fix

                                          Avoid too many return statements within this method.
                                          Open

                                                              return $this->objColStyler;
                                          Severity: Major
                                          Found in includes/base_controls/QHtmlTableColumn.class.php - About 30 mins to fix

                                            Avoid too many return statements within this method.
                                            Open

                                                                    return parent::__get($strName);
                                            Severity: Major
                                            Found in includes/base_controls/QHtmlTableColumn.class.php - About 30 mins to fix

                                              Avoid too many return statements within this method.
                                              Open

                                                                  return $value->__toString();
                                              Severity: Major
                                              Found in includes/base_controls/QHtmlTableColumn.class.php - About 30 mins to fix

                                                Function FetchCellObject has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring.
                                                Open

                                                        public function FetchCellObject($item) {
                                                            if ($this->blnNullSafe && $item == null)
                                                                return null;
                                                            foreach ($this->strPropertiesArray as $strProperty) {
                                                                $item = $item->$strProperty;
                                                Severity: Minor
                                                Found in includes/base_controls/QHtmlTableColumn.class.php - About 25 mins to fix

                                                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

                                                The method __set() has 100 lines of code. Current threshold is set to 100. Avoid really long methods.
                                                Open

                                                        public function __set($strName, $mixValue) {
                                                            switch ($strName) {
                                                                case "Name":
                                                                    try {
                                                                        $this->strName = QType::Cast($mixValue, QType::String);

                                                The method __construct() has an NPath complexity of 1170. The configured NPath complexity threshold is 200.
                                                Open

                                                        public function __construct($strName, $objNodes) {
                                                            if ($objNodes instanceof QQNode) {
                                                                $objNodes = [$objNodes];
                                                            }
                                                            elseif (empty($objNodes) || !is_array($objNodes) || !$objNodes[0] instanceof QQNode) {

                                                NPathComplexity

                                                Since: 0.1

                                                The NPath complexity of a method is the number of acyclic execution paths through that method. A threshold of 200 is generally considered the point where measures should be taken to reduce complexity.

                                                Example

                                                class Foo {
                                                    function bar() {
                                                        // lots of complicated code
                                                    }
                                                }

                                                Source https://phpmd.org/rules/codesize.html#npathcomplexity

                                                The method __set() has a Cyclomatic Complexity of 11. The configured cyclomatic complexity threshold is 10.
                                                Open

                                                        public function __set($strName, $mixValue) {
                                                            switch ($strName) {
                                                                case "OrderByClause":
                                                                    try {
                                                                        $this->objOrderByClause = $mixValue;

                                                CyclomaticComplexity

                                                Since: 0.1

                                                Complexity is determined by the number of decision points in a method plus one for the method entry. The decision points are 'if', 'while', 'for', and 'case labels'. Generally, 1-4 is low complexity, 5-7 indicates moderate complexity, 8-10 is high complexity, and 11+ is very high complexity.

                                                Example

                                                // Cyclomatic Complexity = 11
                                                class Foo {
                                                1   public function example() {
                                                2       if ($a == $b) {
                                                3           if ($a1 == $b1) {
                                                                fiddle();
                                                4           } elseif ($a2 == $b2) {
                                                                fiddle();
                                                            } else {
                                                                fiddle();
                                                            }
                                                5       } elseif ($c == $d) {
                                                6           while ($c == $d) {
                                                                fiddle();
                                                            }
                                                7        } elseif ($e == $f) {
                                                8           for ($n = 0; $n < $h; $n++) {
                                                                fiddle();
                                                            }
                                                        } else {
                                                            switch ($z) {
                                                9               case 1:
                                                                    fiddle();
                                                                    break;
                                                10              case 2:
                                                                    fiddle();
                                                                    break;
                                                11              case 3:
                                                                    fiddle();
                                                                    break;
                                                                default:
                                                                    fiddle();
                                                                    break;
                                                            }
                                                        }
                                                    }
                                                }

                                                Source https://phpmd.org/rules/codesize.html#cyclomaticcomplexity

                                                The method __set() has a Cyclomatic Complexity of 22. The configured cyclomatic complexity threshold is 10.
                                                Open

                                                        public function __set($strName, $mixValue) {
                                                            switch ($strName) {
                                                                case "Name":
                                                                    try {
                                                                        $this->strName = QType::Cast($mixValue, QType::String);

                                                CyclomaticComplexity

                                                Since: 0.1

                                                Complexity is determined by the number of decision points in a method plus one for the method entry. The decision points are 'if', 'while', 'for', and 'case labels'. Generally, 1-4 is low complexity, 5-7 indicates moderate complexity, 8-10 is high complexity, and 11+ is very high complexity.

                                                Example

                                                // Cyclomatic Complexity = 11
                                                class Foo {
                                                1   public function example() {
                                                2       if ($a == $b) {
                                                3           if ($a1 == $b1) {
                                                                fiddle();
                                                4           } elseif ($a2 == $b2) {
                                                                fiddle();
                                                            } else {
                                                                fiddle();
                                                            }
                                                5       } elseif ($c == $d) {
                                                6           while ($c == $d) {
                                                                fiddle();
                                                            }
                                                7        } elseif ($e == $f) {
                                                8           for ($n = 0; $n < $h; $n++) {
                                                                fiddle();
                                                            }
                                                        } else {
                                                            switch ($z) {
                                                9               case 1:
                                                                    fiddle();
                                                                    break;
                                                10              case 2:
                                                                    fiddle();
                                                                    break;
                                                11              case 3:
                                                                    fiddle();
                                                                    break;
                                                                default:
                                                                    fiddle();
                                                                    break;
                                                            }
                                                        }
                                                    }
                                                }

                                                Source https://phpmd.org/rules/codesize.html#cyclomaticcomplexity

                                                The method __get() has a Cyclomatic Complexity of 17. The configured cyclomatic complexity threshold is 10.
                                                Open

                                                        public function __get($strName) {
                                                            switch ($strName) {
                                                                case 'Name':
                                                                    return $this->strName;
                                                                case 'CssClass':

                                                CyclomaticComplexity

                                                Since: 0.1

                                                Complexity is determined by the number of decision points in a method plus one for the method entry. The decision points are 'if', 'while', 'for', and 'case labels'. Generally, 1-4 is low complexity, 5-7 indicates moderate complexity, 8-10 is high complexity, and 11+ is very high complexity.

                                                Example

                                                // Cyclomatic Complexity = 11
                                                class Foo {
                                                1   public function example() {
                                                2       if ($a == $b) {
                                                3           if ($a1 == $b1) {
                                                                fiddle();
                                                4           } elseif ($a2 == $b2) {
                                                                fiddle();
                                                            } else {
                                                                fiddle();
                                                            }
                                                5       } elseif ($c == $d) {
                                                6           while ($c == $d) {
                                                                fiddle();
                                                            }
                                                7        } elseif ($e == $f) {
                                                8           for ($n = 0; $n < $h; $n++) {
                                                                fiddle();
                                                            }
                                                        } else {
                                                            switch ($z) {
                                                9               case 1:
                                                                    fiddle();
                                                                    break;
                                                10              case 2:
                                                                    fiddle();
                                                                    break;
                                                11              case 3:
                                                                    fiddle();
                                                                    break;
                                                                default:
                                                                    fiddle();
                                                                    break;
                                                            }
                                                        }
                                                    }
                                                }

                                                Source https://phpmd.org/rules/codesize.html#cyclomaticcomplexity

                                                The method __set() has a Cyclomatic Complexity of 19. The configured cyclomatic complexity threshold is 10.
                                                Open

                                                        public function __set($strName, $mixValue) {
                                                            switch ($strName) {
                                                                case "AsButton":
                                                                    try {
                                                                        $this->blnAsButton = QType::Cast($mixValue, QType::Boolean);

                                                CyclomaticComplexity

                                                Since: 0.1

                                                Complexity is determined by the number of decision points in a method plus one for the method entry. The decision points are 'if', 'while', 'for', and 'case labels'. Generally, 1-4 is low complexity, 5-7 indicates moderate complexity, 8-10 is high complexity, and 11+ is very high complexity.

                                                Example

                                                // Cyclomatic Complexity = 11
                                                class Foo {
                                                1   public function example() {
                                                2       if ($a == $b) {
                                                3           if ($a1 == $b1) {
                                                                fiddle();
                                                4           } elseif ($a2 == $b2) {
                                                                fiddle();
                                                            } else {
                                                                fiddle();
                                                            }
                                                5       } elseif ($c == $d) {
                                                6           while ($c == $d) {
                                                                fiddle();
                                                            }
                                                7        } elseif ($e == $f) {
                                                8           for ($n = 0; $n < $h; $n++) {
                                                                fiddle();
                                                            }
                                                        } else {
                                                            switch ($z) {
                                                9               case 1:
                                                                    fiddle();
                                                                    break;
                                                10              case 2:
                                                                    fiddle();
                                                                    break;
                                                11              case 3:
                                                                    fiddle();
                                                                    break;
                                                                default:
                                                                    fiddle();
                                                                    break;
                                                            }
                                                        }
                                                    }
                                                }

                                                Source https://phpmd.org/rules/codesize.html#cyclomaticcomplexity

                                                The method FetchCellValue() has a Cyclomatic Complexity of 12. The configured cyclomatic complexity threshold is 10.
                                                Open

                                                        public function FetchCellValue($item) {
                                                            $strText = parent::FetchCellValue($item);    // allow post processing of cell label
                                                
                                                            $getVars = null;
                                                            if ($this->getVars) {

                                                CyclomaticComplexity

                                                Since: 0.1

                                                Complexity is determined by the number of decision points in a method plus one for the method entry. The decision points are 'if', 'while', 'for', and 'case labels'. Generally, 1-4 is low complexity, 5-7 indicates moderate complexity, 8-10 is high complexity, and 11+ is very high complexity.

                                                Example

                                                // Cyclomatic Complexity = 11
                                                class Foo {
                                                1   public function example() {
                                                2       if ($a == $b) {
                                                3           if ($a1 == $b1) {
                                                                fiddle();
                                                4           } elseif ($a2 == $b2) {
                                                                fiddle();
                                                            } else {
                                                                fiddle();
                                                            }
                                                5       } elseif ($c == $d) {
                                                6           while ($c == $d) {
                                                                fiddle();
                                                            }
                                                7        } elseif ($e == $f) {
                                                8           for ($n = 0; $n < $h; $n++) {
                                                                fiddle();
                                                            }
                                                        } else {
                                                            switch ($z) {
                                                9               case 1:
                                                                    fiddle();
                                                                    break;
                                                10              case 2:
                                                                    fiddle();
                                                                    break;
                                                11              case 3:
                                                                    fiddle();
                                                                    break;
                                                                default:
                                                                    fiddle();
                                                                    break;
                                                            }
                                                        }
                                                    }
                                                }

                                                Source https://phpmd.org/rules/codesize.html#cyclomaticcomplexity

                                                The method GetObjectValue() has a Cyclomatic Complexity of 17. The configured cyclomatic complexity threshold is 10.
                                                Open

                                                        protected static function GetObjectValue ($mixSpec, $item) {
                                                            if (is_array($mixSpec)) {
                                                                if (is_object($mixSpec[0]) && is_callable($mixSpec)) {
                                                                    // If its a callable array, then call it
                                                                    return call_user_func($mixSpec, $item);

                                                CyclomaticComplexity

                                                Since: 0.1

                                                Complexity is determined by the number of decision points in a method plus one for the method entry. The decision points are 'if', 'while', 'for', and 'case labels'. Generally, 1-4 is low complexity, 5-7 indicates moderate complexity, 8-10 is high complexity, and 11+ is very high complexity.

                                                Example

                                                // Cyclomatic Complexity = 11
                                                class Foo {
                                                1   public function example() {
                                                2       if ($a == $b) {
                                                3           if ($a1 == $b1) {
                                                                fiddle();
                                                4           } elseif ($a2 == $b2) {
                                                                fiddle();
                                                            } else {
                                                                fiddle();
                                                            }
                                                5       } elseif ($c == $d) {
                                                6           while ($c == $d) {
                                                                fiddle();
                                                            }
                                                7        } elseif ($e == $f) {
                                                8           for ($n = 0; $n < $h; $n++) {
                                                                fiddle();
                                                            }
                                                        } else {
                                                            switch ($z) {
                                                9               case 1:
                                                                    fiddle();
                                                                    break;
                                                10              case 2:
                                                                    fiddle();
                                                                    break;
                                                11              case 3:
                                                                    fiddle();
                                                                    break;
                                                                default:
                                                                    fiddle();
                                                                    break;
                                                            }
                                                        }
                                                    }
                                                }

                                                Source https://phpmd.org/rules/codesize.html#cyclomaticcomplexity

                                                The method __construct() has a Cyclomatic Complexity of 15. The configured cyclomatic complexity threshold is 10.
                                                Open

                                                        public function __construct($strName, $objNodes) {
                                                            if ($objNodes instanceof QQNode) {
                                                                $objNodes = [$objNodes];
                                                            }
                                                            elseif (empty($objNodes) || !is_array($objNodes) || !$objNodes[0] instanceof QQNode) {

                                                CyclomaticComplexity

                                                Since: 0.1

                                                Complexity is determined by the number of decision points in a method plus one for the method entry. The decision points are 'if', 'while', 'for', and 'case labels'. Generally, 1-4 is low complexity, 5-7 indicates moderate complexity, 8-10 is high complexity, and 11+ is very high complexity.

                                                Example

                                                // Cyclomatic Complexity = 11
                                                class Foo {
                                                1   public function example() {
                                                2       if ($a == $b) {
                                                3           if ($a1 == $b1) {
                                                                fiddle();
                                                4           } elseif ($a2 == $b2) {
                                                                fiddle();
                                                            } else {
                                                                fiddle();
                                                            }
                                                5       } elseif ($c == $d) {
                                                6           while ($c == $d) {
                                                                fiddle();
                                                            }
                                                7        } elseif ($e == $f) {
                                                8           for ($n = 0; $n < $h; $n++) {
                                                                fiddle();
                                                            }
                                                        } else {
                                                            switch ($z) {
                                                9               case 1:
                                                                    fiddle();
                                                                    break;
                                                10              case 2:
                                                                    fiddle();
                                                                    break;
                                                11              case 3:
                                                                    fiddle();
                                                                    break;
                                                                default:
                                                                    fiddle();
                                                                    break;
                                                            }
                                                        }
                                                    }
                                                }

                                                Source https://phpmd.org/rules/codesize.html#cyclomaticcomplexity

                                                Avoid using undefined variables such as '$objReverseNodes' which will lead to PHP notices.
                                                Open

                                                            $this->ReverseOrderByClause = QQ::OrderBy($objReverseNodes);

                                                UndefinedVariable

                                                Since: 2.8.0

                                                Detects when a variable is used that has not been defined before.

                                                Example

                                                class Foo
                                                {
                                                    private function bar()
                                                    {
                                                        // $message is undefined
                                                        echo $message;
                                                    }
                                                }

                                                Source https://phpmd.org/rules/cleancode.html#undefinedvariable

                                                Avoid using undefined variables such as '$objSortNodes' which will lead to PHP notices.
                                                Open

                                                                $objSortNodes[] = $objNode;

                                                UndefinedVariable

                                                Since: 2.8.0

                                                Detects when a variable is used that has not been defined before.

                                                Example

                                                class Foo
                                                {
                                                    private function bar()
                                                    {
                                                        // $message is undefined
                                                        echo $message;
                                                    }
                                                }

                                                Source https://phpmd.org/rules/cleancode.html#undefinedvariable

                                                Avoid using undefined variables such as '$objSortNodes' which will lead to PHP notices.
                                                Open

                                                            $this->OrderByClause = QQ::OrderBy($objSortNodes);

                                                UndefinedVariable

                                                Since: 2.8.0

                                                Detects when a variable is used that has not been defined before.

                                                Example

                                                class Foo
                                                {
                                                    private function bar()
                                                    {
                                                        // $message is undefined
                                                        echo $message;
                                                    }
                                                }

                                                Source https://phpmd.org/rules/cleancode.html#undefinedvariable

                                                Avoid using undefined variables such as '$objReverseNodes' which will lead to PHP notices.
                                                Open

                                                                $objReverseNodes[] = $objNode;

                                                UndefinedVariable

                                                Since: 2.8.0

                                                Detects when a variable is used that has not been defined before.

                                                Example

                                                class Foo
                                                {
                                                    private function bar()
                                                    {
                                                        // $message is undefined
                                                        echo $message;
                                                    }
                                                }

                                                Source https://phpmd.org/rules/cleancode.html#undefinedvariable

                                                Avoid using undefined variables such as '$objReverseNodes' which will lead to PHP notices.
                                                Open

                                                                $objReverseNodes[] = false;

                                                UndefinedVariable

                                                Since: 2.8.0

                                                Detects when a variable is used that has not been defined before.

                                                Example

                                                class Foo
                                                {
                                                    private function bar()
                                                    {
                                                        // $message is undefined
                                                        echo $message;
                                                    }
                                                }

                                                Source https://phpmd.org/rules/cleancode.html#undefinedvariable

                                                The method RenderCell has a boolean flag argument $blnAsHeader, which is a certain sign of a Single Responsibility Principle violation.
                                                Open

                                                        public function RenderCell($item, $blnAsHeader = false) {

                                                BooleanArgumentFlag

                                                Since: 1.4.0

                                                A boolean flag argument is a reliable indicator for a violation of the Single Responsibility Principle (SRP). You can fix this problem by extracting the logic in the boolean flag into its own class or method.

                                                Example

                                                class Foo {
                                                    public function bar($flag = true) {
                                                    }
                                                }

                                                Source https://phpmd.org/rules/cleancode.html#booleanargumentflag

                                                Missing class import via use statement (line '390', column '18').
                                                Open

                                                                            throw new Exception("Span must be 1 or greater.");

                                                MissingImport

                                                Since: 2.7.0

                                                Importing all external classes in a file through use statements makes them clearly visible.

                                                Example

                                                function make() {
                                                    return new \stdClass();
                                                }

                                                Source http://phpmd.org/rules/cleancode.html#MissingImport

                                                Missing class import via use statement (line '303', column '34').
                                                Open

                                                                        $this->objCellStyler = new QTagStyler();

                                                MissingImport

                                                Since: 2.7.0

                                                Importing all external classes in a file through use statements makes them clearly visible.

                                                Example

                                                function make() {
                                                    return new \stdClass();
                                                }

                                                Source http://phpmd.org/rules/cleancode.html#MissingImport

                                                Missing class import via use statement (line '760', column '15').
                                                Open

                                                                throw new QCallerException('Content QQNode cannot go through any "To Many" association nodes.');

                                                MissingImport

                                                Since: 2.7.0

                                                Importing all external classes in a file through use statements makes them clearly visible.

                                                Example

                                                function make() {
                                                    return new \stdClass();
                                                }

                                                Source http://phpmd.org/rules/cleancode.html#MissingImport

                                                Missing class import via use statement (line '757', column '15').
                                                Open

                                                                throw new QCallerException('First QQNode cannot be a Top Level Node');

                                                MissingImport

                                                Since: 2.7.0

                                                Importing all external classes in a file through use statements makes them clearly visible.

                                                Example

                                                function make() {
                                                    return new \stdClass();
                                                }

                                                Source http://phpmd.org/rules/cleancode.html#MissingImport

                                                Missing class import via use statement (line '313', column '33').
                                                Open

                                                                        $this->objColStyler = new QTagStyler();

                                                MissingImport

                                                Since: 2.7.0

                                                Importing all external classes in a file through use statements makes them clearly visible.

                                                Example

                                                function make() {
                                                    return new \stdClass();
                                                }

                                                Source http://phpmd.org/rules/cleancode.html#MissingImport

                                                Missing class import via use statement (line '308', column '40').
                                                Open

                                                                        $this->objHeaderCellStyler = new QTagStyler();

                                                MissingImport

                                                Since: 2.7.0

                                                Importing all external classes in a file through use statements makes them clearly visible.

                                                Example

                                                function make() {
                                                    return new \stdClass();
                                                }

                                                Source http://phpmd.org/rules/cleancode.html#MissingImport

                                                Missing class import via use statement (line '766', column '16').
                                                Open

                                                                    throw new QCallerException('QQNode cannot go through any "To Many" association nodes.');

                                                MissingImport

                                                Since: 2.7.0

                                                Importing all external classes in a file through use statements makes them clearly visible.

                                                Example

                                                function make() {
                                                    return new \stdClass();
                                                }

                                                Source http://phpmd.org/rules/cleancode.html#MissingImport

                                                Missing class import via use statement (line '1676', column '18').
                                                Open

                                                                            throw new Exception ("Invalid type");

                                                MissingImport

                                                Since: 2.7.0

                                                Importing all external classes in a file through use statements makes them clearly visible.

                                                Example

                                                function make() {
                                                    return new \stdClass();
                                                }

                                                Source http://phpmd.org/rules/cleancode.html#MissingImport

                                                Missing class import via use statement (line '751', column '15').
                                                Open

                                                                throw new QCallerException('Pass either a QQNode or an array of QQNodes only');

                                                MissingImport

                                                Since: 2.7.0

                                                Importing all external classes in a file through use statements makes them clearly visible.

                                                Example

                                                function make() {
                                                    return new \stdClass();
                                                }

                                                Source http://phpmd.org/rules/cleancode.html#MissingImport

                                                Missing class import via use statement (line '897', column '15').
                                                Open

                                                                throw new InvalidArgumentException('Cannot be a Closure.');

                                                MissingImport

                                                Since: 2.7.0

                                                Importing all external classes in a file through use statements makes them clearly visible.

                                                Example

                                                function make() {
                                                    return new \stdClass();
                                                }

                                                Source http://phpmd.org/rules/cleancode.html#MissingImport

                                                Missing class import via use statement (line '1656', column '18').
                                                Open

                                                                            throw new Exception ("Invalid type");

                                                MissingImport

                                                Since: 2.7.0

                                                Importing all external classes in a file through use statements makes them clearly visible.

                                                Example

                                                function make() {
                                                    return new \stdClass();
                                                }

                                                Source http://phpmd.org/rules/cleancode.html#MissingImport

                                                The method __construct has a boolean flag argument $blnAsButton, which is a certain sign of a Single Responsibility Principle violation.
                                                Open

                                                        public function __construct($strName, $mixText, $mixDestination = null, $getVars = null, $tagAttributes = null, $blnAsButton = false) {

                                                BooleanArgumentFlag

                                                Since: 1.4.0

                                                A boolean flag argument is a reliable indicator for a violation of the Single Responsibility Principle (SRP). You can fix this problem by extracting the logic in the boolean flag into its own class or method.

                                                Example

                                                class Foo {
                                                    public function bar($flag = true) {
                                                    }
                                                }

                                                Source https://phpmd.org/rules/cleancode.html#booleanargumentflag

                                                Missing class import via use statement (line '768', column '16').
                                                Open

                                                                    throw new QCallerException('QQNode cannot go through any "To Many" association nodes.');

                                                MissingImport

                                                Since: 2.7.0

                                                Importing all external classes in a file through use statements makes them clearly visible.

                                                Example

                                                function make() {
                                                    return new \stdClass();
                                                }

                                                Source http://phpmd.org/rules/cleancode.html#MissingImport

                                                Missing class import via use statement (line '1468', column '17').
                                                Open

                                                                        throw new QCallerException('QQNode cannot go through any "To Many" association nodes.');

                                                MissingImport

                                                Since: 2.7.0

                                                Importing all external classes in a file through use statements makes them clearly visible.

                                                Example

                                                function make() {
                                                    return new \stdClass();
                                                }

                                                Source http://phpmd.org/rules/cleancode.html#MissingImport

                                                Missing class import via use statement (line '1470', column '17').
                                                Open

                                                                        throw new QCallerException('QQNode cannot go through any "To Many" association nodes.');

                                                MissingImport

                                                Since: 2.7.0

                                                Importing all external classes in a file through use statements makes them clearly visible.

                                                Example

                                                function make() {
                                                    return new \stdClass();
                                                }

                                                Source http://phpmd.org/rules/cleancode.html#MissingImport

                                                Avoid using static access to class 'QHtml' in method 'RenderHeaderCell'.
                                                Open

                                                            return QHtml::RenderTag('th', $this->GetHeaderCellParams(), $cellValue);

                                                StaticAccess

                                                Since: 1.4.0

                                                Static access causes unexchangeable dependencies to other classes and leads to hard to test code. Avoid using static access at all costs and instead inject dependencies through the constructor. The only case when static access is acceptable is when used for factory methods.

                                                Example

                                                class Foo
                                                {
                                                    public function bar()
                                                    {
                                                        Bar::baz();
                                                    }
                                                }

                                                Source https://phpmd.org/rules/cleancode.html#staticaccess

                                                Avoid using static access to class 'QType' in method '__set'.
                                                Open

                                                                        $this->strName = QType::Cast($mixValue, QType::String);

                                                StaticAccess

                                                Since: 1.4.0

                                                Static access causes unexchangeable dependencies to other classes and leads to hard to test code. Avoid using static access at all costs and instead inject dependencies through the constructor. The only case when static access is acceptable is when used for factory methods.

                                                Example

                                                class Foo
                                                {
                                                    public function bar()
                                                    {
                                                        Bar::baz();
                                                    }
                                                }

                                                Source https://phpmd.org/rules/cleancode.html#staticaccess

                                                Avoid using static access to class 'QApplication' in method 'RenderHeaderCell'.
                                                Open

                                                                $cellValue = QApplication::HtmlEntities($cellValue);

                                                StaticAccess

                                                Since: 1.4.0

                                                Static access causes unexchangeable dependencies to other classes and leads to hard to test code. Avoid using static access at all costs and instead inject dependencies through the constructor. The only case when static access is acceptable is when used for factory methods.

                                                Example

                                                class Foo
                                                {
                                                    public function bar()
                                                    {
                                                        Bar::baz();
                                                    }
                                                }

                                                Source https://phpmd.org/rules/cleancode.html#staticaccess

                                                Avoid using static access to class 'QType' in method '__set'.
                                                Open

                                                                        $this->blnVisible = QType::Cast($mixValue, QType::Boolean);

                                                StaticAccess

                                                Since: 1.4.0

                                                Static access causes unexchangeable dependencies to other classes and leads to hard to test code. Avoid using static access at all costs and instead inject dependencies through the constructor. The only case when static access is acceptable is when used for factory methods.

                                                Example

                                                class Foo
                                                {
                                                    public function bar()
                                                    {
                                                        Bar::baz();
                                                    }
                                                }

                                                Source https://phpmd.org/rules/cleancode.html#staticaccess

                                                Avoid assigning values to variables in if clauses and the like (line '145', column '8').
                                                Open

                                                        protected function GetCellParams ($item) {
                                                            $aParams = array();
                                                
                                                            if ($strClass = $this->GetCellClass ($item)) {
                                                                $aParams['class'] = $strClass;

                                                IfStatementAssignment

                                                Since: 2.7.0

                                                Assignments in if clauses and the like are considered a code smell. Assignments in PHP return the right operand as their result. In many cases, this is an expected behavior, but can lead to many difficult to spot bugs, especially when the right operand could result in zero, null or an empty string and the like.

                                                Example

                                                class Foo
                                                {
                                                    public function bar($flag)
                                                    {
                                                        if ($foo = 'bar') { // possible typo
                                                            // ...
                                                        }
                                                        if ($baz = 0) { // always false
                                                            // ...
                                                        }
                                                    }
                                                }

                                                Source http://phpmd.org/rules/cleancode.html#ifstatementassignment

                                                Avoid assigning values to variables in if clauses and the like (line '149', column '8').
                                                Open

                                                        protected function GetCellParams ($item) {
                                                            $aParams = array();
                                                
                                                            if ($strClass = $this->GetCellClass ($item)) {
                                                                $aParams['class'] = $strClass;

                                                IfStatementAssignment

                                                Since: 2.7.0

                                                Assignments in if clauses and the like are considered a code smell. Assignments in PHP return the right operand as their result. In many cases, this is an expected behavior, but can lead to many difficult to spot bugs, especially when the right operand could result in zero, null or an empty string and the like.

                                                Example

                                                class Foo
                                                {
                                                    public function bar($flag)
                                                    {
                                                        if ($foo = 'bar') { // possible typo
                                                            // ...
                                                        }
                                                        if ($baz = 0) { // always false
                                                            // ...
                                                        }
                                                    }
                                                }

                                                Source http://phpmd.org/rules/cleancode.html#ifstatementassignment

                                                Avoid using static access to class 'QType' in method '__set'.
                                                Open

                                                                        $this->blnHtmlEntities = QType::Cast($mixValue, QType::Boolean);

                                                StaticAccess

                                                Since: 1.4.0

                                                Static access causes unexchangeable dependencies to other classes and leads to hard to test code. Avoid using static access at all costs and instead inject dependencies through the constructor. The only case when static access is acceptable is when used for factory methods.

                                                Example

                                                class Foo
                                                {
                                                    public function bar()
                                                    {
                                                        Bar::baz();
                                                    }
                                                }

                                                Source https://phpmd.org/rules/cleancode.html#staticaccess

                                                Avoid using static access to class 'QApplication' in method 'RenderCell'.
                                                Open

                                                            if ($cellValue == '' && QApplication::IsBrowser(QBrowserType::InternetExplorer)) {

                                                StaticAccess

                                                Since: 1.4.0

                                                Static access causes unexchangeable dependencies to other classes and leads to hard to test code. Avoid using static access at all costs and instead inject dependencies through the constructor. The only case when static access is acceptable is when used for factory methods.

                                                Example

                                                class Foo
                                                {
                                                    public function bar()
                                                    {
                                                        Bar::baz();
                                                    }
                                                }

                                                Source https://phpmd.org/rules/cleancode.html#staticaccess

                                                Avoid using static access to class 'QQ' in method '__construct'.
                                                Open

                                                                $this->ReverseOrderByClause = QQ::OrderBy($objBaseNode, 'desc');

                                                StaticAccess

                                                Since: 1.4.0

                                                Static access causes unexchangeable dependencies to other classes and leads to hard to test code. Avoid using static access at all costs and instead inject dependencies through the constructor. The only case when static access is acceptable is when used for factory methods.

                                                Example

                                                class Foo
                                                {
                                                    public function bar()
                                                    {
                                                        Bar::baz();
                                                    }
                                                }

                                                Source https://phpmd.org/rules/cleancode.html#staticaccess

                                                Avoid using static access to class 'QControl' in method 'Wakeup'.
                                                Open

                                                            $this->cellParamsCallback = QControl::WakeupHelper($objForm, $this->cellParamsCallback);

                                                StaticAccess

                                                Since: 1.4.0

                                                Static access causes unexchangeable dependencies to other classes and leads to hard to test code. Avoid using static access at all costs and instead inject dependencies through the constructor. The only case when static access is acceptable is when used for factory methods.

                                                Example

                                                class Foo
                                                {
                                                    public function bar()
                                                    {
                                                        Bar::baz();
                                                    }
                                                }

                                                Source https://phpmd.org/rules/cleancode.html#staticaccess

                                                Avoid using static access to class 'QApplication' in method 'RenderCell'.
                                                Open

                                                                $cellValue = QApplication::HtmlEntities($cellValue);

                                                StaticAccess

                                                Since: 1.4.0

                                                Static access causes unexchangeable dependencies to other classes and leads to hard to test code. Avoid using static access at all costs and instead inject dependencies through the constructor. The only case when static access is acceptable is when used for factory methods.

                                                Example

                                                class Foo
                                                {
                                                    public function bar()
                                                    {
                                                        Bar::baz();
                                                    }
                                                }

                                                Source https://phpmd.org/rules/cleancode.html#staticaccess

                                                Avoid using static access to class 'QHtml' in method 'RenderColTag'.
                                                Open

                                                            return QHtml::RenderTag('col', $this->GetColParams(), null, true);

                                                StaticAccess

                                                Since: 1.4.0

                                                Static access causes unexchangeable dependencies to other classes and leads to hard to test code. Avoid using static access at all costs and instead inject dependencies through the constructor. The only case when static access is acceptable is when used for factory methods.

                                                Example

                                                class Foo
                                                {
                                                    public function bar()
                                                    {
                                                        Bar::baz();
                                                    }
                                                }

                                                Source https://phpmd.org/rules/cleancode.html#staticaccess

                                                Avoid using static access to class 'QType' in method '__set'.
                                                Open

                                                                        $this->strHeaderCssClass = QType::Cast($mixValue, QType::String);

                                                StaticAccess

                                                Since: 1.4.0

                                                Static access causes unexchangeable dependencies to other classes and leads to hard to test code. Avoid using static access at all costs and instead inject dependencies through the constructor. The only case when static access is acceptable is when used for factory methods.

                                                Example

                                                class Foo
                                                {
                                                    public function bar()
                                                    {
                                                        Bar::baz();
                                                    }
                                                }

                                                Source https://phpmd.org/rules/cleancode.html#staticaccess

                                                Avoid using static access to class 'QApplication' in method 'RenderHeaderCell'.
                                                Open

                                                            if ($cellValue == '' && QApplication::IsBrowser(QBrowserType::InternetExplorer)) {

                                                StaticAccess

                                                Since: 1.4.0

                                                Static access causes unexchangeable dependencies to other classes and leads to hard to test code. Avoid using static access at all costs and instead inject dependencies through the constructor. The only case when static access is acceptable is when used for factory methods.

                                                Example

                                                class Foo
                                                {
                                                    public function bar()
                                                    {
                                                        Bar::baz();
                                                    }
                                                }

                                                Source https://phpmd.org/rules/cleancode.html#staticaccess

                                                Avoid using static access to class 'QType' in method '__set'.
                                                Open

                                                                        $this->strCssClass = QType::Cast($mixValue, QType::String);

                                                StaticAccess

                                                Since: 1.4.0

                                                Static access causes unexchangeable dependencies to other classes and leads to hard to test code. Avoid using static access at all costs and instead inject dependencies through the constructor. The only case when static access is acceptable is when used for factory methods.

                                                Example

                                                class Foo
                                                {
                                                    public function bar()
                                                    {
                                                        Bar::baz();
                                                    }
                                                }

                                                Source https://phpmd.org/rules/cleancode.html#staticaccess

                                                Avoid using static access to class 'QType' in method '__set'.
                                                Open

                                                                    $this->cellParamsCallback = QType::Cast($mixValue, QType::CallableType);

                                                StaticAccess

                                                Since: 1.4.0

                                                Static access causes unexchangeable dependencies to other classes and leads to hard to test code. Avoid using static access at all costs and instead inject dependencies through the constructor. The only case when static access is acceptable is when used for factory methods.

                                                Example

                                                class Foo
                                                {
                                                    public function bar()
                                                    {
                                                        Bar::baz();
                                                    }
                                                }

                                                Source https://phpmd.org/rules/cleancode.html#staticaccess

                                                Avoid using static access to class 'QType' in method '__set'.
                                                Open

                                                                        $this->blnNullSafe = QType::Cast($mixValue, QType::Boolean);

                                                StaticAccess

                                                Since: 1.4.0

                                                Static access causes unexchangeable dependencies to other classes and leads to hard to test code. Avoid using static access at all costs and instead inject dependencies through the constructor. The only case when static access is acceptable is when used for factory methods.

                                                Example

                                                class Foo
                                                {
                                                    public function bar()
                                                    {
                                                        Bar::baz();
                                                    }
                                                }

                                                Source https://phpmd.org/rules/cleancode.html#staticaccess

                                                Avoid using static access to class 'QControl' in method 'Sleep'.
                                                Open

                                                            $this->cellParamsCallback = QControl::SleepHelper($this->cellParamsCallback);

                                                StaticAccess

                                                Since: 1.4.0

                                                Static access causes unexchangeable dependencies to other classes and leads to hard to test code. Avoid using static access at all costs and instead inject dependencies through the constructor. The only case when static access is acceptable is when used for factory methods.

                                                Example

                                                class Foo
                                                {
                                                    public function bar()
                                                    {
                                                        Bar::baz();
                                                    }
                                                }

                                                Source https://phpmd.org/rules/cleancode.html#staticaccess

                                                Avoid using static access to class 'QType' in method '__set'.
                                                Open

                                                                        $this->strId = QType::Cast($mixValue, QType::String);

                                                StaticAccess

                                                Since: 1.4.0

                                                Static access causes unexchangeable dependencies to other classes and leads to hard to test code. Avoid using static access at all costs and instead inject dependencies through the constructor. The only case when static access is acceptable is when used for factory methods.

                                                Example

                                                class Foo
                                                {
                                                    public function bar()
                                                    {
                                                        Bar::baz();
                                                    }
                                                }

                                                Source https://phpmd.org/rules/cleancode.html#staticaccess

                                                Avoid using static access to class 'QType' in method '__set'.
                                                Open

                                                                        $this->intSpan = QType::Cast($mixValue, QType::Integer);

                                                StaticAccess

                                                Since: 1.4.0

                                                Static access causes unexchangeable dependencies to other classes and leads to hard to test code. Avoid using static access at all costs and instead inject dependencies through the constructor. The only case when static access is acceptable is when used for factory methods.

                                                Example

                                                class Foo
                                                {
                                                    public function bar()
                                                    {
                                                        Bar::baz();
                                                    }
                                                }

                                                Source https://phpmd.org/rules/cleancode.html#staticaccess

                                                Avoid using static access to class 'QType' in method '__set'.
                                                Open

                                                                        $this->strPostMethod = QType::Cast($mixValue, QType::String);

                                                StaticAccess

                                                Since: 1.4.0

                                                Static access causes unexchangeable dependencies to other classes and leads to hard to test code. Avoid using static access at all costs and instead inject dependencies through the constructor. The only case when static access is acceptable is when used for factory methods.

                                                Example

                                                class Foo
                                                {
                                                    public function bar()
                                                    {
                                                        Bar::baz();
                                                    }
                                                }

                                                Source https://phpmd.org/rules/cleancode.html#staticaccess

                                                Avoid using static access to class 'QHtml' in method 'RenderCell'.
                                                Open

                                                            return QHtml::RenderTag($strTag, $this->GetCellParams($item), $cellValue);

                                                StaticAccess

                                                Since: 1.4.0

                                                Static access causes unexchangeable dependencies to other classes and leads to hard to test code. Avoid using static access at all costs and instead inject dependencies through the constructor. The only case when static access is acceptable is when used for factory methods.

                                                Example

                                                class Foo
                                                {
                                                    public function bar()
                                                    {
                                                        Bar::baz();
                                                    }
                                                }

                                                Source https://phpmd.org/rules/cleancode.html#staticaccess

                                                Avoid using static access to class 'QType' in method '__set'.
                                                Open

                                                                        $this->blnRenderAsHeader = QType::Cast($mixValue, QType::Boolean);

                                                StaticAccess

                                                Since: 1.4.0

                                                Static access causes unexchangeable dependencies to other classes and leads to hard to test code. Avoid using static access at all costs and instead inject dependencies through the constructor. The only case when static access is acceptable is when used for factory methods.

                                                Example

                                                class Foo
                                                {
                                                    public function bar()
                                                    {
                                                        Bar::baz();
                                                    }
                                                }

                                                Source https://phpmd.org/rules/cleancode.html#staticaccess

                                                Avoid using static access to class 'QType' in method '__set'.
                                                Open

                                                                        $this->objParentTable = QType::Cast($mixValue, 'QHtmlTableBase');

                                                StaticAccess

                                                Since: 1.4.0

                                                Static access causes unexchangeable dependencies to other classes and leads to hard to test code. Avoid using static access at all costs and instead inject dependencies through the constructor. The only case when static access is acceptable is when used for factory methods.

                                                Example

                                                class Foo
                                                {
                                                    public function bar()
                                                    {
                                                        Bar::baz();
                                                    }
                                                }

                                                Source https://phpmd.org/rules/cleancode.html#staticaccess

                                                Avoid using static access to class 'QControl' in method 'Wakeup'.
                                                Open

                                                            $this->objPostCallback = QControl::WakeupHelper($objForm, $this->objPostCallback);

                                                StaticAccess

                                                Since: 1.4.0

                                                Static access causes unexchangeable dependencies to other classes and leads to hard to test code. Avoid using static access at all costs and instead inject dependencies through the constructor. The only case when static access is acceptable is when used for factory methods.

                                                Example

                                                class Foo
                                                {
                                                    public function bar()
                                                    {
                                                        Bar::baz();
                                                    }
                                                }

                                                Source https://phpmd.org/rules/cleancode.html#staticaccess

                                                Avoid using static access to class 'QQ' in method '__construct'.
                                                Open

                                                                $this->OrderByClause = QQ::OrderBy($objBaseNode);

                                                StaticAccess

                                                Since: 1.4.0

                                                Static access causes unexchangeable dependencies to other classes and leads to hard to test code. Avoid using static access at all costs and instead inject dependencies through the constructor. The only case when static access is acceptable is when used for factory methods.

                                                Example

                                                class Foo
                                                {
                                                    public function bar()
                                                    {
                                                        Bar::baz();
                                                    }
                                                }

                                                Source https://phpmd.org/rules/cleancode.html#staticaccess

                                                The method RenderCell uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them.
                                                Open

                                                            } else {
                                                                $strTag = 'td';
                                                            }

                                                ElseExpression

                                                Since: 1.4.0

                                                An if expression with an else branch is basically not necessary. You can rewrite the conditions in a way that the else clause is not necessary and the code becomes simpler to read. To achieve this, use early return statements, though you may need to split the code it several smaller methods. For very simple assignments you could also use the ternary operations.

                                                Example

                                                class Foo
                                                {
                                                    public function bar($flag)
                                                    {
                                                        if ($flag) {
                                                            // one branch
                                                        } else {
                                                            // another branch
                                                        }
                                                    }
                                                }

                                                Source https://phpmd.org/rules/cleancode.html#elseexpression

                                                Avoid using static access to class 'QQ' in method '__construct'.
                                                Open

                                                            $this->ReverseOrderByClause = QQ::OrderBy($objReverseNodes);

                                                StaticAccess

                                                Since: 1.4.0

                                                Static access causes unexchangeable dependencies to other classes and leads to hard to test code. Avoid using static access at all costs and instead inject dependencies through the constructor. The only case when static access is acceptable is when used for factory methods.

                                                Example

                                                class Foo
                                                {
                                                    public function bar()
                                                    {
                                                        Bar::baz();
                                                    }
                                                }

                                                Source https://phpmd.org/rules/cleancode.html#staticaccess

                                                Avoid using static access to class 'QHtml' in method 'FetchHeaderCellValue'.
                                                Open

                                                                return QHtml::RenderTag('input', $aParams, null, true);

                                                StaticAccess

                                                Since: 1.4.0

                                                Static access causes unexchangeable dependencies to other classes and leads to hard to test code. Avoid using static access at all costs and instead inject dependencies through the constructor. The only case when static access is acceptable is when used for factory methods.

                                                Example

                                                class Foo
                                                {
                                                    public function bar()
                                                    {
                                                        Bar::baz();
                                                    }
                                                }

                                                Source https://phpmd.org/rules/cleancode.html#staticaccess

                                                Avoid using static access to class 'QHtml' in method 'FetchCellObject'.
                                                Open

                                                            return QHtml::RenderTag('input', $aParams, null, true);

                                                StaticAccess

                                                Since: 1.4.0

                                                Static access causes unexchangeable dependencies to other classes and leads to hard to test code. Avoid using static access at all costs and instead inject dependencies through the constructor. The only case when static access is acceptable is when used for factory methods.

                                                Example

                                                class Foo
                                                {
                                                    public function bar()
                                                    {
                                                        Bar::baz();
                                                    }
                                                }

                                                Source https://phpmd.org/rules/cleancode.html#staticaccess

                                                Avoid using static access to class 'QApplication' in method 'FetchCellValue'.
                                                Open

                                                                return QApplication::HtmlEntities($strText);

                                                StaticAccess

                                                Since: 1.4.0

                                                Static access causes unexchangeable dependencies to other classes and leads to hard to test code. Avoid using static access at all costs and instead inject dependencies through the constructor. The only case when static access is acceptable is when used for factory methods.

                                                Example

                                                class Foo
                                                {
                                                    public function bar()
                                                    {
                                                        Bar::baz();
                                                    }
                                                }

                                                Source https://phpmd.org/rules/cleancode.html#staticaccess

                                                Avoid assigning values to variables in if clauses and the like (line '769', column '9').
                                                Open

                                                        public function __construct($strName, $objNodes) {
                                                            if ($objNodes instanceof QQNode) {
                                                                $objNodes = [$objNodes];
                                                            }
                                                            elseif (empty($objNodes) || !is_array($objNodes) || !$objNodes[0] instanceof QQNode) {

                                                IfStatementAssignment

                                                Since: 2.7.0

                                                Assignments in if clauses and the like are considered a code smell. Assignments in PHP return the right operand as their result. In many cases, this is an expected behavior, but can lead to many difficult to spot bugs, especially when the right operand could result in zero, null or an empty string and the like.

                                                Example

                                                class Foo
                                                {
                                                    public function bar($flag)
                                                    {
                                                        if ($foo = 'bar') { // possible typo
                                                            // ...
                                                        }
                                                        if ($baz = 0) { // always false
                                                            // ...
                                                        }
                                                    }
                                                }

                                                Source http://phpmd.org/rules/cleancode.html#ifstatementassignment

                                                The method FetchCellObject uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them.
                                                Open

                                                            } else {
                                                                return call_user_func($this->callback, $item);
                                                            }

                                                ElseExpression

                                                Since: 1.4.0

                                                An if expression with an else branch is basically not necessary. You can rewrite the conditions in a way that the else clause is not necessary and the code becomes simpler to read. To achieve this, use early return statements, though you may need to split the code it several smaller methods. For very simple assignments you could also use the ternary operations.

                                                Example

                                                class Foo
                                                {
                                                    public function bar($flag)
                                                    {
                                                        if ($flag) {
                                                            // one branch
                                                        } else {
                                                            // another branch
                                                        }
                                                    }
                                                }

                                                Source https://phpmd.org/rules/cleancode.html#elseexpression

                                                Avoid using static access to class 'QQ' in method '__construct'.
                                                Open

                                                            $this->OrderByClause = QQ::OrderBy(QQ::Virtual($strAttribute));

                                                StaticAccess

                                                Since: 1.4.0

                                                Static access causes unexchangeable dependencies to other classes and leads to hard to test code. Avoid using static access at all costs and instead inject dependencies through the constructor. The only case when static access is acceptable is when used for factory methods.

                                                Example

                                                class Foo
                                                {
                                                    public function bar()
                                                    {
                                                        Bar::baz();
                                                    }
                                                }

                                                Source https://phpmd.org/rules/cleancode.html#staticaccess

                                                Avoid using static access to class 'QQ' in method '__construct'.
                                                Open

                                                            $this->OrderByClause = QQ::OrderBy(QQ::Virtual($strAttribute));

                                                StaticAccess

                                                Since: 1.4.0

                                                Static access causes unexchangeable dependencies to other classes and leads to hard to test code. Avoid using static access at all costs and instead inject dependencies through the constructor. The only case when static access is acceptable is when used for factory methods.

                                                Example

                                                class Foo
                                                {
                                                    public function bar()
                                                    {
                                                        Bar::baz();
                                                    }
                                                }

                                                Source https://phpmd.org/rules/cleancode.html#staticaccess

                                                Avoid assigning values to variables in if clauses and the like (line '1471', column '10').
                                                Open

                                                        protected static function GetObjectValue ($mixSpec, $item) {
                                                            if (is_array($mixSpec)) {
                                                                if (is_object($mixSpec[0]) && is_callable($mixSpec)) {
                                                                    // If its a callable array, then call it
                                                                    return call_user_func($mixSpec, $item);

                                                IfStatementAssignment

                                                Since: 2.7.0

                                                Assignments in if clauses and the like are considered a code smell. Assignments in PHP return the right operand as their result. In many cases, this is an expected behavior, but can lead to many difficult to spot bugs, especially when the right operand could result in zero, null or an empty string and the like.

                                                Example

                                                class Foo
                                                {
                                                    public function bar($flag)
                                                    {
                                                        if ($foo = 'bar') { // possible typo
                                                            // ...
                                                        }
                                                        if ($baz = 0) { // always false
                                                            // ...
                                                        }
                                                    }
                                                }

                                                Source http://phpmd.org/rules/cleancode.html#ifstatementassignment

                                                The method GetObjectValue uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them.
                                                Open

                                                                        } else {
                                                                            $value = $value->$part;
                                                                        }

                                                ElseExpression

                                                Since: 1.4.0

                                                An if expression with an else branch is basically not necessary. You can rewrite the conditions in a way that the else clause is not necessary and the code becomes simpler to read. To achieve this, use early return statements, though you may need to split the code it several smaller methods. For very simple assignments you could also use the ternary operations.

                                                Example

                                                class Foo
                                                {
                                                    public function bar($flag)
                                                    {
                                                        if ($flag) {
                                                            // one branch
                                                        } else {
                                                            // another branch
                                                        }
                                                    }
                                                }

                                                Source https://phpmd.org/rules/cleancode.html#elseexpression

                                                Avoid using static access to class 'QControl' in method 'Wakeup'.
                                                Open

                                                            $this->callback = QControl::WakeupHelper($objForm, $this->callback);

                                                StaticAccess

                                                Since: 1.4.0

                                                Static access causes unexchangeable dependencies to other classes and leads to hard to test code. Avoid using static access at all costs and instead inject dependencies through the constructor. The only case when static access is acceptable is when used for factory methods.

                                                Example

                                                class Foo
                                                {
                                                    public function bar()
                                                    {
                                                        Bar::baz();
                                                    }
                                                }

                                                Source https://phpmd.org/rules/cleancode.html#staticaccess

                                                The method SplitSpec uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them.
                                                Open

                                                                else {
                                                                    return $mixSpec;
                                                                }

                                                ElseExpression

                                                Since: 1.4.0

                                                An if expression with an else branch is basically not necessary. You can rewrite the conditions in a way that the else clause is not necessary and the code becomes simpler to read. To achieve this, use early return statements, though you may need to split the code it several smaller methods. For very simple assignments you could also use the ternary operations.

                                                Example

                                                class Foo
                                                {
                                                    public function bar($flag)
                                                    {
                                                        if ($flag) {
                                                            // one branch
                                                        } else {
                                                            // another branch
                                                        }
                                                    }
                                                }

                                                Source https://phpmd.org/rules/cleancode.html#elseexpression

                                                The method FetchCellValue uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them.
                                                Open

                                                                else {
                                                                    $getVars = $this->getVars; // could be a simple action parameter.
                                                                }

                                                ElseExpression

                                                Since: 1.4.0

                                                An if expression with an else branch is basically not necessary. You can rewrite the conditions in a way that the else clause is not necessary and the code becomes simpler to read. To achieve this, use early return statements, though you may need to split the code it several smaller methods. For very simple assignments you could also use the ternary operations.

                                                Example

                                                class Foo
                                                {
                                                    public function bar($flag)
                                                    {
                                                        if ($flag) {
                                                            // one branch
                                                        } else {
                                                            // another branch
                                                        }
                                                    }
                                                }

                                                Source https://phpmd.org/rules/cleancode.html#elseexpression

                                                Avoid using static access to class 'QControl' in method 'Wakeup'.
                                                Open

                                                            $this->mixDestination = QControl::WakeupHelper($objForm, $this->mixDestination);

                                                StaticAccess

                                                Since: 1.4.0

                                                Static access causes unexchangeable dependencies to other classes and leads to hard to test code. Avoid using static access at all costs and instead inject dependencies through the constructor. The only case when static access is acceptable is when used for factory methods.

                                                Example

                                                class Foo
                                                {
                                                    public function bar()
                                                    {
                                                        Bar::baz();
                                                    }
                                                }

                                                Source https://phpmd.org/rules/cleancode.html#staticaccess

                                                The method __set uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them.
                                                Open

                                                                    } else {
                                                                        $this->mixDestination = self::SplitSpec($mixValue);
                                                                    }

                                                ElseExpression

                                                Since: 1.4.0

                                                An if expression with an else branch is basically not necessary. You can rewrite the conditions in a way that the else clause is not necessary and the code becomes simpler to read. To achieve this, use early return statements, though you may need to split the code it several smaller methods. For very simple assignments you could also use the ternary operations.

                                                Example

                                                class Foo
                                                {
                                                    public function bar($flag)
                                                    {
                                                        if ($flag) {
                                                            // one branch
                                                        } else {
                                                            // another branch
                                                        }
                                                    }
                                                }

                                                Source https://phpmd.org/rules/cleancode.html#elseexpression

                                                Avoid using static access to class 'QType' in method '__set'.
                                                Open

                                                                        $this->strProperty = QType::Cast($mixValue, QType::String);

                                                StaticAccess

                                                Since: 1.4.0

                                                Static access causes unexchangeable dependencies to other classes and leads to hard to test code. Avoid using static access at all costs and instead inject dependencies through the constructor. The only case when static access is acceptable is when used for factory methods.

                                                Example

                                                class Foo
                                                {
                                                    public function bar()
                                                    {
                                                        Bar::baz();
                                                    }
                                                }

                                                Source https://phpmd.org/rules/cleancode.html#staticaccess

                                                Avoid using static access to class 'QType' in method '__set'.
                                                Open

                                                                    $this->callback = QType::Cast($mixValue, QType::CallableType);

                                                StaticAccess

                                                Since: 1.4.0

                                                Static access causes unexchangeable dependencies to other classes and leads to hard to test code. Avoid using static access at all costs and instead inject dependencies through the constructor. The only case when static access is acceptable is when used for factory methods.

                                                Example

                                                class Foo
                                                {
                                                    public function bar()
                                                    {
                                                        Bar::baz();
                                                    }
                                                }

                                                Source https://phpmd.org/rules/cleancode.html#staticaccess

                                                The method FetchHeaderCellValue uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them.
                                                Open

                                                            } else {
                                                                return $this->Name;
                                                            }

                                                ElseExpression

                                                Since: 1.4.0

                                                An if expression with an else branch is basically not necessary. You can rewrite the conditions in a way that the else clause is not necessary and the code becomes simpler to read. To achieve this, use early return statements, though you may need to split the code it several smaller methods. For very simple assignments you could also use the ternary operations.

                                                Example

                                                class Foo
                                                {
                                                    public function bar($flag)
                                                    {
                                                        if ($flag) {
                                                            // one branch
                                                        } else {
                                                            // another branch
                                                        }
                                                    }
                                                }

                                                Source https://phpmd.org/rules/cleancode.html#elseexpression

                                                Avoid using static access to class 'QControl' in method 'Wakeup'.
                                                Open

                                                            $this->checkParamCallback = QControl::WakeupHelper($objForm, $this->checkParamCallback);

                                                StaticAccess

                                                Since: 1.4.0

                                                Static access causes unexchangeable dependencies to other classes and leads to hard to test code. Avoid using static access at all costs and instead inject dependencies through the constructor. The only case when static access is acceptable is when used for factory methods.

                                                Example

                                                class Foo
                                                {
                                                    public function bar()
                                                    {
                                                        Bar::baz();
                                                    }
                                                }

                                                Source https://phpmd.org/rules/cleancode.html#staticaccess

                                                Avoid using static access to class 'QControl' in method 'Sleep'.
                                                Open

                                                            $this->mixDestination = QControl::SleepHelper($this->mixDestination);

                                                StaticAccess

                                                Since: 1.4.0

                                                Static access causes unexchangeable dependencies to other classes and leads to hard to test code. Avoid using static access at all costs and instead inject dependencies through the constructor. The only case when static access is acceptable is when used for factory methods.

                                                Example

                                                class Foo
                                                {
                                                    public function bar()
                                                    {
                                                        Bar::baz();
                                                    }
                                                }

                                                Source https://phpmd.org/rules/cleancode.html#staticaccess

                                                The method FetchCellObject uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them.
                                                Open

                                                            } else {
                                                                return '';
                                                            }

                                                ElseExpression

                                                Since: 1.4.0

                                                An if expression with an else branch is basically not necessary. You can rewrite the conditions in a way that the else clause is not necessary and the code becomes simpler to read. To achieve this, use early return statements, though you may need to split the code it several smaller methods. For very simple assignments you could also use the ternary operations.

                                                Example

                                                class Foo
                                                {
                                                    public function bar($flag)
                                                    {
                                                        if ($flag) {
                                                            // one branch
                                                        } else {
                                                            // another branch
                                                        }
                                                    }
                                                }

                                                Source https://phpmd.org/rules/cleancode.html#elseexpression

                                                The method SplitSpec uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them.
                                                Open

                                                            } else {
                                                                return $mixSpec;
                                                            }

                                                ElseExpression

                                                Since: 1.4.0

                                                An if expression with an else branch is basically not necessary. You can rewrite the conditions in a way that the else clause is not necessary and the code becomes simpler to read. To achieve this, use early return statements, though you may need to split the code it several smaller methods. For very simple assignments you could also use the ternary operations.

                                                Example

                                                class Foo
                                                {
                                                    public function bar($flag)
                                                    {
                                                        if ($flag) {
                                                            // one branch
                                                        } else {
                                                            // another branch
                                                        }
                                                    }
                                                }

                                                Source https://phpmd.org/rules/cleancode.html#elseexpression

                                                The method FetchCellValue uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them.
                                                Open

                                                                } else {
                                                                    return $this->mixDestination->RenderAsLink($strText, $getVars, $tagAttributes);
                                                                }

                                                ElseExpression

                                                Since: 1.4.0

                                                An if expression with an else branch is basically not necessary. You can rewrite the conditions in a way that the else clause is not necessary and the code becomes simpler to read. To achieve this, use early return statements, though you may need to split the code it several smaller methods. For very simple assignments you could also use the ternary operations.

                                                Example

                                                class Foo
                                                {
                                                    public function bar($flag)
                                                    {
                                                        if ($flag) {
                                                            // one branch
                                                        } else {
                                                            // another branch
                                                        }
                                                    }
                                                }

                                                Source https://phpmd.org/rules/cleancode.html#elseexpression

                                                Avoid using static access to class 'QControl' in method 'Sleep'.
                                                Open

                                                            $this->checkParamCallback = QControl::SleepHelper($this->checkParamCallback);

                                                StaticAccess

                                                Since: 1.4.0

                                                Static access causes unexchangeable dependencies to other classes and leads to hard to test code. Avoid using static access at all costs and instead inject dependencies through the constructor. The only case when static access is acceptable is when used for factory methods.

                                                Example

                                                class Foo
                                                {
                                                    public function bar()
                                                    {
                                                        Bar::baz();
                                                    }
                                                }

                                                Source https://phpmd.org/rules/cleancode.html#staticaccess

                                                Avoid using static access to class 'QHtml' in method 'FetchCellValue'.
                                                Open

                                                                return QHtml::RenderLink(QHtml::MakeUrl($strDestination, $getVars), $strText, $tagAttributes);

                                                StaticAccess

                                                Since: 1.4.0

                                                Static access causes unexchangeable dependencies to other classes and leads to hard to test code. Avoid using static access at all costs and instead inject dependencies through the constructor. The only case when static access is acceptable is when used for factory methods.

                                                Example

                                                class Foo
                                                {
                                                    public function bar()
                                                    {
                                                        Bar::baz();
                                                    }
                                                }

                                                Source https://phpmd.org/rules/cleancode.html#staticaccess

                                                Avoid using static access to class 'QType' in method '__set'.
                                                Open

                                                                        $this->blnAsButton = QType::Cast($mixValue, QType::Boolean);

                                                StaticAccess

                                                Since: 1.4.0

                                                Static access causes unexchangeable dependencies to other classes and leads to hard to test code. Avoid using static access at all costs and instead inject dependencies through the constructor. The only case when static access is acceptable is when used for factory methods.

                                                Example

                                                class Foo
                                                {
                                                    public function bar()
                                                    {
                                                        Bar::baz();
                                                    }
                                                }

                                                Source https://phpmd.org/rules/cleancode.html#staticaccess

                                                Avoid assigning values to variables in if clauses and the like (line '1127', column '8').
                                                Open

                                                        public function GetCheckboxParams ($item) {
                                                            $aParams = array();
                                                            
                                                            if ($strId = $this->GetCheckboxId ($item)) {
                                                                $aParams['id'] = $strId;

                                                IfStatementAssignment

                                                Since: 2.7.0

                                                Assignments in if clauses and the like are considered a code smell. Assignments in PHP return the right operand as their result. In many cases, this is an expected behavior, but can lead to many difficult to spot bugs, especially when the right operand could result in zero, null or an empty string and the like.

                                                Example

                                                class Foo
                                                {
                                                    public function bar($flag)
                                                    {
                                                        if ($foo = 'bar') { // possible typo
                                                            // ...
                                                        }
                                                        if ($baz = 0) { // always false
                                                            // ...
                                                        }
                                                    }
                                                }

                                                Source http://phpmd.org/rules/cleancode.html#ifstatementassignment

                                                The method FetchCellValue uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them.
                                                Open

                                                            else {
                                                                $strDestination = static::GetObjectValue($this->mixDestination, $item);
                                                                return QHtml::RenderLink(QHtml::MakeUrl($strDestination, $getVars), $strText, $tagAttributes);
                                                            }

                                                ElseExpression

                                                Since: 1.4.0

                                                An if expression with an else branch is basically not necessary. You can rewrite the conditions in a way that the else clause is not necessary and the code becomes simpler to read. To achieve this, use early return statements, though you may need to split the code it several smaller methods. For very simple assignments you could also use the ternary operations.

                                                Example

                                                class Foo
                                                {
                                                    public function bar($flag)
                                                    {
                                                        if ($flag) {
                                                            // one branch
                                                        } else {
                                                            // another branch
                                                        }
                                                    }
                                                }

                                                Source https://phpmd.org/rules/cleancode.html#elseexpression

                                                Avoid using static access to class 'QControl' in method 'Sleep'.
                                                Open

                                                            $this->getVars = QControl::SleepHelper($this->getVars);

                                                StaticAccess

                                                Since: 1.4.0

                                                Static access causes unexchangeable dependencies to other classes and leads to hard to test code. Avoid using static access at all costs and instead inject dependencies through the constructor. The only case when static access is acceptable is when used for factory methods.

                                                Example

                                                class Foo
                                                {
                                                    public function bar()
                                                    {
                                                        Bar::baz();
                                                    }
                                                }

                                                Source https://phpmd.org/rules/cleancode.html#staticaccess

                                                The method FetchCellValue uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them.
                                                Open

                                                                    else {
                                                                        // associative array, so likely these are Get variables to be assigned individually
                                                                        foreach ($this->getVars as $key => $val) {
                                                                            $getVars[$key] = static::GetObjectValue($val, $item);
                                                                        }

                                                ElseExpression

                                                Since: 1.4.0

                                                An if expression with an else branch is basically not necessary. You can rewrite the conditions in a way that the else clause is not necessary and the code becomes simpler to read. To achieve this, use early return statements, though you may need to split the code it several smaller methods. For very simple assignments you could also use the ternary operations.

                                                Example

                                                class Foo
                                                {
                                                    public function bar($flag)
                                                    {
                                                        if ($flag) {
                                                            // one branch
                                                        } else {
                                                            // another branch
                                                        }
                                                    }
                                                }

                                                Source https://phpmd.org/rules/cleancode.html#elseexpression

                                                Avoid using static access to class 'QControl' in method 'Wakeup'.
                                                Open

                                                            $this->mixText = QControl::WakeupHelper($objForm, $this->mixText);

                                                StaticAccess

                                                Since: 1.4.0

                                                Static access causes unexchangeable dependencies to other classes and leads to hard to test code. Avoid using static access at all costs and instead inject dependencies through the constructor. The only case when static access is acceptable is when used for factory methods.

                                                Example

                                                class Foo
                                                {
                                                    public function bar()
                                                    {
                                                        Bar::baz();
                                                    }
                                                }

                                                Source https://phpmd.org/rules/cleancode.html#staticaccess

                                                The method __set uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them.
                                                Open

                                                                        else {
                                                                            throw new Exception ("Invalid type");
                                                                        }

                                                ElseExpression

                                                Since: 1.4.0

                                                An if expression with an else branch is basically not necessary. You can rewrite the conditions in a way that the else clause is not necessary and the code becomes simpler to read. To achieve this, use early return statements, though you may need to split the code it several smaller methods. For very simple assignments you could also use the ternary operations.

                                                Example

                                                class Foo
                                                {
                                                    public function bar($flag)
                                                    {
                                                        if ($flag) {
                                                            // one branch
                                                        } else {
                                                            // another branch
                                                        }
                                                    }
                                                }

                                                Source https://phpmd.org/rules/cleancode.html#elseexpression

                                                The method __set uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them.
                                                Open

                                                                        else {
                                                                            throw new Exception ("Invalid type");
                                                                        }

                                                ElseExpression

                                                Since: 1.4.0

                                                An if expression with an else branch is basically not necessary. You can rewrite the conditions in a way that the else clause is not necessary and the code becomes simpler to read. To achieve this, use early return statements, though you may need to split the code it several smaller methods. For very simple assignments you could also use the ternary operations.

                                                Example

                                                class Foo
                                                {
                                                    public function bar($flag)
                                                    {
                                                        if ($flag) {
                                                            // one branch
                                                        } else {
                                                            // another branch
                                                        }
                                                    }
                                                }

                                                Source https://phpmd.org/rules/cleancode.html#elseexpression

                                                Avoid using static access to class 'QQ' in method '__construct'.
                                                Open

                                                            $this->ReverseOrderByClause = QQ::OrderBy(QQ::Virtual($strAttribute), false);

                                                StaticAccess

                                                Since: 1.4.0

                                                Static access causes unexchangeable dependencies to other classes and leads to hard to test code. Avoid using static access at all costs and instead inject dependencies through the constructor. The only case when static access is acceptable is when used for factory methods.

                                                Example

                                                class Foo
                                                {
                                                    public function bar()
                                                    {
                                                        Bar::baz();
                                                    }
                                                }

                                                Source https://phpmd.org/rules/cleancode.html#staticaccess

                                                Avoid using static access to class 'QControl' in method 'Wakeup'.
                                                Open

                                                            $this->getVars = QControl::WakeupHelper($objForm, $this->getVars);

                                                StaticAccess

                                                Since: 1.4.0

                                                Static access causes unexchangeable dependencies to other classes and leads to hard to test code. Avoid using static access at all costs and instead inject dependencies through the constructor. The only case when static access is acceptable is when used for factory methods.

                                                Example

                                                class Foo
                                                {
                                                    public function bar()
                                                    {
                                                        Bar::baz();
                                                    }
                                                }

                                                Source https://phpmd.org/rules/cleancode.html#staticaccess

                                                Avoid using static access to class 'QQ' in method '__construct'.
                                                Open

                                                            $this->OrderByClause = QQ::OrderBy($objSortNodes);

                                                StaticAccess

                                                Since: 1.4.0

                                                Static access causes unexchangeable dependencies to other classes and leads to hard to test code. Avoid using static access at all costs and instead inject dependencies through the constructor. The only case when static access is acceptable is when used for factory methods.

                                                Example

                                                class Foo
                                                {
                                                    public function bar()
                                                    {
                                                        Bar::baz();
                                                    }
                                                }

                                                Source https://phpmd.org/rules/cleancode.html#staticaccess

                                                Avoid using static access to class 'QType' in method '__set'.
                                                Open

                                                                        $this->blnShowCheckAll = QType::Cast($mixValue, QType::Boolean);

                                                StaticAccess

                                                Since: 1.4.0

                                                Static access causes unexchangeable dependencies to other classes and leads to hard to test code. Avoid using static access at all costs and instead inject dependencies through the constructor. The only case when static access is acceptable is when used for factory methods.

                                                Example

                                                class Foo
                                                {
                                                    public function bar()
                                                    {
                                                        Bar::baz();
                                                    }
                                                }

                                                Source https://phpmd.org/rules/cleancode.html#staticaccess

                                                Avoid using static access to class 'QHtml' in method 'FetchCellValue'.
                                                Open

                                                                return QHtml::RenderLink(QHtml::MakeUrl($strDestination, $getVars), $strText, $tagAttributes);

                                                StaticAccess

                                                Since: 1.4.0

                                                Static access causes unexchangeable dependencies to other classes and leads to hard to test code. Avoid using static access at all costs and instead inject dependencies through the constructor. The only case when static access is acceptable is when used for factory methods.

                                                Example

                                                class Foo
                                                {
                                                    public function bar()
                                                    {
                                                        Bar::baz();
                                                    }
                                                }

                                                Source https://phpmd.org/rules/cleancode.html#staticaccess

                                                Avoid using static access to class 'QType' in method '__set'.
                                                Open

                                                                        $this->strFormat = QType::Cast($mixValue, QType::String);

                                                StaticAccess

                                                Since: 1.4.0

                                                Static access causes unexchangeable dependencies to other classes and leads to hard to test code. Avoid using static access at all costs and instead inject dependencies through the constructor. The only case when static access is acceptable is when used for factory methods.

                                                Example

                                                class Foo
                                                {
                                                    public function bar()
                                                    {
                                                        Bar::baz();
                                                    }
                                                }

                                                Source https://phpmd.org/rules/cleancode.html#staticaccess

                                                Avoid using static access to class 'QType' in method '__set'.
                                                Open

                                                                    $this->strAttribute = QType::Cast ($mixValue, QType::String);

                                                StaticAccess

                                                Since: 1.4.0

                                                Static access causes unexchangeable dependencies to other classes and leads to hard to test code. Avoid using static access at all costs and instead inject dependencies through the constructor. The only case when static access is acceptable is when used for factory methods.

                                                Example

                                                class Foo
                                                {
                                                    public function bar()
                                                    {
                                                        Bar::baz();
                                                    }
                                                }

                                                Source https://phpmd.org/rules/cleancode.html#staticaccess

                                                Avoid using static access to class 'QControl' in method 'Wakeup'.
                                                Open

                                                            $this->tagAttributes = QControl::WakeupHelper($objForm, $this->tagAttributes);

                                                StaticAccess

                                                Since: 1.4.0

                                                Static access causes unexchangeable dependencies to other classes and leads to hard to test code. Avoid using static access at all costs and instead inject dependencies through the constructor. The only case when static access is acceptable is when used for factory methods.

                                                Example

                                                class Foo
                                                {
                                                    public function bar()
                                                    {
                                                        Bar::baz();
                                                    }
                                                }

                                                Source https://phpmd.org/rules/cleancode.html#staticaccess

                                                Avoid using static access to class 'QControl' in method 'Sleep'.
                                                Open

                                                            $this->callback = QControl::SleepHelper($this->callback);

                                                StaticAccess

                                                Since: 1.4.0

                                                Static access causes unexchangeable dependencies to other classes and leads to hard to test code. Avoid using static access at all costs and instead inject dependencies through the constructor. The only case when static access is acceptable is when used for factory methods.

                                                Example

                                                class Foo
                                                {
                                                    public function bar()
                                                    {
                                                        Bar::baz();
                                                    }
                                                }

                                                Source https://phpmd.org/rules/cleancode.html#staticaccess

                                                The method GetObjectValue uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them.
                                                Open

                                                                else {
                                                                    return $value;
                                                                }

                                                ElseExpression

                                                Since: 1.4.0

                                                An if expression with an else branch is basically not necessary. You can rewrite the conditions in a way that the else clause is not necessary and the code becomes simpler to read. To achieve this, use early return statements, though you may need to split the code it several smaller methods. For very simple assignments you could also use the ternary operations.

                                                Example

                                                class Foo
                                                {
                                                    public function bar($flag)
                                                    {
                                                        if ($flag) {
                                                            // one branch
                                                        } else {
                                                            // another branch
                                                        }
                                                    }
                                                }

                                                Source https://phpmd.org/rules/cleancode.html#elseexpression

                                                Avoid using static access to class 'QQ' in method '__construct'.
                                                Open

                                                            $this->ReverseOrderByClause = QQ::OrderBy(QQ::Virtual($strAttribute), false);

                                                StaticAccess

                                                Since: 1.4.0

                                                Static access causes unexchangeable dependencies to other classes and leads to hard to test code. Avoid using static access at all costs and instead inject dependencies through the constructor. The only case when static access is acceptable is when used for factory methods.

                                                Example

                                                class Foo
                                                {
                                                    public function bar()
                                                    {
                                                        Bar::baz();
                                                    }
                                                }

                                                Source https://phpmd.org/rules/cleancode.html#staticaccess

                                                Avoid assigning values to variables in if clauses and the like (line '1119', column '8').
                                                Open

                                                        public function GetCheckboxParams ($item) {
                                                            $aParams = array();
                                                            
                                                            if ($strId = $this->GetCheckboxId ($item)) {
                                                                $aParams['id'] = $strId;

                                                IfStatementAssignment

                                                Since: 2.7.0

                                                Assignments in if clauses and the like are considered a code smell. Assignments in PHP return the right operand as their result. In many cases, this is an expected behavior, but can lead to many difficult to spot bugs, especially when the right operand could result in zero, null or an empty string and the like.

                                                Example

                                                class Foo
                                                {
                                                    public function bar($flag)
                                                    {
                                                        if ($foo = 'bar') { // possible typo
                                                            // ...
                                                        }
                                                        if ($baz = 0) { // always false
                                                            // ...
                                                        }
                                                    }
                                                }

                                                Source http://phpmd.org/rules/cleancode.html#ifstatementassignment

                                                The method GetObjectValue uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them.
                                                Open

                                                                else {
                                                                    return $item; // We have no idea what this is, so return the item for possible further processing
                                                                }

                                                ElseExpression

                                                Since: 1.4.0

                                                An if expression with an else branch is basically not necessary. You can rewrite the conditions in a way that the else clause is not necessary and the code becomes simpler to read. To achieve this, use early return statements, though you may need to split the code it several smaller methods. For very simple assignments you could also use the ternary operations.

                                                Example

                                                class Foo
                                                {
                                                    public function bar($flag)
                                                    {
                                                        if ($flag) {
                                                            // one branch
                                                        } else {
                                                            // another branch
                                                        }
                                                    }
                                                }

                                                Source https://phpmd.org/rules/cleancode.html#elseexpression

                                                Avoid using static access to class 'QControl' in method 'Sleep'.
                                                Open

                                                            $this->mixText = QControl::SleepHelper($this->mixText);

                                                StaticAccess

                                                Since: 1.4.0

                                                Static access causes unexchangeable dependencies to other classes and leads to hard to test code. Avoid using static access at all costs and instead inject dependencies through the constructor. The only case when static access is acceptable is when used for factory methods.

                                                Example

                                                class Foo
                                                {
                                                    public function bar()
                                                    {
                                                        Bar::baz();
                                                    }
                                                }

                                                Source https://phpmd.org/rules/cleancode.html#staticaccess

                                                Avoid using static access to class 'QControl' in method 'Sleep'.
                                                Open

                                                            $this->tagAttributes = QControl::SleepHelper($this->tagAttributes);

                                                StaticAccess

                                                Since: 1.4.0

                                                Static access causes unexchangeable dependencies to other classes and leads to hard to test code. Avoid using static access at all costs and instead inject dependencies through the constructor. The only case when static access is acceptable is when used for factory methods.

                                                Example

                                                class Foo
                                                {
                                                    public function bar()
                                                    {
                                                        Bar::baz();
                                                    }
                                                }

                                                Source https://phpmd.org/rules/cleancode.html#staticaccess

                                                Avoid using static access to class 'QControl' in method 'Sleep'.
                                                Open

                                                            $this->objPostCallback = QControl::SleepHelper($this->objPostCallback);

                                                StaticAccess

                                                Since: 1.4.0

                                                Static access causes unexchangeable dependencies to other classes and leads to hard to test code. Avoid using static access at all costs and instead inject dependencies through the constructor. The only case when static access is acceptable is when used for factory methods.

                                                Example

                                                class Foo
                                                {
                                                    public function bar()
                                                    {
                                                        Bar::baz();
                                                    }
                                                }

                                                Source https://phpmd.org/rules/cleancode.html#staticaccess

                                                Avoid unused parameters such as '$item'.
                                                Open

                                                        protected function GetCellStyle ($item) {

                                                UnusedFormalParameter

                                                Since: 0.2

                                                Avoid passing parameters to methods or constructors and then not using those parameters.

                                                Example

                                                class Foo
                                                {
                                                    private function bar($howdy)
                                                    {
                                                        // $howdy is not used
                                                    }
                                                }

                                                Source https://phpmd.org/rules/unusedcode.html#unusedformalparameter

                                                Avoid unused parameters such as '$item'.
                                                Open

                                                        protected function GetCellClass ($item) {

                                                UnusedFormalParameter

                                                Since: 0.2

                                                Avoid passing parameters to methods or constructors and then not using those parameters.

                                                Example

                                                class Foo
                                                {
                                                    private function bar($howdy)
                                                    {
                                                        // $howdy is not used
                                                    }
                                                }

                                                Source https://phpmd.org/rules/unusedcode.html#unusedformalparameter

                                                Avoid unused parameters such as '$item'.
                                                Open

                                                        protected function GetCellId ($item) {

                                                UnusedFormalParameter

                                                Since: 0.2

                                                Avoid passing parameters to methods or constructors and then not using those parameters.

                                                Example

                                                class Foo
                                                {
                                                    private function bar($howdy)
                                                    {
                                                        // $howdy is not used
                                                    }
                                                }

                                                Source https://phpmd.org/rules/unusedcode.html#unusedformalparameter

                                                Avoid unused parameters such as '$item'.
                                                Open

                                                        protected function IsChecked ($item) {

                                                UnusedFormalParameter

                                                Since: 0.2

                                                Avoid passing parameters to methods or constructors and then not using those parameters.

                                                Example

                                                class Foo
                                                {
                                                    private function bar($howdy)
                                                    {
                                                        // $howdy is not used
                                                    }
                                                }

                                                Source https://phpmd.org/rules/unusedcode.html#unusedformalparameter

                                                Avoid unused parameters such as '$item'.
                                                Open

                                                        protected function GetCheckboxName ($item) {

                                                UnusedFormalParameter

                                                Since: 0.2

                                                Avoid passing parameters to methods or constructors and then not using those parameters.

                                                Example

                                                class Foo
                                                {
                                                    private function bar($howdy)
                                                    {
                                                        // $howdy is not used
                                                    }
                                                }

                                                Source https://phpmd.org/rules/unusedcode.html#unusedformalparameter

                                                Avoid unused parameters such as '$item'.
                                                Open

                                                        protected function GetCheckboxId ($item) {

                                                UnusedFormalParameter

                                                Since: 0.2

                                                Avoid passing parameters to methods or constructors and then not using those parameters.

                                                Example

                                                class Foo
                                                {
                                                    private function bar($howdy)
                                                    {
                                                        // $howdy is not used
                                                    }
                                                }

                                                Source https://phpmd.org/rules/unusedcode.html#unusedformalparameter

                                                Avoid unused parameters such as '$item'.
                                                Open

                                                        protected function GetCheckboxValue ($item) {

                                                UnusedFormalParameter

                                                Since: 0.2

                                                Avoid passing parameters to methods or constructors and then not using those parameters.

                                                Example

                                                class Foo
                                                {
                                                    private function bar($howdy)
                                                    {
                                                        // $howdy is not used
                                                    }
                                                }

                                                Source https://phpmd.org/rules/unusedcode.html#unusedformalparameter

                                                Avoid excessively long variable names like $objReverseOrderByClause. Keep variable name length under 20.
                                                Open

                                                        protected $objReverseOrderByClause = null;

                                                LongVariable

                                                Since: 0.2

                                                Detects when a field, formal or local variable is declared with a long name.

                                                Example

                                                class Something {
                                                    protected $reallyLongIntName = -3; // VIOLATION - Field
                                                    public static function main( array $interestingArgumentsList[] ) { // VIOLATION - Formal
                                                        $otherReallyLongName = -5; // VIOLATION - Local
                                                        for ($interestingIntIndex = 0; // VIOLATION - For
                                                             $interestingIntIndex < 10;
                                                             $interestingIntIndex++ ) {
                                                        }
                                                    }
                                                }

                                                Source https://phpmd.org/rules/naming.html#longvariable

                                                Avoid variables with short names like $a. Configured minimum length is 3.
                                                Open

                                                                $a = call_user_func($this->cellParamsCallback, $item);

                                                ShortVariable

                                                Since: 0.2

                                                Detects when a field, local, or parameter has a very short name.

                                                Example

                                                class Something {
                                                    private $q = 15; // VIOLATION - Field
                                                    public static function main( array $as ) { // VIOLATION - Formal
                                                        $r = 20 + $this->q; // VIOLATION - Local
                                                        for (int $i = 0; $i < 10; $i++) { // Not a Violation (inside FOR)
                                                            $r += $this->q;
                                                        }
                                                    }
                                                }

                                                Source https://phpmd.org/rules/naming.html#shortvariable

                                                Avoid variables with short names like $a. Configured minimum length is 3.
                                                Open

                                                                $a = call_user_func($this->checkParamCallback, $item);

                                                ShortVariable

                                                Since: 0.2

                                                Detects when a field, local, or parameter has a very short name.

                                                Example

                                                class Something {
                                                    private $q = 15; // VIOLATION - Field
                                                    public static function main( array $as ) { // VIOLATION - Formal
                                                        $r = 20 + $this->q; // VIOLATION - Local
                                                        for (int $i = 0; $i < 10; $i++) { // Not a Violation (inside FOR)
                                                            $r += $this->q;
                                                        }
                                                    }
                                                }

                                                Source https://phpmd.org/rules/naming.html#shortvariable

                                                The class QHtmlTableCheckBoxColumn_ClickEvent is not named in CamelCase.
                                                Open

                                                    class QHtmlTableCheckBoxColumn_ClickEvent extends QClickEvent {
                                                        const JsReturnParam = '{"row": $j(this).closest("tr")[0].rowIndex, "col": $j(this).closest("th,td")[0].cellIndex, "checked":this.checked, "id":this.id}'; // returns the array of cell info, and the new state of the checkbox
                                                
                                                        public function __construct($intDelay = 0, $strCondition = null) {
                                                            parent::__construct($intDelay, $strCondition, 'input[type="checkbox"]');

                                                CamelCaseClassName

                                                Since: 0.2

                                                It is considered best practice to use the CamelCase notation to name classes.

                                                Example

                                                class class_name {
                                                }

                                                Source

                                                Constant JsReturnParam should be defined in uppercase
                                                Open

                                                        const JsReturnParam = '{"row": $j(this).closest("tr")[0].rowIndex, "col": $j(this).closest("th,td")[0].cellIndex, "checked":this.checked, "id":this.id}'; // returns the array of cell info, and the new state of the checkbox

                                                ConstantNamingConventions

                                                Since: 0.2

                                                Class/Interface constant names should always be defined in uppercase.

                                                Example

                                                class Foo {
                                                    const MY_NUM = 0; // ok
                                                    const myTest = ""; // fail
                                                }

                                                Source https://phpmd.org/rules/naming.html#constantnamingconventions

                                                The method GetCellParams is not named in camelCase.
                                                Open

                                                        protected function GetCellParams ($item) {
                                                            $aParams = array();
                                                
                                                            if ($strClass = $this->GetCellClass ($item)) {
                                                                $aParams['class'] = $strClass;

                                                CamelCaseMethodName

                                                Since: 0.2

                                                It is considered best practice to use the camelCase notation to name methods.

                                                Example

                                                class ClassName {
                                                    public function get_name() {
                                                    }
                                                }

                                                Source

                                                The method FetchCellObject is not named in camelCase.
                                                Open

                                                        abstract public function FetchCellObject($item);

                                                CamelCaseMethodName

                                                Since: 0.2

                                                It is considered best practice to use the camelCase notation to name methods.

                                                Example

                                                class ClassName {
                                                    public function get_name() {
                                                    }
                                                }

                                                Source

                                                The method GetColParams is not named in camelCase.
                                                Open

                                                        protected function GetColParams () {
                                                            $aParams = array();
                                                            if ($this->intSpan > 1) {
                                                                $aParams['span'] = $this->intSpan;
                                                            }

                                                CamelCaseMethodName

                                                Since: 0.2

                                                It is considered best practice to use the camelCase notation to name methods.

                                                Example

                                                class ClassName {
                                                    public function get_name() {
                                                    }
                                                }

                                                Source

                                                The method FetchHeaderCellValue is not named in camelCase.
                                                Open

                                                        public function FetchHeaderCellValue() {
                                                            return $this->strName;
                                                        }

                                                CamelCaseMethodName

                                                Since: 0.2

                                                It is considered best practice to use the camelCase notation to name methods.

                                                Example

                                                class ClassName {
                                                    public function get_name() {
                                                    }
                                                }

                                                Source

                                                The method FetchCellValue is not named in camelCase.
                                                Open

                                                        public function FetchCellValue($item) {
                                                            $cellValue = $this->FetchCellObject($item);
                                                                        
                                                            if ($cellValue !== null && $this->strPostMethod) {
                                                                $strPostMethod = $this->strPostMethod;

                                                CamelCaseMethodName

                                                Since: 0.2

                                                It is considered best practice to use the camelCase notation to name methods.

                                                Example

                                                class ClassName {
                                                    public function get_name() {
                                                    }
                                                }

                                                Source

                                                The method FetchCellObject is not named in camelCase.
                                                Open

                                                        public function FetchCellObject($item) {
                                                            if (isset ($item[$this->mixIndex])) {
                                                                return $item[$this->mixIndex];
                                                            } else {
                                                                return '';

                                                CamelCaseMethodName

                                                Since: 0.2

                                                It is considered best practice to use the camelCase notation to name methods.

                                                Example

                                                class ClassName {
                                                    public function get_name() {
                                                    }
                                                }

                                                Source

                                                The method GetCellId is not named in camelCase.
                                                Open

                                                        protected function GetCellId ($item) {
                                                            return '';
                                                        }

                                                CamelCaseMethodName

                                                Since: 0.2

                                                It is considered best practice to use the camelCase notation to name methods.

                                                Example

                                                class ClassName {
                                                    public function get_name() {
                                                    }
                                                }

                                                Source

                                                The method GetCellStyle is not named in camelCase.
                                                Open

                                                        protected function GetCellStyle ($item) {
                                                            return '';
                                                        }

                                                CamelCaseMethodName

                                                Since: 0.2

                                                It is considered best practice to use the camelCase notation to name methods.

                                                Example

                                                class ClassName {
                                                    public function get_name() {
                                                    }
                                                }

                                                Source

                                                The method RenderColTag is not named in camelCase.
                                                Open

                                                        public function RenderColTag() {
                                                            return QHtml::RenderTag('col', $this->GetColParams(), null, true);
                                                        }

                                                CamelCaseMethodName

                                                Since: 0.2

                                                It is considered best practice to use the camelCase notation to name methods.

                                                Example

                                                class ClassName {
                                                    public function get_name() {
                                                    }
                                                }

                                                Source

                                                The method RenderHeaderCell is not named in camelCase.
                                                Open

                                                        public function RenderHeaderCell() {
                                                            if (!$this->blnVisible) return '';
                                                
                                                            $cellValue = $this->FetchHeaderCellValue();
                                                            if ($this->blnHtmlEntities)

                                                CamelCaseMethodName

                                                Since: 0.2

                                                It is considered best practice to use the camelCase notation to name methods.

                                                Example

                                                class ClassName {
                                                    public function get_name() {
                                                    }
                                                }

                                                Source

                                                The method GetHeaderCellParams is not named in camelCase.
                                                Open

                                                        public function GetHeaderCellParams () {
                                                            $aParams['scope'] = 'col';
                                                            if ($this->strHeaderCssClass) {
                                                                $aParams['class'] = $this->strHeaderCssClass;
                                                            }

                                                CamelCaseMethodName

                                                Since: 0.2

                                                It is considered best practice to use the camelCase notation to name methods.

                                                Example

                                                class ClassName {
                                                    public function get_name() {
                                                    }
                                                }

                                                Source

                                                The method Wakeup is not named in camelCase.
                                                Open

                                                        public function Wakeup(QForm $objForm) {
                                                            parent::Wakeup($objForm);
                                                            $this->objPostCallback = QControl::WakeupHelper($objForm, $this->objPostCallback);
                                                        }

                                                CamelCaseMethodName

                                                Since: 0.2

                                                It is considered best practice to use the camelCase notation to name methods.

                                                Example

                                                class ClassName {
                                                    public function get_name() {
                                                    }
                                                }

                                                Source

                                                The method RenderCell is not named in camelCase.
                                                Open

                                                        public function RenderCell($item, $blnAsHeader = false) {
                                                            if (!$this->blnVisible) return '';
                                                
                                                            $cellValue = $this->FetchCellValue($item);
                                                            if ($this->blnHtmlEntities)

                                                CamelCaseMethodName

                                                Since: 0.2

                                                It is considered best practice to use the camelCase notation to name methods.

                                                Example

                                                class ClassName {
                                                    public function get_name() {
                                                    }
                                                }

                                                Source

                                                The method Sleep is not named in camelCase.
                                                Open

                                                        public function Sleep() {
                                                            $this->cellParamsCallback = QControl::SleepHelper($this->cellParamsCallback);
                                                        }

                                                CamelCaseMethodName

                                                Since: 0.2

                                                It is considered best practice to use the camelCase notation to name methods.

                                                Example

                                                class ClassName {
                                                    public function get_name() {
                                                    }
                                                }

                                                Source

                                                The method FetchCellObject is not named in camelCase.
                                                Open

                                                        public function FetchCellObject($item) {
                                                            if ($this->blnNullSafe && $item == null)
                                                                return null;
                                                            foreach ($this->strPropertiesArray as $strProperty) {
                                                                $item = $item->$strProperty;

                                                CamelCaseMethodName

                                                Since: 0.2

                                                It is considered best practice to use the camelCase notation to name methods.

                                                Example

                                                class ClassName {
                                                    public function get_name() {
                                                    }
                                                }

                                                Source

                                                The method GetCellClass is not named in camelCase.
                                                Open

                                                        protected function GetCellClass ($item) {
                                                            if ($this->strCssClass) {
                                                                return $this->strCssClass;
                                                            }
                                                            return '';

                                                CamelCaseMethodName

                                                Since: 0.2

                                                It is considered best practice to use the camelCase notation to name methods.

                                                Example

                                                class ClassName {
                                                    public function get_name() {
                                                    }
                                                }

                                                Source

                                                The method FetchCellValue is not named in camelCase.
                                                Open

                                                        abstract public function FetchCellValue($item);

                                                CamelCaseMethodName

                                                Since: 0.2

                                                It is considered best practice to use the camelCase notation to name methods.

                                                Example

                                                class ClassName {
                                                    public function get_name() {
                                                    }
                                                }

                                                Source

                                                The method Wakeup is not named in camelCase.
                                                Open

                                                        public function Wakeup(QForm $objForm) {
                                                            $this->cellParamsCallback = QControl::WakeupHelper($objForm, $this->cellParamsCallback);
                                                        }

                                                CamelCaseMethodName

                                                Since: 0.2

                                                It is considered best practice to use the camelCase notation to name methods.

                                                Example

                                                class ClassName {
                                                    public function get_name() {
                                                    }
                                                }

                                                Source

                                                The method Sleep is not named in camelCase.
                                                Open

                                                        public function Sleep() {
                                                            $this->objPostCallback = QControl::SleepHelper($this->objPostCallback);
                                                            parent::Sleep();
                                                        }

                                                CamelCaseMethodName

                                                Since: 0.2

                                                It is considered best practice to use the camelCase notation to name methods.

                                                Example

                                                class ClassName {
                                                    public function get_name() {
                                                    }
                                                }

                                                Source

                                                The method ParsePostData is not named in camelCase.
                                                Open

                                                        public function ParsePostData() {
                                                        }

                                                CamelCaseMethodName

                                                Since: 0.2

                                                It is considered best practice to use the camelCase notation to name methods.

                                                Example

                                                class ClassName {
                                                    public function get_name() {
                                                    }
                                                }

                                                Source

                                                The method IsChecked is not named in camelCase.
                                                Open

                                                        protected function IsChecked ($item) {
                                                            return false;
                                                        }

                                                CamelCaseMethodName

                                                Since: 0.2

                                                It is considered best practice to use the camelCase notation to name methods.

                                                Example

                                                class ClassName {
                                                    public function get_name() {
                                                    }
                                                }

                                                Source

                                                The method GetObjectValue is not named in camelCase.
                                                Open

                                                        protected static function GetObjectValue ($mixSpec, $item) {
                                                            if (is_array($mixSpec)) {
                                                                if (is_object($mixSpec[0]) && is_callable($mixSpec)) {
                                                                    // If its a callable array, then call it
                                                                    return call_user_func($mixSpec, $item);

                                                CamelCaseMethodName

                                                Since: 0.2

                                                It is considered best practice to use the camelCase notation to name methods.

                                                Example

                                                class ClassName {
                                                    public function get_name() {
                                                    }
                                                }

                                                Source

                                                The method FetchCellValue is not named in camelCase.
                                                Open

                                                        public function FetchCellValue($item) {
                                                            $strText = parent::FetchCellValue($item);    // allow post processing of cell label
                                                
                                                            $getVars = null;
                                                            if ($this->getVars) {

                                                CamelCaseMethodName

                                                Since: 0.2

                                                It is considered best practice to use the camelCase notation to name methods.

                                                Example

                                                class ClassName {
                                                    public function get_name() {
                                                    }
                                                }

                                                Source

                                                The method Sleep is not named in camelCase.
                                                Open

                                                        public function Sleep() {
                                                            $this->mixText = QControl::SleepHelper($this->mixText);
                                                            $this->mixDestination = QControl::SleepHelper($this->mixDestination);
                                                            $this->getVars = QControl::SleepHelper($this->getVars);
                                                            $this->tagAttributes = QControl::SleepHelper($this->tagAttributes);

                                                CamelCaseMethodName

                                                Since: 0.2

                                                It is considered best practice to use the camelCase notation to name methods.

                                                Example

                                                class ClassName {
                                                    public function get_name() {
                                                    }
                                                }

                                                Source

                                                The method FetchCellObject is not named in camelCase.
                                                Open

                                                        public function FetchCellObject($item) {
                                                            if ($this->mixParams) {
                                                                return call_user_func($this->callback, $item, $this->mixParams);
                                                            } else {
                                                                return call_user_func($this->callback, $item);

                                                CamelCaseMethodName

                                                Since: 0.2

                                                It is considered best practice to use the camelCase notation to name methods.

                                                Example

                                                class ClassName {
                                                    public function get_name() {
                                                    }
                                                }

                                                Source

                                                The method GetCheckboxValue is not named in camelCase.
                                                Open

                                                        protected function GetCheckboxValue ($item) {
                                                            return "1"; // Means that if the checkbox is checked, the POST value corresponding to the name of the checkbox will be 1.
                                                        }

                                                CamelCaseMethodName

                                                Since: 0.2

                                                It is considered best practice to use the camelCase notation to name methods.

                                                Example

                                                class ClassName {
                                                    public function get_name() {
                                                    }
                                                }

                                                Source

                                                The method GetCheckboxId is not named in camelCase.
                                                Open

                                                        protected function GetCheckboxId ($item) {
                                                            return null;
                                                        }

                                                CamelCaseMethodName

                                                Since: 0.2

                                                It is considered best practice to use the camelCase notation to name methods.

                                                Example

                                                class ClassName {
                                                    public function get_name() {
                                                    }
                                                }

                                                Source

                                                The method FetchCellObject is not named in camelCase.
                                                Open

                                                        public function FetchCellObject($item)
                                                        {
                                                            return static::GetObjectValue($this->mixText, $item);
                                                        }

                                                CamelCaseMethodName

                                                Since: 0.2

                                                It is considered best practice to use the camelCase notation to name methods.

                                                Example

                                                class ClassName {
                                                    public function get_name() {
                                                    }
                                                }

                                                Source

                                                The method Wakeup is not named in camelCase.
                                                Open

                                                        public function Wakeup(QForm $objForm) {
                                                            parent::Wakeup($objForm);
                                                            $this->mixText = QControl::WakeupHelper($objForm, $this->mixText);
                                                            $this->mixDestination = QControl::WakeupHelper($objForm, $this->mixDestination);
                                                            $this->getVars = QControl::WakeupHelper($objForm, $this->getVars);

                                                CamelCaseMethodName

                                                Since: 0.2

                                                It is considered best practice to use the camelCase notation to name methods.

                                                Example

                                                class ClassName {
                                                    public function get_name() {
                                                    }
                                                }

                                                Source

                                                The method GetCheckboxParams is not named in camelCase.
                                                Open

                                                        public function GetCheckboxParams ($item) {
                                                            $aParams = array();
                                                            
                                                            if ($strId = $this->GetCheckboxId ($item)) {
                                                                $aParams['id'] = $strId;

                                                CamelCaseMethodName

                                                Since: 0.2

                                                It is considered best practice to use the camelCase notation to name methods.

                                                Example

                                                class ClassName {
                                                    public function get_name() {
                                                    }
                                                }

                                                Source

                                                The method GetCheckboxName is not named in camelCase.
                                                Open

                                                        protected function GetCheckboxName ($item) {
                                                            return null;
                                                        }

                                                CamelCaseMethodName

                                                Since: 0.2

                                                It is considered best practice to use the camelCase notation to name methods.

                                                Example

                                                class ClassName {
                                                    public function get_name() {
                                                    }
                                                }

                                                Source

                                                The method SplitSpec is not named in camelCase.
                                                Open

                                                        protected static function SplitSpec ($mixSpec)
                                                        {
                                                            if (is_array($mixSpec)) {
                                                                return $mixSpec; // already split
                                                            } elseif (is_string($mixSpec)) {

                                                CamelCaseMethodName

                                                Since: 0.2

                                                It is considered best practice to use the camelCase notation to name methods.

                                                Example

                                                class ClassName {
                                                    public function get_name() {
                                                    }
                                                }

                                                Source

                                                The method Sleep is not named in camelCase.
                                                Open

                                                        public function Sleep() {
                                                            $this->callback = QControl::SleepHelper($this->callback);
                                                            parent::Sleep();
                                                        }

                                                CamelCaseMethodName

                                                Since: 0.2

                                                It is considered best practice to use the camelCase notation to name methods.

                                                Example

                                                class ClassName {
                                                    public function get_name() {
                                                    }
                                                }

                                                Source

                                                The method FetchCellObject is not named in camelCase.
                                                Open

                                                        public function FetchCellObject($item) {
                                                            return $item->GetVirtualAttribute ($this->strAttribute);
                                                        }

                                                CamelCaseMethodName

                                                Since: 0.2

                                                It is considered best practice to use the camelCase notation to name methods.

                                                Example

                                                class ClassName {
                                                    public function get_name() {
                                                    }
                                                }

                                                Source

                                                The method Wakeup is not named in camelCase.
                                                Open

                                                        public function Wakeup(QForm $objForm) {
                                                            parent::Wakeup($objForm);
                                                            $this->callback = QControl::WakeupHelper($objForm, $this->callback);
                                                        }

                                                CamelCaseMethodName

                                                Since: 0.2

                                                It is considered best practice to use the camelCase notation to name methods.

                                                Example

                                                class ClassName {
                                                    public function get_name() {
                                                    }
                                                }

                                                Source

                                                The method FetchCellObject is not named in camelCase.
                                                Open

                                                        public function FetchCellObject($item) {
                                                            $aParams = $this->GetCheckboxParams($item);
                                                            $aParams['type'] = 'checkbox';
                                                            return QHtml::RenderTag('input', $aParams, null, true);
                                                        }

                                                CamelCaseMethodName

                                                Since: 0.2

                                                It is considered best practice to use the camelCase notation to name methods.

                                                Example

                                                class ClassName {
                                                    public function get_name() {
                                                    }
                                                }

                                                Source

                                                The method FetchHeaderCellValue is not named in camelCase.
                                                Open

                                                        public function FetchHeaderCellValue() {
                                                            if ($this->blnShowCheckAll) {
                                                                $aParams = $this->GetCheckboxParams(null);
                                                                $aParams['type'] = 'checkbox';
                                                                return QHtml::RenderTag('input', $aParams, null, true);

                                                CamelCaseMethodName

                                                Since: 0.2

                                                It is considered best practice to use the camelCase notation to name methods.

                                                Example

                                                class ClassName {
                                                    public function get_name() {
                                                    }
                                                }

                                                Source

                                                The method Sleep is not named in camelCase.
                                                Open

                                                        public function Sleep() {
                                                            $this->checkParamCallback = QControl::SleepHelper($this->checkParamCallback);
                                                            parent::Sleep();
                                                        }

                                                CamelCaseMethodName

                                                Since: 0.2

                                                It is considered best practice to use the camelCase notation to name methods.

                                                Example

                                                class ClassName {
                                                    public function get_name() {
                                                    }
                                                }

                                                Source

                                                The method SetCheckParamCallback is not named in camelCase.
                                                Open

                                                        public function SetCheckParamCallback ($callable) {
                                                            $this->checkParamCallback = $callable;
                                                        }

                                                CamelCaseMethodName

                                                Since: 0.2

                                                It is considered best practice to use the camelCase notation to name methods.

                                                Example

                                                class ClassName {
                                                    public function get_name() {
                                                    }
                                                }

                                                Source

                                                The method Wakeup is not named in camelCase.
                                                Open

                                                        public function Wakeup(QForm $objForm) {
                                                            parent::Wakeup($objForm);
                                                            $this->checkParamCallback = QControl::WakeupHelper($objForm, $this->checkParamCallback);
                                                        }

                                                CamelCaseMethodName

                                                Since: 0.2

                                                It is considered best practice to use the camelCase notation to name methods.

                                                Example

                                                class ClassName {
                                                    public function get_name() {
                                                    }
                                                }

                                                Source

                                                There are no issues that match your filters.

                                                Category
                                                Status