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
Push — master ( bce55d...b5f3f1 )
by Jérémiah
24:59
created

ConfigProcessor::__construct()   A

Complexity

Conditions 2
Paths 2

Size

Total Lines 6

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 6

Importance

Changes 0
Metric Value
dl 0
loc 6
ccs 0
cts 0
cp 0
rs 10
c 0
b 0
f 0
cc 2
nc 2
nop 1
crap 6
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Overblog\GraphQLBundle\Definition;
6
7
use Overblog\GraphQLBundle\Definition\ConfigProcessor\ConfigProcessorInterface;
8
9
final class ConfigProcessor implements ConfigProcessorInterface
10
{
11
    /**
12
     * @var ConfigProcessorInterface[]
13
     */
14
    private $processors;
15
16
    public function __construct(iterable $processors)
17
    {
18
        foreach ($processors as $processor) {
19
            $this->register($processor);
20
        }
21
    }
22
23
    public function getProcessors()
24
    {
25
        return $this->processors;
26 93
    }
27
28 93
    public function register(ConfigProcessorInterface $configProcessor): void
29 93
    {
30
        $this->processors[] = $configProcessor;
31 93
    }
32
33 93
    public function process(LazyConfig $lazyConfig): LazyConfig
34 1
    {
35
        foreach ($this->getProcessors() as $processor) {
36 93
            $lazyConfig = $processor->process($lazyConfig);
37 93
        }
38
39 92
        return $lazyConfig;
40
    }
41
}
42