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::process()   A

Complexity

Conditions 2
Paths 2

Size

Total Lines 12
Code Lines 6

Duplication

Lines 0
Ratio 0 %

Importance

Changes 2
Bugs 0 Features 0
Metric Value
eloc 6
c 2
b 0
f 0
dl 0
loc 12
rs 10
cc 2
nc 2
nop 1
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