Conditions | 3 |
Paths | 3 |
Total Lines | 12 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Tests | 6 |
CRAP Score | 3.0261 |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
25 | 4 | public function process(ContainerBuilder $container) |
|
26 | { |
||
27 | /* @var Definition $def */ |
||
28 | 4 | if (!$container->hasDefinition('php_translation.data_collector')) { |
|
29 | return; |
||
30 | } |
||
31 | |||
32 | 4 | if (!$container->hasDefinition('translator.data_collector')) { |
|
33 | // No Symfony translation data collector was found. We cannot use our collection without it. |
||
34 | 4 | $container->removeDefinition('php_translation.data_collector'); |
|
35 | 4 | } |
|
36 | 4 | } |
|
37 | } |
||
38 |