1 | <?php |
||
8 | class AppKernel extends Kernel |
||
9 | { |
||
10 | use MicroKernelTrait; |
||
11 | |||
12 | /** |
||
13 | * @return array |
||
14 | */ |
||
15 | public function registerBundles() |
||
24 | |||
25 | /** |
||
26 | * @return string |
||
27 | */ |
||
28 | public function getCacheDir() |
||
32 | |||
33 | /** |
||
34 | * @return string |
||
35 | */ |
||
36 | public function getLogDir() |
||
40 | |||
41 | /** |
||
42 | * @param ContainerBuilder $c |
||
43 | * @param LoaderInterface $loader |
||
44 | */ |
||
45 | protected function configureContainer(ContainerBuilder $c, LoaderInterface $loader) |
||
81 | |||
82 | /** |
||
83 | * Add or import routes into your application. |
||
84 | * |
||
85 | * $routes->import('config/routing.yml'); |
||
86 | * $routes->add('/admin', 'AppBundle:Admin:dashboard', 'admin_dashboard'); |
||
87 | * |
||
88 | * @param \Symfony\Component\Routing\RouteCollectionBuilder $routes |
||
89 | */ |
||
90 | protected function configureRoutes(\Symfony\Component\Routing\RouteCollectionBuilder $routes) |
||
94 | } |
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.