Kanti/htmly-installer

View on GitHub

Showing 765 of 765 total issues

Method printHeader has 170 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    public static function printHeader($version = null)
    {
        if (true) : ?>
            <!DOCTYPE html>
            <html>
Severity: Major
Found in src/HeaderTemplate.php - About 6 hrs to fix

    Method printForm has 69 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        public static function printForm()
        {
            if (true) : ?>
                <form method="POST">
                    <label for="user_name">Username:<span class="required">*</span></label>
    Severity: Major
    Found in src/FormTemplate.php - About 2 hrs to fix

      Avoid using short method names like Extract_Phar::go(). The configured minimum method name length is 3.
      Open

      Severity: Minor
      Found in htmly-installer.php by phpmd

      ShortMethodName

      Since: 0.2

      Detects when very short method names are used.

      Example

      class ShortMethod {
          public function a( $index ) { // Violation
          }
      }

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

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

      Severity: Minor
      Found in htmly-installer.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 '$ret' which will lead to PHP notices.
      Open

      Severity: Minor
      Found in htmly-installer.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 '$ret' which will lead to PHP notices.
      Open

      Severity: Minor
      Found in htmly-installer.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 '$ret' which will lead to PHP notices.
      Open

      Severity: Minor
      Found in htmly-installer.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 '$stat' which will lead to PHP notices.
      Open

      Severity: Minor
      Found in htmly-installer.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 '$ret' which will lead to PHP notices.
      Open

      Severity: Minor
      Found in htmly-installer.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 '$ret' which will lead to PHP notices.
      Open

      Severity: Minor
      Found in htmly-installer.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 '$ret' which will lead to PHP notices.
      Open

      Severity: Minor
      Found in htmly-installer.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 '$ret' which will lead to PHP notices.
      Open

      Severity: Minor
      Found in htmly-installer.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 '$ret' which will lead to PHP notices.
      Open

      Severity: Minor
      Found in htmly-installer.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 '$ret' which will lead to PHP notices.
      Open

      Severity: Minor
      Found in htmly-installer.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

      Method htaccess has 28 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

          public static function htaccess()
          {
              return <<<EOT
      # Don't show directory listings for URLs which map to a directory.
      Options -Indexes
      Severity: Minor
      Found in src/GetHtaccess.php - About 1 hr to fix

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

            protected function saveConfigs()
            {
                $this->extractUser();
                //save config.ini
                $config = array(
        Severity: Minor
        Found in src/Settings.php - About 1 hr to fix

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

          Severity: Minor
          Found in htmly-installer.php by phpcodesniffer

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

          class Backer
          Severity: Minor
          Found in backer.php by phpcodesniffer

          A file should declare new symbols (classes, functions, constants, etc.) and cause no other side effects, or it should execute logic with side effects, but should not do both. The first symbol is defined on line 103 and the first side effect is on line 3.
          Open

          Severity: Minor
          Found in htmly-installer.php by phpcodesniffer

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

          Severity: Minor
          Found in htmly-installer.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

          Severity
          Category
          Status
          Source
          Language