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

NamedConfigProcessor   A

Complexity

Total Complexity 4

Size/Duplication

Total Lines 15
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 100%

Importance

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

1 Method

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