qcubed/framework

View on GitHub
includes/framework/QDatabaseBase.class.php

Summary

Maintainability
F
1 wk
Test Coverage

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

<?php
    if(!class_exists('QAbstractCacheProvider')){
        include_once __QCUBED_CORE__ . '/framework/QAbstractCacheProvider.class.php';
    }
    
Severity: Major
Found in includes/framework/QDatabaseBase.class.php - About 1 day to fix

    Function SqlVariable has a Cognitive Complexity of 65 (exceeds 5 allowed). Consider refactoring.
    Open

            public function SqlVariable($mixData, $blnIncludeEquality = false, $blnReverseEquality = false) {
                // Are we SqlVariabling a BOOLEAN value?
                if (is_bool($mixData)) {
                    // Yes
                    if ($blnIncludeEquality) {
    Severity: Minor
    Found in includes/framework/QDatabaseBase.class.php - About 1 day 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 LogQuery has a Cognitive Complexity of 44 (exceeds 5 allowed). Consider refactoring.
    Open

            private function LogQuery($strQuery, $dblQueryTime) {
                if ($this->blnEnableProfiling) {
                    // Dereference-ize Backtrace Information
                    $objDebugBacktrace = debug_backtrace();
                    
    Severity: Minor
    Found in includes/framework/QDatabaseBase.class.php - About 6 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

    QDatabaseBase has 38 functions (exceeds 20 allowed). Consider refactoring.
    Open

        abstract class QDatabaseBase extends QBaseClass {
            // Must be updated for all Adapters
            /** Adapter name */
            const Adapter = 'Generic Database Adapter (Abstract)';
    
    
    Severity: Minor
    Found in includes/framework/QDatabaseBase.class.php - About 5 hrs to fix

      The class QDatabaseBase has 26 public methods. Consider refactoring QDatabaseBase to keep number of public methods under 10.
      Open

          abstract class QDatabaseBase extends QBaseClass {
              // Must be updated for all Adapters
              /** Adapter name */
              const Adapter = 'Generic Database Adapter (Abstract)';
      
      

      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 QDatabaseBase has 34 non-getter- and setter-methods. Consider refactoring QDatabaseBase to keep number of methods under 25.
      Open

          abstract class QDatabaseBase extends QBaseClass {
              // Must be updated for all Adapters
              /** Adapter name */
              const Adapter = 'Generic Database Adapter (Abstract)';
      
      

      TooManyMethods

      Since: 0.1

      A class with too many 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'.

      The default was changed from 10 to 25 in PHPMD 2.3.

      Example

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

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

          abstract class QDatabaseBase extends QBaseClass {
              // Must be updated for all Adapters
              /** Adapter name */
              const Adapter = 'Generic Database Adapter (Abstract)';
      
      

      Method SqlVariable has 64 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

              public function SqlVariable($mixData, $blnIncludeEquality = false, $blnReverseEquality = false) {
                  // Are we SqlVariabling a BOOLEAN value?
                  if (is_bool($mixData)) {
                      // Yes
                      if ($blnIncludeEquality) {
      Severity: Major
      Found in includes/framework/QDatabaseBase.class.php - About 2 hrs to fix

        Function InsertOrUpdate has a Cognitive Complexity of 15 (exceeds 5 allowed). Consider refactoring.
        Open

                public function InsertOrUpdate($strTable, $mixColumnsAndValuesArray, $strPKNames = null) {
                    $strEscapedArray = $this->EscapeIdentifiersAndValues($mixColumnsAndValuesArray);
                    $strColumns = array_keys($strEscapedArray);
                    $strUpdateStatement = '';
                    foreach ($strEscapedArray as $strColumn => $strValue) {
        Severity: Minor
        Found in includes/framework/QDatabaseBase.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 38 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

                public function __get($strName) {
                    switch ($strName) {
                        case 'EscapeIdentifierBegin':
                            return $this->strEscapeIdentifierBegin;
                        case 'EscapeIdentifierEnd':
        Severity: Minor
        Found in includes/framework/QDatabaseBase.class.php - About 1 hr to fix

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

                  private function LogQuery($strQuery, $dblQueryTime) {
                      if ($this->blnEnableProfiling) {
                          // Dereference-ize Backtrace Information
                          $objDebugBacktrace = debug_backtrace();
                          
          Severity: Minor
          Found in includes/framework/QDatabaseBase.class.php - About 1 hr to fix

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

                    public function __get($strName) {
                        switch ($strName) {
                            case "Name":
                                return $this->strName;
                            case "OriginalName":
            Severity: Minor
            Found in includes/framework/QDatabaseBase.class.php - About 1 hr to fix

              Function OutputProfiling has a Cognitive Complexity of 11 (exceeds 5 allowed). Consider refactoring.
              Open

                      public function OutputProfiling($blnPrintOutput = true) {
              
                          $strOut = '<div class="qDbProfile">';
                          if ($this->blnEnableProfiling) {
                              $strOut .= sprintf('<form method="post" id="frmDbProfile%s" action="%s/profile.php"><div>',
              Severity: Minor
              Found in includes/framework/QDatabaseBase.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 OutputProfiling has 29 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                      public function OutputProfiling($blnPrintOutput = true) {
              
                          $strOut = '<div class="qDbProfile">';
                          if ($this->blnEnableProfiling) {
                              $strOut .= sprintf('<form method="post" id="frmDbProfile%s" action="%s/profile.php"><div>',
              Severity: Minor
              Found in includes/framework/QDatabaseBase.class.php - About 1 hr to fix

                Method InsertOrUpdate has 26 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                        public function InsertOrUpdate($strTable, $mixColumnsAndValuesArray, $strPKNames = null) {
                            $strEscapedArray = $this->EscapeIdentifiersAndValues($mixColumnsAndValuesArray);
                            $strColumns = array_keys($strEscapedArray);
                            $strUpdateStatement = '';
                            foreach ($strEscapedArray as $strColumn => $strValue) {
                Severity: Minor
                Found in includes/framework/QDatabaseBase.class.php - About 1 hr to fix

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

                          public function PrepareStatement($strQuery, $mixParameterArray) {
                              foreach ($mixParameterArray as $strKey => $mixValue) {
                                  if (is_array($mixValue)) {
                                      $strParameters = array();
                                      foreach ($mixValue as $mixParameter)
                  Severity: Minor
                  Found in includes/framework/QDatabaseBase.class.php - About 35 mins to fix

                  Cognitive Complexity

                  Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

                  A method's cognitive complexity is based on a few simple rules:

                  • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
                  • Code is considered more complex for each "break in the linear flow of the code"
                  • Code is considered more complex when "flow breaking structures are nested"

                  Further reading

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

                          public final function TransactionBegin() {
                              if (0 == $this->intTransactionDepth) {
                                  $this->ExecuteTransactionBegin();
                                  $objCacheProvider = QApplication::$objCacheProvider;
                                  if ($objCacheProvider && $this->Caching && !($objCacheProvider instanceof QCacheProviderNoCache)) {
                  Severity: Minor
                  Found in includes/framework/QDatabaseBase.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 $strToReturn . sprintf("'%s'", addslashes($mixData));
                  Severity: Major
                  Found in includes/framework/QDatabaseBase.class.php - About 30 mins to fix

                    Avoid too many return statements within this method.
                    Open

                                        return $this->strProfileArray;
                    Severity: Major
                    Found in includes/framework/QDatabaseBase.class.php - About 30 mins to fix

                      Avoid too many return statements within this method.
                      Open

                                                  return '!= 0';
                      Severity: Major
                      Found in includes/framework/QDatabaseBase.class.php - About 30 mins to fix

                        Avoid too many return statements within this method.
                        Open

                                        return $strToReturn . 'NULL';
                        Severity: Major
                        Found in includes/framework/QDatabaseBase.class.php - About 30 mins to fix

                          Avoid too many return statements within this method.
                          Open

                                              return $this->intDatabaseIndex;                    
                          Severity: Major
                          Found in includes/framework/QDatabaseBase.class.php - About 30 mins to fix

                            Avoid too many return statements within this method.
                            Open

                                                return (!isset($this->objConfigArray[strtolower($strName)])) ? $this->blnOnlyFullGroupBy : $this->objConfigArray[strtolower($strName)];
                            Severity: Major
                            Found in includes/framework/QDatabaseBase.class.php - About 30 mins to fix

                              Avoid too many return statements within this method.
                              Open

                                                  return constant($strConstantName) . ' (' . $this->objConfigArray['adapter'] . ')';
                              Severity: Major
                              Found in includes/framework/QDatabaseBase.class.php - About 30 mins to fix

                                Avoid too many return statements within this method.
                                Open

                                                            return '= 0';
                                Severity: Major
                                Found in includes/framework/QDatabaseBase.class.php - About 30 mins to fix

                                  Avoid too many return statements within this method.
                                  Open

                                                  return $strToReturn . sprintf("'%s'", $mixData->qFormat(QDateTime::FormatIso));
                                  Severity: Major
                                  Found in includes/framework/QDatabaseBase.class.php - About 30 mins to fix

                                    Avoid too many return statements within this method.
                                    Open

                                                            return '1';
                                    Severity: Major
                                    Found in includes/framework/QDatabaseBase.class.php - About 30 mins to fix

                                      Avoid too many return statements within this method.
                                      Open

                                                              return '0';
                                      Severity: Major
                                      Found in includes/framework/QDatabaseBase.class.php - About 30 mins to fix

                                        Avoid too many return statements within this method.
                                        Open

                                                        return '(' . implode(',', $items) . ')';
                                        Severity: Major
                                        Found in includes/framework/QDatabaseBase.class.php - About 30 mins to fix

                                          Avoid too many return statements within this method.
                                          Open

                                                          return $strToReturn . sprintf('%s', $mixData);
                                          Severity: Major
                                          Found in includes/framework/QDatabaseBase.class.php - About 30 mins to fix

                                            Avoid too many return statements within this method.
                                            Open

                                                                return (is_null($this->objConfigArray[strtolower($strName)])) ? (QDateTime::FormatIso) : ($this->objConfigArray[strtolower($strName)]);
                                            Severity: Major
                                            Found in includes/framework/QDatabaseBase.class.php - About 30 mins to fix

                                              Avoid too many return statements within this method.
                                              Open

                                                                  return $strToReturn . sprintf("'%s'", $mixData->qFormat('YYYY-MM-DD'));
                                              Severity: Major
                                              Found in includes/framework/QDatabaseBase.class.php - About 30 mins to fix

                                                Avoid too many return statements within this method.
                                                Open

                                                                    return $this->objConfigArray[strtolower($strName)];
                                                Severity: Major
                                                Found in includes/framework/QDatabaseBase.class.php - About 30 mins to fix

                                                  Avoid too many return statements within this method.
                                                  Open

                                                                      return  $strToReturn . sprintf("'%s'", $mixData->qFormat('hhhh:mm:ss'));
                                                  Severity: Major
                                                  Found in includes/framework/QDatabaseBase.class.php - About 30 mins to fix

                                                    Avoid too many return statements within this method.
                                                    Open

                                                                            return 'NULL';
                                                    Severity: Major
                                                    Found in includes/framework/QDatabaseBase.class.php - About 30 mins to fix

                                                      Avoid too many return statements within this method.
                                                      Open

                                                                              return $strToReturn . 'NULL'; // null date and time is a null value
                                                      Severity: Major
                                                      Found in includes/framework/QDatabaseBase.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/framework/QDatabaseBase.class.php - About 30 mins to fix

                                                          Avoid too many return statements within this method.
                                                          Open

                                                                              return $this->blnPrimaryKey;
                                                          Severity: Major
                                                          Found in includes/framework/QDatabaseBase.class.php - About 30 mins to fix

                                                            Avoid too many return statements within this method.
                                                            Open

                                                                                return $this->blnIdentity;
                                                            Severity: Major
                                                            Found in includes/framework/QDatabaseBase.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/framework/QDatabaseBase.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/framework/QDatabaseBase.class.php - About 30 mins to fix

                                                                  Avoid too many return statements within this method.
                                                                  Open

                                                                                      return $this->strType;
                                                                  Severity: Major
                                                                  Found in includes/framework/QDatabaseBase.class.php - About 30 mins to fix

                                                                    Avoid too many return statements within this method.
                                                                    Open

                                                                                        return $this->intMaxLength;
                                                                    Severity: Major
                                                                    Found in includes/framework/QDatabaseBase.class.php - About 30 mins to fix

                                                                      Avoid too many return statements within this method.
                                                                      Open

                                                                                          return $this->strDefault;
                                                                      Severity: Major
                                                                      Found in includes/framework/QDatabaseBase.class.php - About 30 mins to fix

                                                                        Avoid too many return statements within this method.
                                                                        Open

                                                                                            return $this->blnNotNull;
                                                                        Severity: Major
                                                                        Found in includes/framework/QDatabaseBase.class.php - About 30 mins to fix

                                                                          Avoid too many return statements within this method.
                                                                          Open

                                                                                              return $this->blnUnique;
                                                                          Severity: Major
                                                                          Found in includes/framework/QDatabaseBase.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/framework/QDatabaseBase.class.php - About 30 mins to fix

                                                                              Avoid too many return statements within this method.
                                                                              Open

                                                                                                  return $this->blnTimestamp;
                                                                              Severity: Major
                                                                              Found in includes/framework/QDatabaseBase.class.php - About 30 mins to fix

                                                                                Avoid too many return statements within this method.
                                                                                Open

                                                                                                    return $this->strComment;
                                                                                Severity: Major
                                                                                Found in includes/framework/QDatabaseBase.class.php - About 30 mins to fix

                                                                                  The method SqlVariable() has an NPath complexity of 4500. The configured NPath complexity threshold is 200.
                                                                                  Open

                                                                                          public function SqlVariable($mixData, $blnIncludeEquality = false, $blnReverseEquality = false) {
                                                                                              // Are we SqlVariabling a BOOLEAN value?
                                                                                              if (is_bool($mixData)) {
                                                                                                  // Yes
                                                                                                  if ($blnIncludeEquality) {

                                                                                  NPathComplexity

                                                                                  Since: 0.1

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

                                                                                  Example

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

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

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

                                                                                          public function __get($strName) {
                                                                                              switch ($strName) {
                                                                                                  case 'EscapeIdentifierBegin':
                                                                                                      return $this->strEscapeIdentifierBegin;
                                                                                                  case 'EscapeIdentifierEnd':

                                                                                  CyclomaticComplexity

                                                                                  Since: 0.1

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

                                                                                  Example

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

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

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

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

                                                                                  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 LogQuery() has a Cyclomatic Complexity of 16. The configured cyclomatic complexity threshold is 10.
                                                                                  Open

                                                                                          private function LogQuery($strQuery, $dblQueryTime) {
                                                                                              if ($this->blnEnableProfiling) {
                                                                                                  // Dereference-ize Backtrace Information
                                                                                                  $objDebugBacktrace = debug_backtrace();
                                                                                                  

                                                                                  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 SqlVariable() has a Cyclomatic Complexity of 23. The configured cyclomatic complexity threshold is 10.
                                                                                  Open

                                                                                          public function SqlVariable($mixData, $blnIncludeEquality = false, $blnReverseEquality = false) {
                                                                                              // Are we SqlVariabling a BOOLEAN value?
                                                                                              if (is_bool($mixData)) {
                                                                                                  // Yes
                                                                                                  if ($blnIncludeEquality) {

                                                                                  CyclomaticComplexity

                                                                                  Since: 0.1

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

                                                                                  Example

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

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

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

                                                                                              $ret[0] = null; // comment string without options

                                                                                  UndefinedVariable

                                                                                  Since: 2.8.0

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

                                                                                  Example

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

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

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

                                                                                                      $ret[0] = $strComment;

                                                                                  UndefinedVariable

                                                                                  Since: 2.8.0

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

                                                                                  Example

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

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

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

                                                                                                      $ret[0] = substr ($strComment, 0, $pos1) . substr ($strComment, $pos2 + 1); // return comment without options

                                                                                  UndefinedVariable

                                                                                  Since: 2.8.0

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

                                                                                  Example

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

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

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

                                                                                              return $ret;

                                                                                  UndefinedVariable

                                                                                  Since: 2.8.0

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

                                                                                  Example

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

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

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

                                                                                                      $ret[1] = $a;

                                                                                  UndefinedVariable

                                                                                  Since: 2.8.0

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

                                                                                  Example

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

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

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

                                                                                              $ret[1] = null; // the options array

                                                                                  UndefinedVariable

                                                                                  Since: 2.8.0

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

                                                                                  Example

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

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

                                                                                  The class QDatabaseBase has a coupling between objects value of 13. Consider to reduce the number of dependencies under 13.
                                                                                  Open

                                                                                      abstract class QDatabaseBase extends QBaseClass {
                                                                                          // Must be updated for all Adapters
                                                                                          /** Adapter name */
                                                                                          const Adapter = 'Generic Database Adapter (Abstract)';
                                                                                  
                                                                                  

                                                                                  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

                                                                                  Missing class import via use statement (line '176', column '39').
                                                                                  Open

                                                                                              $this->objCacheActionQueue[] = new QCacheDeleteAllAction;

                                                                                  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 '170', column '39').
                                                                                  Open

                                                                                              $this->objCacheActionQueue[] = new QCacheDeleteAction($strKey);

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

                                                                                          public function SqlVariable($mixData, $blnIncludeEquality = false, $blnReverseEquality = 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 '369', column '42').
                                                                                  Open

                                                                                                          self::$objCacheProviderStack = new QStack;

                                                                                  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 '372', column '44').
                                                                                  Open

                                                                                                      QApplication::$objCacheProvider = new QCacheProviderProxy($objCacheProvider);

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

                                                                                          public function SqlVariable($mixData, $blnIncludeEquality = false, $blnReverseEquality = 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 '391', column '15').
                                                                                  Open

                                                                                                  throw new QCallerException("The transaction commit call is called before the transaction begin was called.");

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

                                                                                          public function OutputProfiling($blnPrintOutput = true) {

                                                                                  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 '162', column '39').
                                                                                  Open

                                                                                              $this->objCacheActionQueue[] = new QCacheSetAction($strKey, $objValue, $intExpirationTime);

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

                                                                                                  } else {
                                                                                                      $ret[0] = $strComment;
                                                                                                  }

                                                                                  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 'QTimer' in method 'NonQuery'.
                                                                                  Open

                                                                                                  QTimer::Start($timerName);

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

                                                                                              } else {
                                                                                                  return $this->EscapeIdentifier($mixIdentifiers);
                                                                                              }

                                                                                  ElseExpression

                                                                                  Since: 1.4.0

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

                                                                                  Example

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

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

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

                                                                                              } else {
                                                                                                  $strMatchCondition = 'target_.'.$this->EscapeIdentifier($strPKNames).' = source_.'.$this->EscapeIdentifier($strPKNames);
                                                                                              }

                                                                                  ElseExpression

                                                                                  Since: 1.4.0

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

                                                                                  Example

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

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

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

                                                                                              } else {
                                                                                                  $strOut .= '<form></form><b>Profiling was not enabled for this database connection (#' . $this->intDatabaseIndex . ').</b>  To enable, ensure that ENABLE_PROFILING is set to TRUE.';
                                                                                              }

                                                                                  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 '957', column '6').
                                                                                  Open

                                                                                          public static function ExtractCommentOptions($strComment) {
                                                                                              $ret[0] = null; // comment string without options
                                                                                              $ret[1] = null; // the options array
                                                                                              if (($strComment) &&
                                                                                                  ($pos1 = strpos ($strComment, '{')) !== false &&

                                                                                  IfStatementAssignment

                                                                                  Since: 2.7.0

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

                                                                                  Example

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

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

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

                                                                                                      } else {
                                                                                                          // Check against NULL, True then False
                                                                                                          if (is_null($mixData))
                                                                                                              return 'IS NULL';
                                                                                                          else if ($mixData)

                                                                                  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 'QApplication' in method 'OutputProfiling'.
                                                                                  Open

                                                                                                  $strOut .= sprintf('<input type="hidden" name="strReferrer" value="%s" /></div></form>', QApplication::HtmlEntities(QApplication::$RequestUri));

                                                                                  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

                                                                                                          return ($this->objQueryBuilder = QType::Cast($mixValue, 'QQueryBuilder'));

                                                                                  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 'QTimer' in method 'Query'.
                                                                                  Open

                                                                                                  QTimer::Reset($timerName);

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

                                                                                              $this->blnEnableProfiling = QType::Cast($objConfigArray['profiling'], 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

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

                                                                                                  } else {
                                                                                                      if (is_null($mixData))
                                                                                                          $strToReturn = 'IS ';
                                                                                                      else
                                                                                                          $strToReturn = '= ';

                                                                                  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 '958', column '6').
                                                                                  Open

                                                                                          public static function ExtractCommentOptions($strComment) {
                                                                                              $ret[0] = null; // comment string without options
                                                                                              $ret[1] = null; // the options array
                                                                                              if (($strComment) &&
                                                                                                  ($pos1 = strpos ($strComment, '{')) !== false &&

                                                                                  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 'QTimer' in method 'NonQuery'.
                                                                                  Open

                                                                                                  $dblQueryTime = QTimer::Stop($timerName);

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

                                                                                                  } else {
                                                                                                      $strQuery = str_replace(chr(QQNamedValue::DelimiterCode) . '{=' . $strKey . '=}', $this->SqlVariable($mixValue, true, false), $strQuery);
                                                                                                      $strQuery = str_replace(chr(QQNamedValue::DelimiterCode) . '{!' . $strKey . '!}', $this->SqlVariable($mixValue, true, true), $strQuery);
                                                                                                      $strQuery = str_replace(chr(QQNamedValue::DelimiterCode) . '{' . $strKey . '}', $this->SqlVariable($mixValue), $strQuery);
                                                                                                  }

                                                                                  ElseExpression

                                                                                  Since: 1.4.0

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

                                                                                  Example

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

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

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

                                                                                              else {
                                                                                                  return $strOut;
                                                                                              }

                                                                                  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 'QTimer' in method 'Query'.
                                                                                  Open

                                                                                                  $dblQueryTime = QTimer::Stop($timerName);

                                                                                  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 'QTimer' in method 'Query'.
                                                                                  Open

                                                                                                  QTimer::Start($timerName);

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

                                                                                              } else {
                                                                                                  return $this->SqlVariable($mixValues);
                                                                                              }

                                                                                  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 'QTimer' in method 'NonQuery'.
                                                                                  Open

                                                                                                  QTimer::Reset($timerName);

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

                                                                                                  } else {
                                                                                                      // Check against NULL, True then False
                                                                                                      if (is_null($mixData))
                                                                                                          return 'NULL';
                                                                                                      else if ($mixData)

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

                                                                                          public function ExecuteProcedure($strProcName, $params = null) {}

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

                                                                                          public function ExecuteProcedure($strProcName, $params = null) {}

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

                                                                                          public function ExplainStatement($strSql) {

                                                                                  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

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

                                                                                      class QDatabaseForeignKey extends QBaseClass {
                                                                                          protected $strKeyName;
                                                                                          protected $strColumnNameArray;
                                                                                          protected $strReferenceTableName;
                                                                                          protected $strReferenceColumnNameArray;
                                                                                  Severity: Major
                                                                                  Found in includes/framework/QDatabaseBase.class.php and 1 other location - About 3 hrs to fix
                                                                                  includes/framework/QDatabaseBase.class.php on lines 1235..1284

                                                                                  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 158.

                                                                                  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

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

                                                                                      class QDatabaseIndex extends QBaseClass {
                                                                                          /** @var string Name of the index */
                                                                                          protected $strKeyName;
                                                                                          /** @var bool Is the Index a primary key index? */
                                                                                          protected $blnPrimaryKey;
                                                                                  Severity: Major
                                                                                  Found in includes/framework/QDatabaseBase.class.php and 1 other location - About 3 hrs to fix
                                                                                  includes/framework/QDatabaseBase.class.php on lines 1189..1229

                                                                                  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 158.

                                                                                  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 $mixColumnsAndValuesArray. Keep variable name length under 20.
                                                                                  Open

                                                                                          public function InsertOrUpdate($strTable, $mixColumnsAndValuesArray, $strPKNames = 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 excessively long variable names like $objAbstractCacheProvider. Keep variable name length under 20.
                                                                                  Open

                                                                                          public function Replay($objAbstractCacheProvider) {

                                                                                  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 $strEscapeIdentifierEnd. Keep variable name length under 20.
                                                                                  Open

                                                                                          protected $strEscapeIdentifierEnd = '"';

                                                                                  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 $objCacheProviderStack. Keep variable name length under 20.
                                                                                  Open

                                                                                          protected static $objCacheProviderStack;

                                                                                  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 $arrLocalCacheAdditions. Keep variable name length under 20.
                                                                                  Open

                                                                                          protected $arrLocalCacheAdditions;

                                                                                  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 $strEscapeIdentifierBegin. Keep variable name length under 20.
                                                                                  Open

                                                                                          protected $strEscapeIdentifierBegin = '"';

                                                                                  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 $arrLocalCacheRemovals. Keep variable name length under 20.
                                                                                  Open

                                                                                          protected $arrLocalCacheRemovals;

                                                                                  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 $mixColumnsAndValuesArray. Keep variable name length under 20.
                                                                                  Open

                                                                                          public function EscapeIdentifiersAndValues($mixColumnsAndValuesArray) {

                                                                                  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 $strReferenceTableName. Keep variable name length under 20.
                                                                                  Open

                                                                                          public function __construct($strKeyName, $strColumnNameArray, $strReferenceTableName, $strReferenceColumnNameArray) {

                                                                                  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 $strReferenceColumnNameArray. Keep variable name length under 20.
                                                                                  Open

                                                                                          public function __construct($strKeyName, $strColumnNameArray, $strReferenceTableName, $strReferenceColumnNameArray) {

                                                                                  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 $strReferenceTableName. Keep variable name length under 20.
                                                                                  Open

                                                                                          protected $strReferenceTableName;

                                                                                  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 $strReferenceColumnNameArray. Keep variable name length under 20.
                                                                                  Open

                                                                                          protected $strReferenceColumnNameArray;

                                                                                  LongVariable

                                                                                  Since: 0.2

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

                                                                                  Example

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

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

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

                                                                                                  $a = json_decode($strJson, true);

                                                                                  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

                                                                                  Constant Adapter should be defined in uppercase
                                                                                  Open

                                                                                          const Adapter = 'Generic Database Adapter (Abstract)';

                                                                                  ConstantNamingConventions

                                                                                  Since: 0.2

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

                                                                                  Example

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

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

                                                                                  Constant Char should be defined in uppercase
                                                                                  Open

                                                                                          const Char = "Char";

                                                                                  ConstantNamingConventions

                                                                                  Since: 0.2

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

                                                                                  Example

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

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

                                                                                  Constant Integer should be defined in uppercase
                                                                                  Open

                                                                                          const Integer = "Integer";

                                                                                  ConstantNamingConventions

                                                                                  Since: 0.2

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

                                                                                  Example

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

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

                                                                                  Constant Time should be defined in uppercase
                                                                                  Open

                                                                                          const Time = "Time";

                                                                                  ConstantNamingConventions

                                                                                  Since: 0.2

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

                                                                                  Example

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

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

                                                                                  Constant Json should be defined in uppercase
                                                                                  Open

                                                                                          const Json = "Json";

                                                                                  ConstantNamingConventions

                                                                                  Since: 0.2

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

                                                                                  Example

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

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

                                                                                  Constant Blob should be defined in uppercase
                                                                                  Open

                                                                                          const Blob = "Blob";

                                                                                  ConstantNamingConventions

                                                                                  Since: 0.2

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

                                                                                  Example

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

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

                                                                                  Constant DateTime should be defined in uppercase
                                                                                  Open

                                                                                          const DateTime = "DateTime";

                                                                                  ConstantNamingConventions

                                                                                  Since: 0.2

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

                                                                                  Example

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

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

                                                                                  Constant Date should be defined in uppercase
                                                                                  Open

                                                                                          const Date = "Date";

                                                                                  ConstantNamingConventions

                                                                                  Since: 0.2

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

                                                                                  Example

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

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

                                                                                  Constant Bit should be defined in uppercase
                                                                                  Open

                                                                                          const Bit = "Bit";

                                                                                  ConstantNamingConventions

                                                                                  Since: 0.2

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

                                                                                  Example

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

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

                                                                                  Constant VarChar should be defined in uppercase
                                                                                  Open

                                                                                          const VarChar = "VarChar";

                                                                                  ConstantNamingConventions

                                                                                  Since: 0.2

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

                                                                                  Example

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

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

                                                                                  Constant Float should be defined in uppercase
                                                                                  Open

                                                                                          const Float = "Float";

                                                                                  ConstantNamingConventions

                                                                                  Since: 0.2

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

                                                                                  Example

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

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

                                                                                  The method Execute is not named in camelCase.
                                                                                  Open

                                                                                          public function Execute(QAbstractCacheProvider $objCache) {
                                                                                              $objCache->Set($this->strKey, $this->objValue, $this->intExpirationTime);
                                                                                          }

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

                                                                                          abstract protected function ExecuteTransactionBegin();

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

                                                                                          public function EscapeIdentifiersAndValues($mixColumnsAndValuesArray) {
                                                                                              $result = array();
                                                                                              foreach ($mixColumnsAndValuesArray as $strColumn => $mixValue) {
                                                                                                  $result[$this->EscapeIdentifier($strColumn)] = $this->SqlVariable($mixValue);
                                                                                              }

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

                                                                                          abstract public function CountFields();

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

                                                                                          public function Get($strKey) {
                                                                                              if (isset($this->arrLocalCacheAdditions[$strKey])) {
                                                                                                  return $this->arrLocalCacheAdditions[$strKey];
                                                                                              }
                                                                                              if (!isset($this->arrLocalCacheRemovals[$strKey])) {

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

                                                                                          public function Delete($strKey) {
                                                                                              if (isset($this->arrLocalCacheAdditions[$strKey])) {
                                                                                                  unset($this->arrLocalCacheAdditions[$strKey]);
                                                                                              }
                                                                                              $this->arrLocalCacheRemovals[$strKey] = 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 Execute is not named in camelCase.
                                                                                  Open

                                                                                          public function Execute(QAbstractCacheProvider $objCache);

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

                                                                                          abstract protected function ExecuteQuery($strQuery);

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

                                                                                          abstract public function GetFieldsForTable($strTableName);

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

                                                                                          public final function TransactionBegin() {
                                                                                              if (0 == $this->intTransactionDepth) {
                                                                                                  $this->ExecuteTransactionBegin();
                                                                                                  $objCacheProvider = QApplication::$objCacheProvider;
                                                                                                  if ($objCacheProvider && $this->Caching && !($objCacheProvider instanceof QCacheProviderNoCache)) {

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

                                                                                          public function ResolveBooleanValue ($mixValue) {
                                                                                              if ($mixValue === null) {
                                                                                                  return null;
                                                                                              }
                                                                                              return ((bool)$mixValue);

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

                                                                                          abstract protected function ExecuteNonQuery($strNonQuery);

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

                                                                                          abstract public function FetchRow();

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

                                                                                          abstract public function SqlLimitVariablePrefix($strLimitInfo);

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

                                                                                          public function EscapeIdentifiers($mixIdentifiers) {
                                                                                              if (is_array($mixIdentifiers)) {
                                                                                                  return array_map(array($this, 'EscapeIdentifier'), $mixIdentifiers);
                                                                                              } else {
                                                                                                  return $this->EscapeIdentifier($mixIdentifiers);

                                                                                  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

                                                                                          abstract public function GetColumn($strColumnName, $strColumnType = 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 TransactionCommit is not named in camelCase.
                                                                                  Open

                                                                                          public final function TransactionCommit() {
                                                                                              if (1 == $this->intTransactionDepth) {
                                                                                                  $this->ExecuteTransactionCommit();
                                                                                                  $this->transactionCacheFlush();
                                                                                                  $this->transactionCacheRestore();

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

                                                                                          public final function TransactionRollBack() {
                                                                                              $this->ExecuteTransactionRollBack();
                                                                                              $this->intTransactionDepth = 0;
                                                                                              $this->transactionCacheRestore();
                                                                                          }

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

                                                                                          public function EnableProfiling() {
                                                                                              // Only perform profiling initialization if profiling is not yet enabled
                                                                                              if (!$this->blnEnableProfiling) {
                                                                                                  $this->blnEnableProfiling = true;
                                                                                                  $this->strProfileArray = 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 GetNextRow is not named in camelCase.
                                                                                  Open

                                                                                          abstract public function GetNextRow();

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

                                                                                          abstract public function GetIndexesForTable($strTableName);

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

                                                                                          public function EscapeValues($mixValues) {
                                                                                              if (is_array($mixValues)) {
                                                                                                  return array_map(array($this, 'SqlVariable'), $mixValues);
                                                                                              } else {
                                                                                                  return $this->SqlVariable($mixValues);

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

                                                                                          public final function NonQuery($strNonQuery) {
                                                                                              if (!$this->blnConnectedFlag) {
                                                                                                  $this->Connect();
                                                                                              }
                                                                                              $timerName = '';

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

                                                                                          private function LogQuery($strQuery, $dblQueryTime) {
                                                                                              if ($this->blnEnableProfiling) {
                                                                                                  // Dereference-ize Backtrace Information
                                                                                                  $objDebugBacktrace = debug_backtrace();
                                                                                                  

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

                                                                                          abstract public function CountRows();

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

                                                                                          abstract public function GetForeignKeysForTable($strTableName);

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

                                                                                          public function ExecuteProcedure($strProcName, $params = 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 Query is not named in camelCase.
                                                                                  Open

                                                                                          public final function Query($strQuery) {
                                                                                              $timerName = null;
                                                                                              if (!$this->blnConnectedFlag) {
                                                                                                  $this->Connect();
                                                                                              }

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

                                                                                          public function ExplainStatement($strSql) {
                                                                                              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 FetchField is not named in camelCase.
                                                                                  Open

                                                                                          abstract public function FetchField();

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

                                                                                          public function Execute(QAbstractCacheProvider $objCache) {
                                                                                              $objCache->Delete($this->strKey);
                                                                                          }

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

                                                                                          public function Replay($objAbstractCacheProvider) {
                                                                                              foreach ($this->objCacheActionQueue as $objCacheAction) {
                                                                                                  $objCacheAction->Execute($objAbstractCacheProvider);
                                                                                              }
                                                                                              $this->objCacheActionQueue = 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 SqlSortByVariable is not named in camelCase.
                                                                                  Open

                                                                                          abstract public function SqlSortByVariable($strSortByInfo);

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

                                                                                          abstract public function GetRows();

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

                                                                                          public function Execute(QAbstractCacheProvider $objCache) {
                                                                                              $objCache->DeleteAll();
                                                                                          }

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

                                                                                          public function SqlVariable($mixData, $blnIncludeEquality = false, $blnReverseEquality = false) {
                                                                                              // Are we SqlVariabling a BOOLEAN value?
                                                                                              if (is_bool($mixData)) {
                                                                                                  // Yes
                                                                                                  if ($blnIncludeEquality) {

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

                                                                                          abstract public function FetchArray();

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

                                                                                          abstract public function GetTables();

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

                                                                                          abstract protected function ExecuteTransactionCommit();

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

                                                                                          public function InsertOrUpdate($strTable, $mixColumnsAndValuesArray, $strPKNames = null) {
                                                                                              $strEscapedArray = $this->EscapeIdentifiersAndValues($mixColumnsAndValuesArray);
                                                                                              $strColumns = array_keys($strEscapedArray);
                                                                                              $strUpdateStatement = '';
                                                                                              foreach ($strEscapedArray as $strColumn => $strValue) {

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

                                                                                          public function PrepareStatement($strQuery, $mixParameterArray) {
                                                                                              foreach ($mixParameterArray as $strKey => $mixValue) {
                                                                                                  if (is_array($mixValue)) {
                                                                                                      $strParameters = array();
                                                                                                      foreach ($mixValue as $mixParameter)

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

                                                                                          abstract protected function ExecuteTransactionRollBack();

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

                                                                                          abstract public function Close();

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

                                                                                          public function DeleteAll() {
                                                                                              $this->arrLocalCacheAdditions = array();
                                                                                              $this->arrLocalCacheRemovals = array();
                                                                                              $this->objCacheActionQueue[] = new QCacheDeleteAllAction;
                                                                                          }

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

                                                                                          abstract public function SqlLimitVariableSuffix($strLimitInfo);

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

                                                                                          abstract public function Close();

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

                                                                                          public function EscapeIdentifier($strIdentifier) {
                                                                                              return $this->strEscapeIdentifierBegin . $strIdentifier . $this->strEscapeIdentifierEnd;
                                                                                          }

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

                                                                                          abstract public function FetchFields();

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

                                                                                          public function OutputProfiling($blnPrintOutput = true) {
                                                                                  
                                                                                              $strOut = '<div class="qDbProfile">';
                                                                                              if ($this->blnEnableProfiling) {
                                                                                                  $strOut .= sprintf('<form method="post" id="frmDbProfile%s" action="%s/profile.php"><div>',

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

                                                                                          public static function ExtractCommentOptions($strComment) {
                                                                                              $ret[0] = null; // comment string without options
                                                                                              $ret[1] = null; // the options array
                                                                                              if (($strComment) &&
                                                                                                  ($pos1 = strpos ($strComment, '{')) !== false &&

                                                                                  CamelCaseMethodName

                                                                                  Since: 0.2

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

                                                                                  Example

                                                                                  class ClassName {
                                                                                      public function get_name() {
                                                                                      }
                                                                                  }

                                                                                  Source

                                                                                  The method Set is not named in camelCase.
                                                                                  Open

                                                                                          public function Set($strKey, $objValue, $intExpirationTime = null) {
                                                                                              $this->arrLocalCacheAdditions[$strKey] = $objValue;
                                                                                              if (isset($this->arrLocalCacheRemovals[$strKey])) {
                                                                                                  unset($this->arrLocalCacheRemovals[$strKey]);
                                                                                              }

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

                                                                                          abstract public function Connect();

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

                                                                                          abstract public function InsertId($strTableName = null, $strColumnName = 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 GetColumnNameArray is not named in camelCase.
                                                                                  Open

                                                                                          abstract public function GetColumnNameArray();

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

                                                                                          abstract public function ColumnExists($strColumnName);

                                                                                  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