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

Passed
Push — master ( 6eaf22...743834 )
by Renato
56s
created

NamedConfigProcessor::process()   A

Complexity

Conditions 4
Paths 5

Size

Total Lines 9
Code Lines 5

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 5
CRAP Score 4

Importance

Changes 0
Metric Value
dl 0
loc 9
ccs 5
cts 5
cp 1
rs 9.2
c 0
b 0
f 0
cc 4
eloc 5
nc 5
nop 1
crap 4
1
<?php
2
3
namespace Overblog\GraphQLBundle\Config\Processor;
4
5
final class NamedConfigProcessor implements ProcessorInterface
6
{
7
    /**
8
     * {@inheritdoc}
9
     */
10 29
    public static function process(array $configs)
11
    {
12 29
        foreach ($configs as $name => &$config) {
13 29
            $config['config'] = isset($config['config']) && is_array($config['config']) ? $config['config'] : [];
14 29
            $config['config']['name'] = $name;
15
        }
16
17 29
        return $configs;
18
    }
19
}
20