Your project should not contain commented code

More information: https://insight.symfony.com/what-we-analyse/php.commented_out_code

  1. $loader->load('translator.php');
  2. $loader->load('command.php');
  3. $loader->load('collector.php');
  4. // if ($container->hasParameter('kernel.debug') && $container->getParameter('kernel.debug')) {
  5. // $loader->load('collector.php');

    Commented out code reduces readability and lowers the code confidence for other developers. If it's common usage for debug, it should not be committed. Using a version control system, such code can be safely removed.

    Time to fix: about 30 minutes
    Read doc Open Issue Permalink
    Last edited by Martin Aarhof
  6. // }
  7. }
  8. }

Text files should end with a valid new line character. 2

More information: https://insight.symfony.com/what-we-analyse/missing_e_o_l

in .gitignore, line 6
  1. /.php-cs-fixer.cache
  2. /composer.lock
  3. /vendor
  4. /.build
  5. /.phpunit.cache
  6. /var

    This file ends with no newline character, or with a different newline character than other files in your project. It won't render properly on a terminal, and it's considered a bad practice.

    Time to fix: about 15 minutes
    Read doc Open Issue Permalink
    Last edited by Martin Aarhof
  1. </tr>
  2. {% endfor %}
  3. </table>
  4. {% endfor %}
  5. {% endblock %}
  6. This file ends with no newline character, or with a different newline character than other files in your project. It won't render properly on a terminal, and it's considered a bad practice.

    Time to fix: about 15 minutes
    Read doc Open Issue Permalink
    Collective