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   A

Complexity

Total Complexity 5

Size/Duplication

Total Lines 17
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 5
lcom 0
cbo 0
dl 0
loc 17
ccs 6
cts 6
cp 1
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
B process() 0 11 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