We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
| Conditions | 3 |
| Paths | 3 |
| Total Lines | 16 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 8 |
| CRAP Score | 3.0123 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 14 | 31 | public function process(ContainerBuilder $container): void |
|
| 15 | { |
||
| 16 | 31 | if (!$container->has(ConfigProcessor::class)) { |
|
| 17 | return; |
||
| 18 | } |
||
| 19 | |||
| 20 | 31 | $definition = $container->findDefinition(ConfigProcessor::class); |
|
| 21 | |||
| 22 | 31 | $taggedServices = $container->findTaggedServiceIds('overblog_graphql.definition_config_processor'); |
|
| 23 | |||
| 24 | 31 | $arguments = []; |
|
| 25 | 31 | foreach ($taggedServices as $id => $tags) { |
|
| 26 | 31 | $arguments[] = new Reference($id); |
|
| 27 | } |
||
| 28 | |||
| 29 | 31 | $definition->setArgument('$processors', $arguments); |
|
| 30 | 31 | } |
|
| 32 |