| Conditions | 2 |
| Paths | 2 |
| Total Lines | 14 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 10 |
| CRAP Score | 2 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 30 | 7 | public function process(ContainerBuilder $container) |
|
| 31 | { |
||
| 32 | 7 | $taggedServices = $container->findTaggedServiceIds('sauls_collection.converter'); |
|
| 33 | |||
| 34 | 7 | if (empty($taggedServices)) { |
|
| 35 | 6 | return; |
|
| 36 | } |
||
| 37 | |||
| 38 | 1 | register_converters( |
|
| 39 | 1 | array_map( |
|
| 40 | 1 | function ($converterId) use ($container) { |
|
| 41 | 1 | return $container->get($converterId); |
|
| 42 | 1 | }, |
|
| 43 | 1 | array_keys($taggedServices) |
|
| 44 | ) |
||
| 48 |