| Conditions | 3 |
| Paths | 3 |
| Total Lines | 15 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 7 |
| CRAP Score | 3 |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 26 | 3 | public function process(ContainerBuilder $container) |
|
| 27 | { |
||
| 28 | |||
| 29 | 3 | if (!$container->hasDefinition('runopencode.exchange_rate.registry.rates')) { |
|
| 30 | 1 | return; |
|
| 31 | } |
||
| 32 | |||
| 33 | 2 | $registry = $container->findDefinition('runopencode.exchange_rate.registry.rates'); |
|
| 34 | |||
| 35 | 2 | foreach (array_keys($container->findTaggedServiceIds('runopencode.exchange_rate.rate_configuration')) as $id) { |
|
| 36 | |||
| 37 | $registry |
||
| 38 | 2 | ->addMethodCall('add', [new Reference($id)]); |
|
| 39 | } |
||
| 40 | 2 | } |
|
| 41 | } |
||
| 42 |