tests/Flow/Directives/MinifyTest.php

Summary

Maintainability
A
2 hrs
Test Coverage

Method testExtends has 29 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    public function testExtends()
    {

        $codeWithoutComments = <<<code
    <h1>{{ message }}</h1>
Severity: Minor
Found in tests/Flow/Directives/MinifyTest.php - About 1 hr to fix

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

        public function testComments()
        {
    
            $code = <<<code
            <!-- print message -->
    Severity: Minor
    Found in tests/Flow/Directives/MinifyTest.php - About 1 hr to fix

      Missing class import via use statement (line '137', column '22').
      Open

              $class = new \ReflectionClass(\get_class($flow));
      Severity: Minor
      Found in tests/Flow/Directives/MinifyTest.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

      Missing class import via use statement (line '23', column '22').
      Open

              $class = new \ReflectionClass(\get_class($flow));
      Severity: Minor
      Found in tests/Flow/Directives/MinifyTest.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

      Missing class import via use statement (line '51', column '22').
      Open

              $class = new \ReflectionClass(\get_class($flow));
      Severity: Minor
      Found in tests/Flow/Directives/MinifyTest.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

      Missing class import via use statement (line '87', column '22').
      Open

              $class = new \ReflectionClass(\get_class($flow));
      Severity: Minor
      Found in tests/Flow/Directives/MinifyTest.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 closing brace for the class must go on the next line after the body
      Open

      }

      Function closing brace must go on the next line following the body; found 1 blank lines before brace
      Open

          }

      There are no issues that match your filters.

      Category
      Status