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