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 (#291)
by Jérémiah
16:08
created

NamedConfigProcessor::process()   B

Complexity

Conditions 5
Paths 9

Size

Total Lines 11
Code Lines 6

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 6
CRAP Score 5

Importance

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