qcubed/framework

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

Summary

Maintainability
F
4 days
Test Coverage

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

<?php
    /**
     * <p>This control is used to display a simple html table.
     *
     * <p>The control itself will display things based off of an array of objects that gets set as the "Data Source".
Severity: Minor
Found in includes/base_controls/QHtmlTableBase.class.php - About 7 hrs to fix

    QHtmlTableBase has 42 functions (exceeds 20 allowed). Consider refactoring.
    Open

        abstract class QHtmlTableBase extends QPaginatedControl {
            /** @var QAbstractHtmlTableColumn[] */
            protected $objColumnArray = [];
    
            /** @var string|null CSS class to be applied to for even rows */
    Severity: Minor
    Found in includes/base_controls/QHtmlTableBase.class.php - About 5 hrs to fix

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

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

        The class QHtmlTableBase has 24 public methods. Consider refactoring QHtmlTableBase to keep number of public methods under 10.
        Open

            abstract class QHtmlTableBase extends QPaginatedControl {
                /** @var QAbstractHtmlTableColumn[] */
                protected $objColumnArray = [];
        
                /** @var string|null CSS class to be applied to for even rows */

        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 QHtmlTableBase has an overall complexity of 141 which is very high. The configured complexity threshold is 50.
        Open

            abstract class QHtmlTableBase extends QPaginatedControl {
                /** @var QAbstractHtmlTableColumn[] */
                protected $objColumnArray = [];
        
                /** @var string|null CSS class to be applied to for even rows */

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

                public function __set($strName, $mixValue) {
                    switch ($strName) {
                        case "RowCssClass":
                            try {
                                $this->strRowCssClass = QType::Cast($mixValue, QType::String);
        Severity: Minor
        Found in includes/base_controls/QHtmlTableBase.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 GetColumn has a Cognitive Complexity of 13 (exceeds 5 allowed). Consider refactoring.
        Open

                public function GetColumn($intColumnIndex, $blnVisible = false) {
                    if (!$blnVisible) {
                        if (array_key_exists($intColumnIndex, $this->objColumnArray)) {
                            return $this->objColumnArray[$intColumnIndex];
                        }
        Severity: Minor
        Found in includes/base_controls/QHtmlTableBase.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 __get has 31 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

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

          Method GetControlHtml has 27 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

                  protected function GetControlHtml() {
                      $this->DataBind();
          
                      if (empty ($this->objDataSource) && $this->blnHideIfEmpty) {
                          $this->objDataSource = null;
          Severity: Minor
          Found in includes/base_controls/QHtmlTableBase.class.php - About 1 hr to fix

            Method CreateLinkColumn has 7 arguments (exceeds 4 allowed). Consider refactoring.
            Open

                    public function CreateLinkColumn ($strName,
                                                      $mixText,
                                                      $mixDestination = null,
                                                      $getVars = null,
                                                      $tagAttributes = null,
            Severity: Major
            Found in includes/base_controls/QHtmlTableBase.class.php - About 50 mins to fix

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

                      protected function GetControlHtml() {
                          $this->DataBind();
              
                          if (empty ($this->objDataSource) && $this->blnHideIfEmpty) {
                              $this->objDataSource = null;
              Severity: Minor
              Found in includes/base_controls/QHtmlTableBase.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 RemoveColumnById has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring.
              Open

                      public function RemoveColumnById($strId) {
                          if ($this->objColumnArray && ($count = count($this->objColumnArray))) {
                              for ($i = 0; $i < $count; $i++) {
                                  if ($this->objColumnArray[$i]->Id === $strId) {
                                      $this->RemoveColumn($i);
              Severity: Minor
              Found in includes/base_controls/QHtmlTableBase.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->blnHideIfEmpty;
              Severity: Major
              Found in includes/base_controls/QHtmlTableBase.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/QHtmlTableBase.class.php - About 30 mins to fix

                  Avoid too many return statements within this method.
                  Open

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

                    Avoid too many return statements within this method.
                    Open

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

                      Avoid too many return statements within this method.
                      Open

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

                        Avoid too many return statements within this method.
                        Open

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

                          Avoid too many return statements within this method.
                          Open

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

                            Avoid too many return statements within this method.
                            Open

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

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

                                      protected function GetHeaderRowHtml() {
                                          $strToReturn = '';
                                          for ($i = 0; $i < $this->intHeaderRowCount; $i++) {
                                              $this->intCurrentHeaderRowIndex = $i;
                              
                              
                              Severity: Minor
                              Found in includes/base_controls/QHtmlTableBase.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

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

                                      public function GetColumnByName($strName) {
                                          if ($this->objColumnArray) foreach ($this->objColumnArray as $objColumn)
                                              if ($objColumn->Name == $strName)
                                                  return $objColumn;
                                          return null;
                              Severity: Minor
                              Found in includes/base_controls/QHtmlTableBase.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

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

                                      public function GetColumnsByName($strName) {
                                          $objColumnArrayToReturn = array();
                                          if ($this->objColumnArray) foreach ($this->objColumnArray as $objColumn)
                                              if ($objColumn->Name == $strName)
                                                  array_push($objColumnArrayToReturn, $objColumn);
                              Severity: Minor
                              Found in includes/base_controls/QHtmlTableBase.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

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

                                      public function GetColumnById($strId) {
                                          if ($this->objColumnArray) foreach ($this->objColumnArray as $objColumn)
                                              if ($objColumn->Id === $strId)
                                                  return $objColumn;
                                          return null;
                              Severity: Minor
                              Found in includes/base_controls/QHtmlTableBase.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

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

                                      public function GetColumnIndex($strName) {
                                          $intIndex = -1;
                                          if ($this->objColumnArray) foreach ($this->objColumnArray as $objColumn) {
                                              ++$intIndex;
                                              if ($objColumn->Name == $strName)
                              Severity: Minor
                              Found in includes/base_controls/QHtmlTableBase.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

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

                                      protected function GetRowClass ($objObject, $intRowIndex) {
                                          if (($intRowIndex % 2) == 1 && $this->strAlternateRowCssClass) {
                                              return $this->strAlternateRowCssClass;
                                          } else if ($this->strRowCssClass) {
                                              return $this->strRowCssClass;
                              Severity: Minor
                              Found in includes/base_controls/QHtmlTableBase.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 103 lines of code. Current threshold is set to 100. Avoid really long methods.
                              Open

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

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

                                      public function __get($strName) {
                                          switch ($strName) {
                                              case 'RowCssClass':
                                                  return $this->strRowCssClass;
                                              case 'AlternateRowCssClass':

                              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 "RowCssClass":
                                                  try {
                                                      $this->strRowCssClass = 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 class QHtmlTableBase has a coupling between objects value of 18. Consider to reduce the number of dependencies under 13.
                              Open

                                  abstract class QHtmlTableBase extends QPaginatedControl {
                                      /** @var QAbstractHtmlTableColumn[] */
                                      protected $objColumnArray = [];
                              
                                      /** @var string|null CSS class to be applied to for even rows */

                              CouplingBetweenObjects

                              Since: 1.1.0

                              A class with too many dependencies has negative impacts on several quality aspects of a class. This includes quality criteria like stability, maintainability and understandability

                              Example

                              class Foo {
                                  /**
                                   * @var \foo\bar\X
                                   */
                                  private $x = null;
                              
                                  /**
                                   * @var \foo\bar\Y
                                   */
                                  private $y = null;
                              
                                  /**
                                   * @var \foo\bar\Z
                                   */
                                  private $z = null;
                              
                                  public function setFoo(\Foo $foo) {}
                                  public function setBar(\Bar $bar) {}
                                  public function setBaz(\Baz $baz) {}
                              
                                  /**
                                   * @return \SplObjectStorage
                                   * @throws \OutOfRangeException
                                   * @throws \InvalidArgumentException
                                   * @throws \ErrorException
                                   */
                                  public function process(\Iterator $it) {}
                              
                                  // ...
                              }

                              Source https://phpmd.org/rules/design.html#couplingbetweenobjects

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

                                                                        $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 '134', column '21').
                              Open

                                          $objColumn = new QHtmlTableNodeColumn($strName, $objNodes);

                              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 '104', column '21').
                              Open

                                          $objColumn = new QHtmlTableIndexedColumn($strName, $mixIndex);

                              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 '150', column '21').
                              Open

                                          $objColumn = new QHtmlTableCallableColumn($strName, $objCallable, $mixParams);

                              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 '164', column '21').
                              Open

                                          $objColumn = new QVirtualAttributeColumn($strName, $strAttribute);

                              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 '915', column '9').
                              Open

                                              new QModelConnectorParam (get_called_class(), 'ShowHeader', 'Whether or not to show the header. Default is true.', QType::Boolean),

                              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 '197', column '21').
                              Open

                                          $objColumn = new QHtmlTableLinkColumn($strName,

                              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 GetColumn has a boolean flag argument $blnVisible, which is a certain sign of a Single Responsibility Principle violation.
                              Open

                                      public function GetColumn($intColumnIndex, $blnVisible = 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 '917', column '9').
                              Open

                                              new QModelConnectorParam (get_called_class(), 'RenderColumnTags', 'Whether or not to render html column tags for the columns. Column tags are only needed in special situations. Default is false.', QType::Boolean),

                              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 '916', column '9').
                              Open

                                              new QModelConnectorParam (get_called_class(), 'ShowFooter', 'Whether or not to show the footer. Default is false.', QType::Boolean),

                              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 '120', column '21').
                              Open

                                          $objColumn = new QHtmlTablePropertyColumn($strName, $strProperty, $objBaseNode);

                              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 '918', column '9').
                              Open

                                              new QModelConnectorParam (get_called_class(), 'Caption', 'Text to print in the caption tag of the table.', QType::String),

                              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 '912', column '9').
                              Open

                                              new QModelConnectorParam (get_called_class(), 'RowCssClass', 'Css class given to each row', QType::String),

                              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 '919', column '9').
                              Open

                                              new QModelConnectorParam (get_called_class(), 'HideIfEmpty', 'Whether to draw nothing if there is no data, or draw the table tags with no cells instead. Default is to drag the table tags.', QType::Boolean)

                              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 '300', column '15').
                              Open

                                              throw new QIndexOutOfRangeException($intColumnIndex, "RemoveColumn()");

                              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 '913', column '9').
                              Open

                                              new QModelConnectorParam (get_called_class(), 'AlternateRowCssClass', 'Css class given to every other row', QType::String),

                              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 '914', column '9').
                              Open

                                              new QModelConnectorParam (get_called_class(), 'HeaderRowCssClass', 'Css class given to the header rows', QType::String),

                              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 assigning values to variables in if clauses and the like (line '583', column '8').
                              Open

                                      protected function GetRowParams ($objObject, $intCurrentRowIndex) {
                                          $strParamArray = array();
                                          if ($this->rowParamsCallback) {
                                              $strParamArray = call_user_func($this->rowParamsCallback, $objObject, $intCurrentRowIndex);
                                          }

                              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 '527', column '8').
                              Open

                                      protected function GetHeaderRowParams () {
                                          $strParamArray = array();
                                          if ($strClass = $this->strHeaderRowCssClass) {
                                              $strParamArray['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 'QHtml' in method 'GetDataGridRowHtml'.
                              Open

                                          return QHtml::RenderTag('tr', $this->GetRowParams($objObject, $intCurrentRowIndex), $strCells);

                              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->strAlternateRowCssClass = 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 'GetHeaderRowHtml'.
                              Open

                                              $strToReturn .= QHtml::RenderTag('tr', $this->GetHeaderRowParams(), $strCells);

                              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 'RenderCaption'.
                              Open

                                              $strHtml .= '<caption>' . QApplication::HtmlEntities($this->strCaption) . '</caption>' . _nl();

                              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 'GetControlHtml'.
                              Open

                                          $strHtml .= QHtml::RenderTag('tbody', null, $strRows);

                              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->blnRenderColumnTags = 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->blnShowHeader = 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 '575', column '8').
                              Open

                                      protected function GetRowParams ($objObject, $intCurrentRowIndex) {
                                          $strParamArray = array();
                                          if ($this->rowParamsCallback) {
                                              $strParamArray = call_user_func($this->rowParamsCallback, $objObject, $intCurrentRowIndex);
                                          }

                              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 'QControl' in method 'Sleep'.
                              Open

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

                              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 AddColumnAt uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them.
                              Open

                                          } else {
                                              $this->objColumnArray = array_merge(array_slice($this->objColumnArray, 0, $intColumnIndex),
                                                                                  array($objColumn),
                                                                                  array_slice($this->objColumnArray, $intColumnIndex));
                                          }

                              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 assigning values to variables in if clauses and the like (line '579', column '8').
                              Open

                                      protected function GetRowParams ($objObject, $intCurrentRowIndex) {
                                          $strParamArray = array();
                                          if ($this->rowParamsCallback) {
                                              $strParamArray = call_user_func($this->rowParamsCallback, $objObject, $intCurrentRowIndex);
                                          }

                              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->strRowCssClass = 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

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

                                          else {
                                              return null;
                                          }

                              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 'QHtml' in method 'GetControlHtml'.
                              Open

                                              $strHtml .= QHtml::RenderTag ('thead', null, $this->GetHeaderRowHtml());

                              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 RemoveColumns uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them.
                              Open

                                              } else {
                                                  $removed[] = $objColumn;
                                              }

                              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 'RemoveColumn'.
                              Open

                                              $intColumnIndex = QType::Cast($intColumnIndex, 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 'QControl' in method 'Wakeup'.
                              Open

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

                              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->strHeaderRowCssClass = 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->strCaption = 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->intHeaderRowCount = 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 'AddColumnAt'.
                              Open

                                              $intColumnIndex = QType::Cast($intColumnIndex, 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 'QHtml' in method 'GetControlHtml'.
                              Open

                                              $strHtml .=  QHtml::RenderTag ('tfoot', null, $this->GetFooterRowHtml());

                              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->blnHideIfEmpty = 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 '314', column '34').
                              Open

                                      public function RemoveColumnById($strId) {
                                          if ($this->objColumnArray && ($count = count($this->objColumnArray))) {
                                              for ($i = 0; $i < $count; $i++) {
                                                  if ($this->objColumnArray[$i]->Id === $strId) {
                                                      $this->RemoveColumn($i);

                              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->rowParamsCallback = 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 GetColumn uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them.
                              Open

                                          } else {
                                              $i = 0;
                                              foreach ($this->objColumnArray as $objColumn) {
                                                  if ($objColumn->Visible) {
                                                      if ($i == $intColumnIndex) {

                              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->blnShowFooter = 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 unused parameters such as '$objObject'.
                              Open

                                      protected function GetRowId ($objObject, $intRowIndex) {

                              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 '$intRowIndex'.
                              Open

                                      protected function GetRowId ($objObject, $intRowIndex) {

                              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 '$intRowIndex'.
                              Open

                                      protected function GetRowStyle ($objObject, $intRowIndex) {

                              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 '$objObject'.
                              Open

                                      protected function GetRowStyle ($objObject, $intRowIndex) {

                              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 '$objObject'.
                              Open

                                      protected function GetRowClass ($objObject, $intRowIndex) {

                              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 using count() function in for loops.
                              Open

                                          for ($intIndex = 0; $intIndex < count($this->objColumnArray); $intIndex++) {
                                              if ($this->objColumnArray[$intIndex]->Name == $strName) {
                                                  $col = $this->objColumnArray[$intIndex];
                                                  array_splice($this->objColumnArray, $intIndex, 1);
                                                  return $col;

                              CountInLoopExpression

                              Since: 2.7.0

                              Using count/sizeof in loops expressions is considered bad practice and is a potential source of many bugs, especially when the loop manipulates an array, as count happens on each iteration.

                              Example

                              class Foo {
                              
                                public function bar()
                                {
                                  $array = array();
                              
                                  for ($i = 0; count($array); $i++) {
                                    // ...
                                  }
                                }
                              }

                              Source https://phpmd.org/rules/design.html#countinloopexpression

                              Similar blocks of code found in 2 locations. Consider refactoring.
                              Open

                                      public function __get($strName) {
                                          switch ($strName) {
                                              case 'RowCssClass':
                                                  return $this->strRowCssClass;
                                              case 'AlternateRowCssClass':
                              Severity: Major
                              Found in includes/base_controls/QHtmlTableBase.class.php and 1 other location - About 3 hrs to fix
                              includes/base_controls/QCalendar.class.php on lines 146..178

                              Duplicated Code

                              Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                              Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                              When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                              Tuning

                              This issue has a mass of 142.

                              We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                              The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                              If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                              See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                              Refactorings

                              Further Reading

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

                                          $objColumnArrayToReturn = array();

                              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 excessively long variable names like $intCurrentHeaderRowIndex. Keep variable name length under 20.
                              Open

                                      protected $intCurrentHeaderRowIndex;

                              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 excessively long variable names like $strAlternateRowCssClass. Keep variable name length under 20.
                              Open

                                      protected $strAlternateRowCssClass = 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 $i. Configured minimum length is 3.
                              Open

                                              $i = 0;

                              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 $i. Configured minimum length is 3.
                              Open

                                          $i = 0;

                              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 method CreateLinkColumn is not named in camelCase.
                              Open

                                      public function CreateLinkColumn ($strName,
                                                                        $mixText,
                                                                        $mixDestination = null,
                                                                        $getVars = null,
                                                                        $tagAttributes = 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 RemoveColumns is not named in camelCase.
                              Open

                                      public function RemoveColumns($strNamesArray) {
                                          $this->blnModified = true;
                                          $kept = array();
                                          $removed = array();
                                          foreach ($this->objColumnArray as $objColumn) {

                              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 ShowAllColumns is not named in camelCase.
                              Open

                                      public function ShowAllColumns() {
                                          foreach ($this->objColumnArray as $objColumn) {
                                              $objColumn->Visible = true;
                                          }
                                          $this->blnModified = 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 Wakeup is not named in camelCase.
                              Open

                                      public function Wakeup(QForm $objForm) {
                                          parent::Wakeup($objForm);
                                          $this->rowParamsCallback = QControl::WakeupHelper($objForm, $this->rowParamsCallback);
                                          if ($this->objColumnArray) {
                                              foreach ($this->objColumnArray as $objColumn) {

                              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 CreatePropertyColumn is not named in camelCase.
                              Open

                                      public function CreatePropertyColumn($strName, $strProperty, $intColumnIndex = -1, $objBaseNode = null) {
                                          $objColumn = new QHtmlTablePropertyColumn($strName, $strProperty, $objBaseNode);
                                          $this->AddColumnAt($intColumnIndex, $objColumn);
                                          return $objColumn;
                                      }

                              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 GetHeaderRowParams is not named in camelCase.
                              Open

                                      protected function GetHeaderRowParams () {
                                          $strParamArray = array();
                                          if ($strClass = $this->strHeaderRowCssClass) {
                                              $strParamArray['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 ParsePostData is not named in camelCase.
                              Open

                                      public function ParsePostData() {
                                          if ($this->objColumnArray) {
                                              foreach($this->objColumnArray as $objColumn) {
                                                  $objColumn->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 CreateVirtualAttributeColumn is not named in camelCase.
                              Open

                                      public function CreateVirtualAttributeColumn ($strName, $strAttribute, $intColumnIndex = -1) {
                                          $objColumn = new QVirtualAttributeColumn($strName, $strAttribute);
                                          $this->AddColumnAt($intColumnIndex, $objColumn);
                                          return $objColumn;
                                      }

                              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 RemoveAllColumns is not named in camelCase.
                              Open

                                      public function RemoveAllColumns() {
                                          $this->blnModified = true;
                                          $this->objColumnArray = array();
                                      }

                              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 GetColumn is not named in camelCase.
                              Open

                                      public function GetColumn($intColumnIndex, $blnVisible = false) {
                                          if (!$blnVisible) {
                                              if (array_key_exists($intColumnIndex, $this->objColumnArray)) {
                                                  return $this->objColumnArray[$intColumnIndex];
                                              }

                              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 GetDataGridRowHtml is not named in camelCase.
                              Open

                                      protected function GetDataGridRowHtml($objObject, $intCurrentRowIndex) {
                                          $strCells = '';
                                          foreach ($this->objColumnArray as $objColumn) {
                                              try {
                                                  $strCells .= $objColumn->RenderCell($objObject);

                              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 AddColumn is not named in camelCase.
                              Open

                                      public function AddColumn(QAbstractHtmlTableColumn $objColumn) {
                                          $this->AddColumnAt(-1, $objColumn);
                                          return $objColumn;
                                      }

                              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 GetColumnByName is not named in camelCase.
                              Open

                                      public function GetColumnByName($strName) {
                                          if ($this->objColumnArray) foreach ($this->objColumnArray as $objColumn)
                                              if ($objColumn->Name == $strName)
                                                  return $objColumn;
                                          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 GetFooterRowHtml is not named in camelCase.
                              Open

                                      protected function GetFooterRowHtml() { }

                              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 GetRowParams is not named in camelCase.
                              Open

                                      protected function GetRowParams ($objObject, $intCurrentRowIndex) {
                                          $strParamArray = array();
                                          if ($this->rowParamsCallback) {
                                              $strParamArray = call_user_func($this->rowParamsCallback, $objObject, $intCurrentRowIndex);
                                          }

                              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 GetColumnTagsHtml is not named in camelCase.
                              Open

                                      protected function GetColumnTagsHtml() {
                                          $strToReturn = '';
                                          $len = count($this->objColumnArray);
                                          $i = 0;
                                          while ($i < $len) {

                              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() {
                                          if ($this->objColumnArray) {
                                              foreach ($this->objColumnArray as $objColumn) {
                                                  $objColumn->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 HideAllColumns is not named in camelCase.
                              Open

                                      public function HideAllColumns() {
                                          foreach ($this->objColumnArray as $objColumn) {
                                              $objColumn->Visible = false;
                                          }
                                          $this->blnModified = 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 GetColumnsByName is not named in camelCase.
                              Open

                                      public function GetColumnsByName($strName) {
                                          $objColumnArrayToReturn = array();
                                          if ($this->objColumnArray) foreach ($this->objColumnArray as $objColumn)
                                              if ($objColumn->Name == $strName)
                                                  array_push($objColumnArrayToReturn, $objColumn);

                              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 CreateCallableColumn is not named in camelCase.
                              Open

                                      public function CreateCallableColumn($strName, $objCallable, $intColumnIndex = -1, $mixParams = null) {
                                          $objColumn = new QHtmlTableCallableColumn($strName, $objCallable, $mixParams);
                                          $this->AddColumnAt($intColumnIndex, $objColumn);
                                          return $objColumn;
                                      }

                              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 AddColumnAt is not named in camelCase.
                              Open

                                      public function AddColumnAt($intColumnIndex, QAbstractHtmlTableColumn $objColumn) {
                                          try {
                                              $intColumnIndex = QType::Cast($intColumnIndex, QType::Integer);
                                          } catch (QInvalidCastException $objExc) {
                                              $objExc->IncrementOffset();

                              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 GetColumnById is not named in camelCase.
                              Open

                                      public function GetColumnById($strId) {
                                          if ($this->objColumnArray) foreach ($this->objColumnArray as $objColumn)
                                              if ($objColumn->Id === $strId)
                                                  return $objColumn;
                                          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 GetColumnIndex is not named in camelCase.
                              Open

                                      public function GetColumnIndex($strName) {
                                          $intIndex = -1;
                                          if ($this->objColumnArray) foreach ($this->objColumnArray as $objColumn) {
                                              ++$intIndex;
                                              if ($objColumn->Name == $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 GetRowId is not named in camelCase.
                              Open

                                      protected function GetRowId ($objObject, $intRowIndex) {
                                          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 CreateNodeColumn is not named in camelCase.
                              Open

                                      public function CreateNodeColumn($strName, $objNodes, $intColumnIndex = -1) {
                                          $objColumn = new QHtmlTableNodeColumn($strName, $objNodes);
                                          $this->AddColumnAt($intColumnIndex, $objColumn);
                                          return $objColumn;
                                      }

                              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 RemoveColumnById is not named in camelCase.
                              Open

                                      public function RemoveColumnById($strId) {
                                          if ($this->objColumnArray && ($count = count($this->objColumnArray))) {
                                              for ($i = 0; $i < $count; $i++) {
                                                  if ($this->objColumnArray[$i]->Id === $strId) {
                                                      $this->RemoveColumn($i);

                              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 RemoveColumnsByName is not named in camelCase.
                              Open

                                      public function RemoveColumnsByName($strName/*...*/) {
                                          return $this->RemoveColumns(func_get_args());
                                      }

                              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 GetRowStyle is not named in camelCase.
                              Open

                                      protected function GetRowStyle ($objObject, $intRowIndex) {
                                          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 CreateIndexedColumn is not named in camelCase.
                              Open

                                      public function CreateIndexedColumn($strName = '', $mixIndex = null, $intColumnIndex = -1) {
                                          if (is_null($mixIndex)) {
                                              $mixIndex = count($this->objColumnArray);
                                          }
                                          $objColumn = new QHtmlTableIndexedColumn($strName, $mixIndex);

                              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 MoveColumn is not named in camelCase.
                              Open

                                      public function MoveColumn($strName, $intColumnIndex = -1, $strNewName = null) {
                                          $col = $this->RemoveColumnByName($strName);
                                          $this->AddColumnAt($intColumnIndex, $col);
                                          if ($strNewName !== null) {
                                              $col->Name = $strNewName;

                              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 GetControlHtml is not named in camelCase.
                              Open

                                      protected function GetControlHtml() {
                                          $this->DataBind();
                              
                                          if (empty ($this->objDataSource) && $this->blnHideIfEmpty) {
                                              $this->objDataSource = 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 GetHeaderRowHtml is not named in camelCase.
                              Open

                                      protected function GetHeaderRowHtml() {
                                          $strToReturn = '';
                                          for ($i = 0; $i < $this->intHeaderRowCount; $i++) {
                                              $this->intCurrentHeaderRowIndex = $i;
                              
                              

                              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 RenderCaption is not named in camelCase.
                              Open

                                      protected function RenderCaption() {
                                          $strHtml = '';
                                          if ($this->strCaption) {
                                              $strHtml .= '<caption>' . QApplication::HtmlEntities($this->strCaption) . '</caption>' . _nl();
                                          }

                              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 RemoveColumnByName is not named in camelCase.
                              Open

                                      public function RemoveColumnByName($strName) {
                                          $this->blnModified = true;
                                          for ($intIndex = 0; $intIndex < count($this->objColumnArray); $intIndex++) {
                                              if ($this->objColumnArray[$intIndex]->Name == $strName) {
                                                  $col = $this->objColumnArray[$intIndex];

                              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 RemoveColumn is not named in camelCase.
                              Open

                                      public function RemoveColumn($intColumnIndex) {
                                          $this->blnModified = true;
                                          try {
                                              $intColumnIndex = QType::Cast($intColumnIndex, QType::Integer);
                                          } catch (QInvalidCastException $objExc) {

                              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 GetAllColumns is not named in camelCase.
                              Open

                                      public function GetAllColumns() {
                                          return $this->objColumnArray;
                                      }

                              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 GetRowClass is not named in camelCase.
                              Open

                                      protected function GetRowClass ($objObject, $intRowIndex) {
                                          if (($intRowIndex % 2) == 1 && $this->strAlternateRowCssClass) {
                                              return $this->strAlternateRowCssClass;
                                          } else if ($this->strRowCssClass) {
                                              return $this->strRowCssClass;

                              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 GetModelConnectorParams is not named in camelCase.
                              Open

                                      public static function GetModelConnectorParams() {
                                          return array_merge(parent::GetModelConnectorParams(), array(
                                              new QModelConnectorParam (get_called_class(), 'RowCssClass', 'Css class given to each row', QType::String),
                                              new QModelConnectorParam (get_called_class(), 'AlternateRowCssClass', 'Css class given to every other row', QType::String),
                                              new QModelConnectorParam (get_called_class(), 'HeaderRowCssClass', 'Css class given to the header rows', QType::String),

                              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 RenameColumn is not named in camelCase.
                              Open

                                      public function RenameColumn($strOldName, $strNewName) {
                                          $col = $this->GetColumnByName($strOldName);
                                          $col->Name = $strNewName;
                                          return $col;
                                      }

                              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