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
Pull Request — master (#234)
by Jérémiah
04:38
created

NodeDefinition   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 25
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
wmc 2
c 0
b 0
f 0
lcom 0
cbo 0
dl 0
loc 25
ccs 0
cts 8
cp 0
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A toMappingDefinition() 0 22 2
1
<?php
2
3
namespace Overblog\GraphQLBundle\Relay\Node;
4
5
use Overblog\GraphQLBundle\Definition\Builder\MappingInterface;
6
7
final class NodeDefinition implements MappingInterface
8
{
9
    public function toMappingDefinition(array $config)
10
    {
11
        $name = $config['name'];
12
        $resolveType = empty($config['resolveType']) ? null : $config['resolveType'];
13
14
        return [
15
            $name => [
16
                'type' => 'interface',
17
                'config' => [
18
                    'name' => $config['name'],
19
                    'description' => 'Fetches an object given its ID',
20
                    'fields' => [
21
                        'id' => [
22
                            'type' => 'ID!',
23
                            'description' => 'The ID of an object',
24
                        ],
25
                    ],
26
                    'resolveType' => $resolveType,
27
                ],
28
            ],
29
        ];
30
    }
31
}
32