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 Permalink
    Last edited by Martin Aarhof
  6. // }
  7. }
  8. }

Text files should end with a valid new line character.

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

  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 Permalink
    Collective