XoopsModules25x/xoopsinfo

View on GitHub
phpsecinfo/PhpSecInfo/PhpSecInfo.php

Summary

Maintainability
F
4 days
Test Coverage

Method renderOutput has 244 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    public function renderOutput($page_title = 'PHP Security Information')
    {
        /**
         * We need to use PhpSecInfo_Test::getBooleanIniValue() below
         *
Severity: Major
Found in phpsecinfo/PhpSecInfo/PhpSecInfo.php - About 1 day to fix

    File PhpSecInfo.php has 502 lines of code (exceeds 250 allowed). Consider refactoring.
    Open

    <?php declare(strict_types=1);
    
    /**
     * Main class file
     * @author Ed Finkler <coj@funkatron.com>
    Severity: Major
    Found in phpsecinfo/PhpSecInfo/PhpSecInfo.php - About 1 day to fix

      Function _outputRenderTable has a Cognitive Complexity of 31 (exceeds 5 allowed). Consider refactoring.
      Open

          public function _outputRenderTable($group_name, $group_results)
          {
              // exit out if $group_results was empty or not an array. This sorta seems a little hacky...
              if (!is_array($group_results) || count($group_results) < 1) {
                  return false;
      Severity: Minor
      Found in phpsecinfo/PhpSecInfo/PhpSecInfo.php - About 4 hrs to fix

      Cognitive Complexity

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

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

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

      Further reading

      Method _outputRenderTable has 96 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

          public function _outputRenderTable($group_name, $group_results)
          {
              // exit out if $group_results was empty or not an array. This sorta seems a little hacky...
              if (!is_array($group_results) || count($group_results) < 1) {
                  return false;
      Severity: Major
      Found in phpsecinfo/PhpSecInfo/PhpSecInfo.php - About 3 hrs to fix

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

        class PhpSecInfo
        {
            /**
             * An array of tests to run
             *
        Severity: Minor
        Found in phpsecinfo/PhpSecInfo/PhpSecInfo.php by phpmd

        Function renderOutput has a Cognitive Complexity of 14 (exceeds 5 allowed). Consider refactoring.
        Open

            public function renderOutput($page_title = 'PHP Security Information')
            {
                /**
                 * We need to use PhpSecInfo_Test::getBooleanIniValue() below
                 *
        Severity: Minor
        Found in phpsecinfo/PhpSecInfo/PhpSecInfo.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 runTests has 33 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

            public function runTests()
            {
                // initialize a bunch of arrays
                $this->test_results = [];
        
        
        Severity: Minor
        Found in phpsecinfo/PhpSecInfo/PhpSecInfo.php - About 1 hr to fix

          Function loadTests has a Cognitive Complexity of 10 (exceeds 5 allowed). Consider refactoring.
          Open

              public function loadTests()
              {
                  $test_root = dir(__DIR__ . DIRECTORY_SEPARATOR . 'Test');
          
                  // echo "<pre>"; echo print_r($test_root, true); echo "</pre>";
          Severity: Minor
          Found in phpsecinfo/PhpSecInfo/PhpSecInfo.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

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

              public function runTests()
              {
                  // initialize a bunch of arrays
                  $this->test_results = [];
          
          
          Severity: Minor
          Found in phpsecinfo/PhpSecInfo/PhpSecInfo.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 _outputRenderStatsTable has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring.
          Open

              public function _outputRenderStatsTable()
              {
                  // Add by
                  // https://github.com/bigdeej/PhpSecInfo/tree/master/PhpSecInfo/Test/Core
                  $score = 100;
          Severity: Minor
          Found in phpsecinfo/PhpSecInfo/PhpSecInfo.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 'value-notrun';
          Severity: Major
          Found in phpsecinfo/PhpSecInfo/PhpSecInfo.php - About 30 mins to fix

            Avoid too many return statements within this method.
            Open

                            return 'value-error';
            Severity: Major
            Found in phpsecinfo/PhpSecInfo/PhpSecInfo.php - About 30 mins to fix

              Avoid too many return statements within this method.
              Open

                              return 'Invalid Result Code';
              Severity: Major
              Found in phpsecinfo/PhpSecInfo/PhpSecInfo.php - About 30 mins to fix

                Avoid too many return statements within this method.
                Open

                                return 'Error';
                Severity: Major
                Found in phpsecinfo/PhpSecInfo/PhpSecInfo.php - About 30 mins to fix

                  The method _outputRenderTable() has an NPath complexity of 1068. The configured NPath complexity threshold is 200.
                  Open

                      public function _outputRenderTable($group_name, $group_results)
                      {
                          // exit out if $group_results was empty or not an array. This sorta seems a little hacky...
                          if (!is_array($group_results) || count($group_results) < 1) {
                              return false;
                  Severity: Minor
                  Found in phpsecinfo/PhpSecInfo/PhpSecInfo.php by phpmd

                  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 renderOutput() has 315 lines of code. Current threshold is set to 100. Avoid really long methods.
                  Open

                      public function renderOutput($page_title = 'PHP Security Information')
                      {
                          /**
                           * We need to use PhpSecInfo_Test::getBooleanIniValue() below
                           *
                  Severity: Minor
                  Found in phpsecinfo/PhpSecInfo/PhpSecInfo.php by phpmd

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

                      public function _outputRenderTable($group_name, $group_results)
                      {
                          // exit out if $group_results was empty or not an array. This sorta seems a little hacky...
                          if (!is_array($group_results) || count($group_results) < 1) {
                              return false;
                  Severity: Minor
                  Found in phpsecinfo/PhpSecInfo/PhpSecInfo.php by phpmd

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

                      public function _outputRenderTable($group_name, $group_results)
                      {
                          // exit out if $group_results was empty or not an array. This sorta seems a little hacky...
                          if (!is_array($group_results) || count($group_results) < 1) {
                              return false;
                  Severity: Minor
                  Found in phpsecinfo/PhpSecInfo/PhpSecInfo.php by phpmd

                  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 '$stats' which will lead to PHP notices.
                  Open

                          $this->_outputRenderTable('Test Results Summary', $stats);
                  Severity: Minor
                  Found in phpsecinfo/PhpSecInfo/PhpSecInfo.php by phpmd

                  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 '$classNames' which will lead to PHP notices.
                  Open

                          $this->tests_to_run = $classNames;
                  Severity: Minor
                  Found in phpsecinfo/PhpSecInfo/PhpSecInfo.php by phpmd

                  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 '$classNames' which will lead to PHP notices.
                  Open

                                      $classNames[] = 'PhpSecInfo_Test_' . $test_dir . '_' . basename($entry, '.php');
                  Severity: Minor
                  Found in phpsecinfo/PhpSecInfo/PhpSecInfo.php by phpmd

                  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 '$stats' which will lead to PHP notices.
                  Open

                                  $stats[$this->_outputGetResultTypeFromCode($code)] = [
                  Severity: Minor
                  Found in phpsecinfo/PhpSecInfo/PhpSecInfo.php by phpmd

                  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

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

                      $psi = new PhpSecInfo();
                  Severity: Minor
                  Found in phpsecinfo/PhpSecInfo/PhpSecInfo.php by phpmd

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

                              } else {
                                  $rs = [
                                      'result'            => $test->getResult(),
                                      'message'           => $test->getMessage(),
                                      'value_current'     => null,
                  Severity: Minor
                  Found in phpsecinfo/PhpSecInfo/PhpSecInfo.php by phpmd

                  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 local variables such as '$score'.
                  Open

                          $score = 100;
                  Severity: Minor
                  Found in phpsecinfo/PhpSecInfo/PhpSecInfo.php by phpmd

                  UnusedLocalVariable

                  Since: 0.2

                  Detects when a local variable is declared and/or assigned, but not used.

                  Example

                  class Foo {
                      public function doSomething()
                      {
                          $i = 5; // Unused
                      }
                  }

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

                  Each class must be in a namespace of at least one level (a top-level vendor name)
                  Open

                  class PhpSecInfo

                  The property $tests_to_run is not named in camelCase.
                  Open

                  class PhpSecInfo
                  {
                      /**
                       * An array of tests to run
                       *
                  Severity: Minor
                  Found in phpsecinfo/PhpSecInfo/PhpSecInfo.php by phpmd

                  CamelCasePropertyName

                  Since: 0.2

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

                  Example

                  class ClassName {
                      protected $property_name;
                  }

                  Source

                  The property $num_tests_run is not named in camelCase.
                  Open

                  class PhpSecInfo
                  {
                      /**
                       * An array of tests to run
                       *
                  Severity: Minor
                  Found in phpsecinfo/PhpSecInfo/PhpSecInfo.php by phpmd

                  CamelCasePropertyName

                  Since: 0.2

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

                  Example

                  class ClassName {
                      protected $property_name;
                  }

                  Source

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

                                  $rs = [
                  Severity: Minor
                  Found in phpsecinfo/PhpSecInfo/PhpSecInfo.php by phpmd

                  ShortVariable

                  Since: 0.2

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

                  Example

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

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

                  The parameter $page_title is not named in camelCase.
                  Open

                      public function renderOutput($page_title = 'PHP Security Information')
                      {
                          /**
                           * We need to use PhpSecInfo_Test::getBooleanIniValue() below
                           *
                  Severity: Minor
                  Found in phpsecinfo/PhpSecInfo/PhpSecInfo.php by phpmd

                  CamelCaseParameterName

                  Since: 0.2

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

                  Example

                  class ClassName {
                      public function doSomething($user_name) {
                      }
                  }

                  Source

                  The parameter $group_name is not named in camelCase.
                  Open

                      public function _outputRenderTable($group_name, $group_results)
                      {
                          // exit out if $group_results was empty or not an array. This sorta seems a little hacky...
                          if (!is_array($group_results) || count($group_results) < 1) {
                              return false;
                  Severity: Minor
                  Found in phpsecinfo/PhpSecInfo/PhpSecInfo.php by phpmd

                  CamelCaseParameterName

                  Since: 0.2

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

                  Example

                  class ClassName {
                      public function doSomething($user_name) {
                      }
                  }

                  Source

                  The property $test_results is not named in camelCase.
                  Open

                  class PhpSecInfo
                  {
                      /**
                       * An array of tests to run
                       *
                  Severity: Minor
                  Found in phpsecinfo/PhpSecInfo/PhpSecInfo.php by phpmd

                  CamelCasePropertyName

                  Since: 0.2

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

                  Example

                  class ClassName {
                      protected $property_name;
                  }

                  Source

                  The property $tests_not_run is not named in camelCase.
                  Open

                  class PhpSecInfo
                  {
                      /**
                       * An array of tests to run
                       *
                  Severity: Minor
                  Found in phpsecinfo/PhpSecInfo/PhpSecInfo.php by phpmd

                  CamelCasePropertyName

                  Since: 0.2

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

                  Example

                  class ClassName {
                      protected $property_name;
                  }

                  Source

                  The property $result_counts is not named in camelCase.
                  Open

                  class PhpSecInfo
                  {
                      /**
                       * An array of tests to run
                       *
                  Severity: Minor
                  Found in phpsecinfo/PhpSecInfo/PhpSecInfo.php by phpmd

                  CamelCasePropertyName

                  Since: 0.2

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

                  Example

                  class ClassName {
                      protected $property_name;
                  }

                  Source

                  The parameter $group_results is not named in camelCase.
                  Open

                      public function _outputRenderTable($group_name, $group_results)
                      {
                          // exit out if $group_results was empty or not an array. This sorta seems a little hacky...
                          if (!is_array($group_results) || count($group_results) < 1) {
                              return false;
                  Severity: Minor
                  Found in phpsecinfo/PhpSecInfo/PhpSecInfo.php by phpmd

                  CamelCaseParameterName

                  Since: 0.2

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

                  Example

                  class ClassName {
                      public function doSomething($user_name) {
                      }
                  }

                  Source

                  Method name "_outputRenderTable" should not be prefixed with an underscore to indicate visibility
                  Open

                      public function _outputRenderTable($group_name, $group_results)

                  Method name "_outputRenderNotRunTable" should not be prefixed with an underscore to indicate visibility
                  Open

                      public function _outputRenderNotRunTable()

                  Method name "_outputGetCssClassFromResult" should not be prefixed with an underscore to indicate visibility
                  Open

                      public function _outputGetCssClassFromResult($code)

                  Method name "_outputRenderStatsTable" should not be prefixed with an underscore to indicate visibility
                  Open

                      public function _outputRenderStatsTable()

                  Method name "_outputGetResultTypeFromCode" should not be prefixed with an underscore to indicate visibility
                  Open

                      public function _outputGetResultTypeFromCode($code)

                  Line exceeds 120 characters; contains 128 characters
                  Open

                                              <div class="result"><?php echo $this->_outputGetResultTypeFromCode($test_results['result']) ?></div>

                  Line exceeds 120 characters; contains 123 characters
                  Open

                                                          <td><?php echo wordwrap($test_results['value_current'], 55, '<br />', true) ?></td>

                  Line indented incorrectly; expected 20 spaces, found 24
                  Open

                                          case 'fr':

                  Line indented incorrectly; expected 20 spaces, found 24
                  Open

                                          case 'fr':

                  Line indented incorrectly; expected 44 spaces, found 48
                  Open

                                                                  case 'fr':

                  Line indented incorrectly; expected 64 spaces, found 24
                  Open

                                          default:

                  Line indented incorrectly; expected at least 68 spaces, found 28
                  Open

                                              echo 'Participate from Github';

                  Line indented incorrectly; expected 16 spaces, found 20
                  Open

                                      case 'fr':

                  Line indented incorrectly; expected 60 spaces, found 20
                  Open

                                      switch (PHPSECINFO_LANG_DEFAULT) {

                  Line indented incorrectly; expected 4 spaces, found 24
                  Open

                                          case 'fr':

                  Line indented incorrectly; expected 4 spaces, found 24
                  Open

                                          default:

                  Line indented incorrectly; expected 16 spaces, found 20
                  Open

                                      switch (PHPSECINFO_LANG_DEFAULT) {

                  Line indented incorrectly; expected 40 spaces, found 44
                  Open

                                                              switch (PHPSECINFO_LANG_DEFAULT) {

                  Line indented incorrectly; expected 16 spaces, found 20
                  Open

                                      default:

                  Line indented incorrectly; expected 20 spaces, found 24
                  Open

                                          default:

                  Line indented incorrectly; expected 16 spaces, found 20
                  Open

                                      } ?></th>

                  Line indented incorrectly; expected 44 spaces, found 48
                  Open

                                                                  default:

                  Line indented incorrectly; expected 40 spaces, found 44
                  Open

                                                              } ?></td>

                  Line indented incorrectly; expected at least 68 spaces, found 28
                  Open

                                              echo 'Participer depuis Github';

                  Line indented incorrectly; expected 12 spaces, found 16
                  Open

                                  } ?> - <?php

                  Line indented incorrectly; expected 4 spaces, found 20
                  Open

                                      default:

                  Line indented incorrectly; expected 16 spaces, found 20
                  Open

                                      } ?></th>

                  Line indented incorrectly; expected 44 spaces, found 48
                  Open

                                                                  default:

                  Line indented incorrectly; expected 40 spaces, found 44
                  Open

                                                              switch (PHPSECINFO_LANG_DEFAULT) {

                  Line indented incorrectly; expected 64 spaces, found 24
                  Open

                                          case 'fr':

                  Line indented incorrectly; expected 20 spaces, found 24
                  Open

                                          default:

                  Line indented incorrectly; expected 0 spaces, found 20
                  Open

                                      switch (PHPSECINFO_LANG_DEFAULT) {

                  Line indented incorrectly; expected 40 spaces, found 44
                  Open

                                                              } ?></td>

                  Line indented incorrectly; expected 0 spaces, found 16
                  Open

                                  switch (PHPSECINFO_LANG_DEFAULT) {

                  Line indented incorrectly; expected 0 spaces, found 20
                  Open

                                      } ?></a>

                  Line indented incorrectly; expected 16 spaces, found 20
                  Open

                                      switch (PHPSECINFO_LANG_DEFAULT) {

                  Line indented incorrectly; expected 12 spaces, found 16
                  Open

                                  switch (PHPSECINFO_LANG_DEFAULT) {

                  Line indented incorrectly; expected 4 spaces, found 20
                  Open

                                      case 'fr':

                  Line indented incorrectly; expected 0 spaces, found 16
                  Open

                                  } ?> <?php echo PHPSECINFO_BUILD ?> - <a href="https://github.com/ZerooCool/phpsecinfo/"

                  Line indented incorrectly; expected 60 spaces, found 20
                  Open

                                      } ?></a> - <a href="PhpSecInfo/phpinfo.php"><?php

                  Line indented incorrectly; expected 44 spaces, found 48
                  Open

                                                                  case 'fr':

                  The variable $this_dir is not named in camelCase.
                  Open

                      public function loadTests()
                      {
                          $test_root = dir(__DIR__ . DIRECTORY_SEPARATOR . 'Test');
                  
                          // echo "<pre>"; echo print_r($test_root, true); echo "</pre>";
                  Severity: Minor
                  Found in phpsecinfo/PhpSecInfo/PhpSecInfo.php by phpmd

                  CamelCaseVariableName

                  Since: 0.2

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

                  Example

                  class ClassName {
                      public function doSomething() {
                          $data_module = new DataModule();
                      }
                  }

                  Source

                  The variable $group_results is not named in camelCase.
                  Open

                      public function renderOutput($page_title = 'PHP Security Information')
                      {
                          /**
                           * We need to use PhpSecInfo_Test::getBooleanIniValue() below
                           *
                  Severity: Minor
                  Found in phpsecinfo/PhpSecInfo/PhpSecInfo.php by phpmd

                  CamelCaseVariableName

                  Since: 0.2

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

                  Example

                  class ClassName {
                      public function doSomething() {
                          $data_module = new DataModule();
                      }
                  }

                  Source

                  The variable $test_root is not named in camelCase.
                  Open

                      public function loadTests()
                      {
                          $test_root = dir(__DIR__ . DIRECTORY_SEPARATOR . 'Test');
                  
                          // echo "<pre>"; echo print_r($test_root, true); echo "</pre>";
                  Severity: Minor
                  Found in phpsecinfo/PhpSecInfo/PhpSecInfo.php by phpmd

                  CamelCaseVariableName

                  Since: 0.2

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

                  Example

                  class ClassName {
                      public function doSomething() {
                          $data_module = new DataModule();
                      }
                  }

                  Source

                  The variable $test_results is not named in camelCase.
                  Open

                      public function _outputRenderTable($group_name, $group_results)
                      {
                          // exit out if $group_results was empty or not an array. This sorta seems a little hacky...
                          if (!is_array($group_results) || count($group_results) < 1) {
                              return false;
                  Severity: Minor
                  Found in phpsecinfo/PhpSecInfo/PhpSecInfo.php by phpmd

                  CamelCaseVariableName

                  Since: 0.2

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

                  Example

                  class ClassName {
                      public function doSomething() {
                          $data_module = new DataModule();
                      }
                  }

                  Source

                  The variable $test_results is not named in camelCase.
                  Open

                      public function _outputRenderTable($group_name, $group_results)
                      {
                          // exit out if $group_results was empty or not an array. This sorta seems a little hacky...
                          if (!is_array($group_results) || count($group_results) < 1) {
                              return false;
                  Severity: Minor
                  Found in phpsecinfo/PhpSecInfo/PhpSecInfo.php by phpmd

                  CamelCaseVariableName

                  Since: 0.2

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

                  Example

                  class ClassName {
                      public function doSomething() {
                          $data_module = new DataModule();
                      }
                  }

                  Source

                  The variable $test_results is not named in camelCase.
                  Open

                      public function _outputRenderTable($group_name, $group_results)
                      {
                          // exit out if $group_results was empty or not an array. This sorta seems a little hacky...
                          if (!is_array($group_results) || count($group_results) < 1) {
                              return false;
                  Severity: Minor
                  Found in phpsecinfo/PhpSecInfo/PhpSecInfo.php by phpmd

                  CamelCaseVariableName

                  Since: 0.2

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

                  Example

                  class ClassName {
                      public function doSomething() {
                          $data_module = new DataModule();
                      }
                  }

                  Source

                  The variable $test_results is not named in camelCase.
                  Open

                      public function _outputRenderTable($group_name, $group_results)
                      {
                          // exit out if $group_results was empty or not an array. This sorta seems a little hacky...
                          if (!is_array($group_results) || count($group_results) < 1) {
                              return false;
                  Severity: Minor
                  Found in phpsecinfo/PhpSecInfo/PhpSecInfo.php by phpmd

                  CamelCaseVariableName

                  Since: 0.2

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

                  Example

                  class ClassName {
                      public function doSomething() {
                          $data_module = new DataModule();
                      }
                  }

                  Source

                  The variable $test_dir is not named in camelCase.
                  Open

                      public function loadTests()
                      {
                          $test_root = dir(__DIR__ . DIRECTORY_SEPARATOR . 'Test');
                  
                          // echo "<pre>"; echo print_r($test_root, true); echo "</pre>";
                  Severity: Minor
                  Found in phpsecinfo/PhpSecInfo/PhpSecInfo.php by phpmd

                  CamelCaseVariableName

                  Since: 0.2

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

                  Example

                  class ClassName {
                      public function doSomething() {
                          $data_module = new DataModule();
                      }
                  }

                  Source

                  The variable $test_results is not named in camelCase.
                  Open

                      public function _outputRenderTable($group_name, $group_results)
                      {
                          // exit out if $group_results was empty or not an array. This sorta seems a little hacky...
                          if (!is_array($group_results) || count($group_results) < 1) {
                              return false;
                  Severity: Minor
                  Found in phpsecinfo/PhpSecInfo/PhpSecInfo.php by phpmd

                  CamelCaseVariableName

                  Since: 0.2

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

                  Example

                  class ClassName {
                      public function doSomething() {
                          $data_module = new DataModule();
                      }
                  }

                  Source

                  The variable $test_results is not named in camelCase.
                  Open

                      public function _outputRenderTable($group_name, $group_results)
                      {
                          // exit out if $group_results was empty or not an array. This sorta seems a little hacky...
                          if (!is_array($group_results) || count($group_results) < 1) {
                              return false;
                  Severity: Minor
                  Found in phpsecinfo/PhpSecInfo/PhpSecInfo.php by phpmd

                  CamelCaseVariableName

                  Since: 0.2

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

                  Example

                  class ClassName {
                      public function doSomething() {
                          $data_module = new DataModule();
                      }
                  }

                  Source

                  The variable $test_dirs is not named in camelCase.
                  Open

                      public function loadTests()
                      {
                          $test_root = dir(__DIR__ . DIRECTORY_SEPARATOR . 'Test');
                  
                          // echo "<pre>"; echo print_r($test_root, true); echo "</pre>";
                  Severity: Minor
                  Found in phpsecinfo/PhpSecInfo/PhpSecInfo.php by phpmd

                  CamelCaseVariableName

                  Since: 0.2

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

                  Example

                  class ClassName {
                      public function doSomething() {
                          $data_module = new DataModule();
                      }
                  }

                  Source

                  The variable $group_name is not named in camelCase.
                  Open

                      public function renderOutput($page_title = 'PHP Security Information')
                      {
                          /**
                           * We need to use PhpSecInfo_Test::getBooleanIniValue() below
                           *
                  Severity: Minor
                  Found in phpsecinfo/PhpSecInfo/PhpSecInfo.php by phpmd

                  CamelCaseVariableName

                  Since: 0.2

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

                  Example

                  class ClassName {
                      public function doSomething() {
                          $data_module = new DataModule();
                      }
                  }

                  Source

                  The variable $test_results is not named in camelCase.
                  Open

                      public function _outputRenderTable($group_name, $group_results)
                      {
                          // exit out if $group_results was empty or not an array. This sorta seems a little hacky...
                          if (!is_array($group_results) || count($group_results) < 1) {
                              return false;
                  Severity: Minor
                  Found in phpsecinfo/PhpSecInfo/PhpSecInfo.php by phpmd

                  CamelCaseVariableName

                  Since: 0.2

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

                  Example

                  class ClassName {
                      public function doSomething() {
                          $data_module = new DataModule();
                      }
                  }

                  Source

                  The variable $test_root is not named in camelCase.
                  Open

                      public function loadTests()
                      {
                          $test_root = dir(__DIR__ . DIRECTORY_SEPARATOR . 'Test');
                  
                          // echo "<pre>"; echo print_r($test_root, true); echo "</pre>";
                  Severity: Minor
                  Found in phpsecinfo/PhpSecInfo/PhpSecInfo.php by phpmd

                  CamelCaseVariableName

                  Since: 0.2

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

                  Example

                  class ClassName {
                      public function doSomething() {
                          $data_module = new DataModule();
                      }
                  }

                  Source

                  The variable $group_results is not named in camelCase.
                  Open

                      public function renderOutput($page_title = 'PHP Security Information')
                      {
                          /**
                           * We need to use PhpSecInfo_Test::getBooleanIniValue() below
                           *
                  Severity: Minor
                  Found in phpsecinfo/PhpSecInfo/PhpSecInfo.php by phpmd

                  CamelCaseVariableName

                  Since: 0.2

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

                  Example

                  class ClassName {
                      public function doSomething() {
                          $data_module = new DataModule();
                      }
                  }

                  Source

                  The variable $test_root is not named in camelCase.
                  Open

                      public function loadTests()
                      {
                          $test_root = dir(__DIR__ . DIRECTORY_SEPARATOR . 'Test');
                  
                          // echo "<pre>"; echo print_r($test_root, true); echo "</pre>";
                  Severity: Minor
                  Found in phpsecinfo/PhpSecInfo/PhpSecInfo.php by phpmd

                  CamelCaseVariableName

                  Since: 0.2

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

                  Example

                  class ClassName {
                      public function doSomething() {
                          $data_module = new DataModule();
                      }
                  }

                  Source

                  The variable $group_results is not named in camelCase.
                  Open

                      public function _outputRenderTable($group_name, $group_results)
                      {
                          // exit out if $group_results was empty or not an array. This sorta seems a little hacky...
                          if (!is_array($group_results) || count($group_results) < 1) {
                              return false;
                  Severity: Minor
                  Found in phpsecinfo/PhpSecInfo/PhpSecInfo.php by phpmd

                  CamelCaseVariableName

                  Since: 0.2

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

                  Example

                  class ClassName {
                      public function doSomething() {
                          $data_module = new DataModule();
                      }
                  }

                  Source

                  The variable $group_results is not named in camelCase.
                  Open

                      public function _outputRenderTable($group_name, $group_results)
                      {
                          // exit out if $group_results was empty or not an array. This sorta seems a little hacky...
                          if (!is_array($group_results) || count($group_results) < 1) {
                              return false;
                  Severity: Minor
                  Found in phpsecinfo/PhpSecInfo/PhpSecInfo.php by phpmd

                  CamelCaseVariableName

                  Since: 0.2

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

                  Example

                  class ClassName {
                      public function doSomething() {
                          $data_module = new DataModule();
                      }
                  }

                  Source

                  The variable $test_results is not named in camelCase.
                  Open

                      public function _outputRenderTable($group_name, $group_results)
                      {
                          // exit out if $group_results was empty or not an array. This sorta seems a little hacky...
                          if (!is_array($group_results) || count($group_results) < 1) {
                              return false;
                  Severity: Minor
                  Found in phpsecinfo/PhpSecInfo/PhpSecInfo.php by phpmd

                  CamelCaseVariableName

                  Since: 0.2

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

                  Example

                  class ClassName {
                      public function doSomething() {
                          $data_module = new DataModule();
                      }
                  }

                  Source

                  The variable $test_dirs is not named in camelCase.
                  Open

                      public function loadTests()
                      {
                          $test_root = dir(__DIR__ . DIRECTORY_SEPARATOR . 'Test');
                  
                          // echo "<pre>"; echo print_r($test_root, true); echo "</pre>";
                  Severity: Minor
                  Found in phpsecinfo/PhpSecInfo/PhpSecInfo.php by phpmd

                  CamelCaseVariableName

                  Since: 0.2

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

                  Example

                  class ClassName {
                      public function doSomething() {
                          $data_module = new DataModule();
                      }
                  }

                  Source

                  The variable $test_dir is not named in camelCase.
                  Open

                      public function loadTests()
                      {
                          $test_root = dir(__DIR__ . DIRECTORY_SEPARATOR . 'Test');
                  
                          // echo "<pre>"; echo print_r($test_root, true); echo "</pre>";
                  Severity: Minor
                  Found in phpsecinfo/PhpSecInfo/PhpSecInfo.php by phpmd

                  CamelCaseVariableName

                  Since: 0.2

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

                  Example

                  class ClassName {
                      public function doSomething() {
                          $data_module = new DataModule();
                      }
                  }

                  Source

                  The variable $test_name is not named in camelCase.
                  Open

                      public function _outputRenderTable($group_name, $group_results)
                      {
                          // exit out if $group_results was empty or not an array. This sorta seems a little hacky...
                          if (!is_array($group_results) || count($group_results) < 1) {
                              return false;
                  Severity: Minor
                  Found in phpsecinfo/PhpSecInfo/PhpSecInfo.php by phpmd

                  CamelCaseVariableName

                  Since: 0.2

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

                  Example

                  class ClassName {
                      public function doSomething() {
                          $data_module = new DataModule();
                      }
                  }

                  Source

                  The variable $group_name is not named in camelCase.
                  Open

                      public function _outputRenderTable($group_name, $group_results)
                      {
                          // exit out if $group_results was empty or not an array. This sorta seems a little hacky...
                          if (!is_array($group_results) || count($group_results) < 1) {
                              return false;
                  Severity: Minor
                  Found in phpsecinfo/PhpSecInfo/PhpSecInfo.php by phpmd

                  CamelCaseVariableName

                  Since: 0.2

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

                  Example

                  class ClassName {
                      public function doSomething() {
                          $data_module = new DataModule();
                      }
                  }

                  Source

                  The variable $test_results is not named in camelCase.
                  Open

                      public function _outputRenderTable($group_name, $group_results)
                      {
                          // exit out if $group_results was empty or not an array. This sorta seems a little hacky...
                          if (!is_array($group_results) || count($group_results) < 1) {
                              return false;
                  Severity: Minor
                  Found in phpsecinfo/PhpSecInfo/PhpSecInfo.php by phpmd

                  CamelCaseVariableName

                  Since: 0.2

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

                  Example

                  class ClassName {
                      public function doSomething() {
                          $data_module = new DataModule();
                      }
                  }

                  Source

                  The variable $test_dir is not named in camelCase.
                  Open

                      public function loadTests()
                      {
                          $test_root = dir(__DIR__ . DIRECTORY_SEPARATOR . 'Test');
                  
                          // echo "<pre>"; echo print_r($test_root, true); echo "</pre>";
                  Severity: Minor
                  Found in phpsecinfo/PhpSecInfo/PhpSecInfo.php by phpmd

                  CamelCaseVariableName

                  Since: 0.2

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

                  Example

                  class ClassName {
                      public function doSomething() {
                          $data_module = new DataModule();
                      }
                  }

                  Source

                  The variable $this_dir is not named in camelCase.
                  Open

                      public function loadTests()
                      {
                          $test_root = dir(__DIR__ . DIRECTORY_SEPARATOR . 'Test');
                  
                          // echo "<pre>"; echo print_r($test_root, true); echo "</pre>";
                  Severity: Minor
                  Found in phpsecinfo/PhpSecInfo/PhpSecInfo.php by phpmd

                  CamelCaseVariableName

                  Since: 0.2

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

                  Example

                  class ClassName {
                      public function doSomething() {
                          $data_module = new DataModule();
                      }
                  }

                  Source

                  The variable $test_results is not named in camelCase.
                  Open

                      public function _outputRenderTable($group_name, $group_results)
                      {
                          // exit out if $group_results was empty or not an array. This sorta seems a little hacky...
                          if (!is_array($group_results) || count($group_results) < 1) {
                              return false;
                  Severity: Minor
                  Found in phpsecinfo/PhpSecInfo/PhpSecInfo.php by phpmd

                  CamelCaseVariableName

                  Since: 0.2

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

                  Example

                  class ClassName {
                      public function doSomething() {
                          $data_module = new DataModule();
                      }
                  }

                  Source

                  The variable $test_results is not named in camelCase.
                  Open

                      public function _outputRenderTable($group_name, $group_results)
                      {
                          // exit out if $group_results was empty or not an array. This sorta seems a little hacky...
                          if (!is_array($group_results) || count($group_results) < 1) {
                              return false;
                  Severity: Minor
                  Found in phpsecinfo/PhpSecInfo/PhpSecInfo.php by phpmd

                  CamelCaseVariableName

                  Since: 0.2

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

                  Example

                  class ClassName {
                      public function doSomething() {
                          $data_module = new DataModule();
                      }
                  }

                  Source

                  The variable $this_dir is not named in camelCase.
                  Open

                      public function loadTests()
                      {
                          $test_root = dir(__DIR__ . DIRECTORY_SEPARATOR . 'Test');
                  
                          // echo "<pre>"; echo print_r($test_root, true); echo "</pre>";
                  Severity: Minor
                  Found in phpsecinfo/PhpSecInfo/PhpSecInfo.php by phpmd

                  CamelCaseVariableName

                  Since: 0.2

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

                  Example

                  class ClassName {
                      public function doSomething() {
                          $data_module = new DataModule();
                      }
                  }

                  Source

                  The variable $page_title is not named in camelCase.
                  Open

                      public function renderOutput($page_title = 'PHP Security Information')
                      {
                          /**
                           * We need to use PhpSecInfo_Test::getBooleanIniValue() below
                           *
                  Severity: Minor
                  Found in phpsecinfo/PhpSecInfo/PhpSecInfo.php by phpmd

                  CamelCaseVariableName

                  Since: 0.2

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

                  Example

                  class ClassName {
                      public function doSomething() {
                          $data_module = new DataModule();
                      }
                  }

                  Source

                  The variable $test_results is not named in camelCase.
                  Open

                      public function _outputRenderTable($group_name, $group_results)
                      {
                          // exit out if $group_results was empty or not an array. This sorta seems a little hacky...
                          if (!is_array($group_results) || count($group_results) < 1) {
                              return false;
                  Severity: Minor
                  Found in phpsecinfo/PhpSecInfo/PhpSecInfo.php by phpmd

                  CamelCaseVariableName

                  Since: 0.2

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

                  Example

                  class ClassName {
                      public function doSomething() {
                          $data_module = new DataModule();
                      }
                  }

                  Source

                  The variable $test_name is not named in camelCase.
                  Open

                      public function _outputRenderTable($group_name, $group_results)
                      {
                          // exit out if $group_results was empty or not an array. This sorta seems a little hacky...
                          if (!is_array($group_results) || count($group_results) < 1) {
                              return false;
                  Severity: Minor
                  Found in phpsecinfo/PhpSecInfo/PhpSecInfo.php by phpmd

                  CamelCaseVariableName

                  Since: 0.2

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

                  Example

                  class ClassName {
                      public function doSomething() {
                          $data_module = new DataModule();
                      }
                  }

                  Source

                  The variable $test_results is not named in camelCase.
                  Open

                      public function _outputRenderTable($group_name, $group_results)
                      {
                          // exit out if $group_results was empty or not an array. This sorta seems a little hacky...
                          if (!is_array($group_results) || count($group_results) < 1) {
                              return false;
                  Severity: Minor
                  Found in phpsecinfo/PhpSecInfo/PhpSecInfo.php by phpmd

                  CamelCaseVariableName

                  Since: 0.2

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

                  Example

                  class ClassName {
                      public function doSomething() {
                          $data_module = new DataModule();
                      }
                  }

                  Source

                  The variable $test_root is not named in camelCase.
                  Open

                      public function loadTests()
                      {
                          $test_root = dir(__DIR__ . DIRECTORY_SEPARATOR . 'Test');
                  
                          // echo "<pre>"; echo print_r($test_root, true); echo "</pre>";
                  Severity: Minor
                  Found in phpsecinfo/PhpSecInfo/PhpSecInfo.php by phpmd

                  CamelCaseVariableName

                  Since: 0.2

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

                  Example

                  class ClassName {
                      public function doSomething() {
                          $data_module = new DataModule();
                      }
                  }

                  Source

                  The variable $group_name is not named in camelCase.
                  Open

                      public function renderOutput($page_title = 'PHP Security Information')
                      {
                          /**
                           * We need to use PhpSecInfo_Test::getBooleanIniValue() below
                           *
                  Severity: Minor
                  Found in phpsecinfo/PhpSecInfo/PhpSecInfo.php by phpmd

                  CamelCaseVariableName

                  Since: 0.2

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

                  Example

                  class ClassName {
                      public function doSomething() {
                          $data_module = new DataModule();
                      }
                  }

                  Source

                  The variable $group_name is not named in camelCase.
                  Open

                      public function _outputRenderTable($group_name, $group_results)
                      {
                          // exit out if $group_results was empty or not an array. This sorta seems a little hacky...
                          if (!is_array($group_results) || count($group_results) < 1) {
                              return false;
                  Severity: Minor
                  Found in phpsecinfo/PhpSecInfo/PhpSecInfo.php by phpmd

                  CamelCaseVariableName

                  Since: 0.2

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

                  Example

                  class ClassName {
                      public function doSomething() {
                          $data_module = new DataModule();
                      }
                  }

                  Source

                  The variable $page_title is not named in camelCase.
                  Open

                      public function renderOutput($page_title = 'PHP Security Information')
                      {
                          /**
                           * We need to use PhpSecInfo_Test::getBooleanIniValue() below
                           *
                  Severity: Minor
                  Found in phpsecinfo/PhpSecInfo/PhpSecInfo.php by phpmd

                  CamelCaseVariableName

                  Since: 0.2

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

                  Example

                  class ClassName {
                      public function doSomething() {
                          $data_module = new DataModule();
                      }
                  }

                  Source

                  The variable $test_results is not named in camelCase.
                  Open

                      public function _outputRenderTable($group_name, $group_results)
                      {
                          // exit out if $group_results was empty or not an array. This sorta seems a little hacky...
                          if (!is_array($group_results) || count($group_results) < 1) {
                              return false;
                  Severity: Minor
                  Found in phpsecinfo/PhpSecInfo/PhpSecInfo.php by phpmd

                  CamelCaseVariableName

                  Since: 0.2

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

                  Example

                  class ClassName {
                      public function doSomething() {
                          $data_module = new DataModule();
                      }
                  }

                  Source

                  The variable $this_dir is not named in camelCase.
                  Open

                      public function loadTests()
                      {
                          $test_root = dir(__DIR__ . DIRECTORY_SEPARATOR . 'Test');
                  
                          // echo "<pre>"; echo print_r($test_root, true); echo "</pre>";
                  Severity: Minor
                  Found in phpsecinfo/PhpSecInfo/PhpSecInfo.php by phpmd

                  CamelCaseVariableName

                  Since: 0.2

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

                  Example

                  class ClassName {
                      public function doSomething() {
                          $data_module = new DataModule();
                      }
                  }

                  Source

                  The variable $group_results is not named in camelCase.
                  Open

                      public function _outputRenderTable($group_name, $group_results)
                      {
                          // exit out if $group_results was empty or not an array. This sorta seems a little hacky...
                          if (!is_array($group_results) || count($group_results) < 1) {
                              return false;
                  Severity: Minor
                  Found in phpsecinfo/PhpSecInfo/PhpSecInfo.php by phpmd

                  CamelCaseVariableName

                  Since: 0.2

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

                  Example

                  class ClassName {
                      public function doSomething() {
                          $data_module = new DataModule();
                      }
                  }

                  Source

                  The method _outputGetResultTypeFromCode is not named in camelCase.
                  Open

                      public function _outputGetResultTypeFromCode($code)
                      {
                          switch ($code) {
                              case PHPSECINFO_TEST_RESULT_OK:
                                  return 'Pass';
                  Severity: Minor
                  Found in phpsecinfo/PhpSecInfo/PhpSecInfo.php by phpmd

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

                      public function _outputRenderStatsTable()
                      {
                          // Add by
                          // https://github.com/bigdeej/PhpSecInfo/tree/master/PhpSecInfo/Test/Core
                          $score = 100;
                  Severity: Minor
                  Found in phpsecinfo/PhpSecInfo/PhpSecInfo.php by phpmd

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

                      public function _outputRenderTable($group_name, $group_results)
                      {
                          // exit out if $group_results was empty or not an array. This sorta seems a little hacky...
                          if (!is_array($group_results) || count($group_results) < 1) {
                              return false;
                  Severity: Minor
                  Found in phpsecinfo/PhpSecInfo/PhpSecInfo.php by phpmd

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

                      public function _outputGetCssClassFromResult($code)
                      {
                          switch ($code) {
                              case PHPSECINFO_TEST_RESULT_OK:
                                  return 'value-ok';
                  Severity: Minor
                  Found in phpsecinfo/PhpSecInfo/PhpSecInfo.php by phpmd

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

                      public function _outputRenderNotRunTable()
                      {
                          $this->_outputRenderTable('Tests Not Run', $this->tests_not_run);
                      }
                  Severity: Minor
                  Found in phpsecinfo/PhpSecInfo/PhpSecInfo.php by phpmd

                  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