1 | <?php |
||
19 | final class SculpinTwigExtension extends CompilerExtension |
||
20 | { |
||
21 | // /** |
||
|
|||
22 | // * {@inheritdoc} |
||
23 | // */ |
||
24 | // public function build(ContainerBuilder $container) |
||
25 | // { |
||
26 | // $container->addCompilerPass(new TwigEnvironmentPass()); |
||
27 | // $container->addCompilerPass(new TwigLoaderPass()); |
||
28 | // } |
||
29 | |||
30 | public function loadConfiguration() |
||
37 | |||
38 | // protected function getServicesFile() : string |
||
39 | // { |
||
40 | // return __DIR__.'/Resources/config/services.yml'; |
||
41 | // } |
||
42 | |||
43 | protected function getConfiguration() : ConfigurationInterface |
||
47 | |||
48 | // protected function getParametersAliases() : array |
||
49 | // { |
||
50 | // return [ |
||
51 | // 'source_view_paths' => 'sculpin_twig.source_view_paths', |
||
52 | // 'view_paths' => 'sculpin_twig.view_paths', |
||
53 | // 'extensions' => 'sculpin_twig.extensions', |
||
54 | // ]; |
||
55 | // } |
||
56 | } |
||
57 |
Sometimes obsolete code just ends up commented out instead of removed. In this case it is better to remove the code once you have checked you do not need it.
The code might also have been commented out for debugging purposes. In this case it is vital that someone uncomments it again or your project may behave in very unexpected ways in production.
This check looks for comments that seem to be mostly valid code and reports them.