Scrutinizer GitHub App not installed

We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.

Install GitHub App

Completed
Pull Request — master (#511)
by Andrey
21:36
created

ConfigProcessorPass   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 14
Duplicated Lines 0 %

Importance

Changes 2
Bugs 0 Features 0
Metric Value
wmc 2
eloc 7
c 2
b 0
f 0
dl 0
loc 14
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A process() 0 12 2
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Overblog\GraphQLBundle\DependencyInjection\Compiler;
6
7
use Overblog\GraphQLBundle\Definition\ConfigProcessor;
8
use Symfony\Component\DependencyInjection\Compiler\CompilerPassInterface;
9
use Symfony\Component\DependencyInjection\ContainerBuilder;
10
use Symfony\Component\DependencyInjection\Reference;
11
12
class ConfigProcessorPass implements CompilerPassInterface
13
{
14
    public function process(ContainerBuilder $container): void
15
    {
16
        $definition = $container->findDefinition(ConfigProcessor::class);
17
18
        $taggedServices = $container->findTaggedServiceIds('overblog_graphql.definition_config_processor');
19
20
        $arguments = [];
21
        foreach ($taggedServices as $id => $tags) {
22
            $arguments[] = new Reference($id);
23
        }
24
25
        $definition->setArgument('$processors', $arguments);
26
    }
27
}
28