| Conditions | 3 |
| Paths | 3 |
| Total Lines | 12 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 7 |
| CRAP Score | 3 |
| Changes | 0 | ||
| 1 | <?php |
||
| 30 | 34 | public function process(ContainerBuilder $container) |
|
| 31 | { |
||
| 32 | 34 | if (!$container->hasDefinition(GeocoderDataCollector::class)) { |
|
| 33 | 30 | return; |
|
| 34 | } |
||
| 35 | |||
| 36 | 4 | $dataCollector = $container->getDefinition(GeocoderDataCollector::class); |
|
| 37 | |||
| 38 | 4 | foreach ($container->findTaggedServiceIds('bazinga_geocoder.profiling_plugin') as $providerId => $attributes) { |
|
| 39 | 2 | $dataCollector->addMethodCall('addInstance', [new Reference($providerId)]); |
|
| 40 | } |
||
| 41 | 4 | } |
|
| 42 | } |
||
| 43 |