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 ( 24e000...abccf6 )
by Jérémiah
13:38
created

FieldDefinition::__construct()   A

Complexity

Conditions 2
Paths 2

Size

Total Lines 6
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 4
CRAP Score 2

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 6
ccs 4
cts 4
cp 1
rs 9.4285
cc 2
eloc 3
nc 2
nop 1
crap 2
1
<?php
2
3
/*
4
 * This file is part of the OverblogGraphQLBundle package.
5
 *
6
 * (c) Overblog <http://github.com/overblog/>
7
 *
8
 * For the full copyright and license information, please view the LICENSE
9
 * file that was distributed with this source code.
10
 */
11
12
namespace Overblog\GraphQLBundle\Definition;
13
14
use GraphQL\Type\Definition\Config;
15
use GraphQL\Type\Definition\FieldDefinition as BaseFieldDefinition;
16
17
class FieldDefinition extends BaseFieldDefinition
18
{
19 36
    public static function createMap(array $fields)
20
    {
21 36
        $map = [];
22 36
        foreach ($fields as $name => $field) {
23 36
            if (!isset($field['name'])) {
24 36
                $field['name'] = $name;
25 36
            }
26 36
            $map[$name] = static::create($field);
27 36
        }
28
29 36
        return $map;
30
    }
31
32
    /**
33
     * @param array $field
34
     *
35
     * @return FieldDefinition
36
     */
37 36
    public static function create($field)
38
    {
39 36
        Config::validate($field, static::getDefinition());
40
41 36
        return new static($field);
42
    }
43
}
44