We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
Conditions | 4 |
Paths | 3 |
Total Lines | 17 |
Code Lines | 9 |
Lines | 0 |
Ratio | 0 % |
Tests | 10 |
CRAP Score | 4 |
Changes | 0 |
1 | <?php |
||
15 | 26 | public function process(ContainerBuilder $container) |
|
16 | { |
||
17 | 26 | $definition = $container->findDefinition(ConfigProcessor::class); |
|
18 | 26 | $taggedServices = $container->findTaggedServiceIds('overblog_graphql.definition_config_processor', true); |
|
19 | |||
20 | 26 | foreach ($taggedServices as $id => $tags) { |
|
21 | 26 | foreach ($tags as $attributes) { |
|
22 | 26 | $definition->addMethodCall( |
|
23 | 26 | 'addConfigProcessor', |
|
24 | [ |
||
25 | 26 | new Reference($id), |
|
26 | 26 | isset($attributes['priority']) ? $attributes['priority'] : 0, |
|
27 | ] |
||
28 | ); |
||
29 | } |
||
30 | } |
||
31 | 26 | } |
|
32 | } |
||
33 |