| Conditions | 5 |
| Paths | 5 |
| Total Lines | 14 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 8 |
| CRAP Score | 5 |
| Changes | 0 | ||
| 1 | <?php |
||
| 27 | 4 | public function process(ContainerBuilder $container) |
|
| 28 | { |
||
| 29 | 4 | if (!$container->hasParameter('kernel.debug') || !$container->getParameter('kernel.debug')) { |
|
| 30 | 2 | return; |
|
| 31 | } |
||
| 32 | |||
| 33 | 2 | if ($container->hasDefinition('twig.extension.profiler')) { |
|
| 34 | 1 | $container->getDefinition('twig.extension.profiler')->addTag('run_open_code.query_resources_loader.twig.extension'); |
|
| 35 | } |
||
| 36 | |||
| 37 | 2 | if ($container->hasDefinition('twig.extension.debug')) { |
|
| 38 | 1 | $container->getDefinition('twig.extension.debug')->addTag('run_open_code.query_resources_loader.twig.extension'); |
|
| 39 | } |
||
| 40 | 2 | } |
|
| 41 | } |
||
| 42 |