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
Push — master ( 48eab4...bce55d )
by Jérémiah
14:36
created

ObjectNode::toConfig()   A

Complexity

Conditions 3
Paths 2

Size

Total Lines 19

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 10
CRAP Score 3

Importance

Changes 0
Metric Value
dl 0
loc 19
ccs 10
cts 10
cp 1
rs 9.6333
c 0
b 0
f 0
cc 3
nc 2
nop 1
crap 3
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Overblog\GraphQLBundle\Config\Parser\GraphQL\ASTConverter;
6
7
use GraphQL\Language\AST\Node;
8
9
class ObjectNode implements NodeInterface
10
{
11
    protected const TYPENAME = 'object';
12
13 2
    public static function toConfig(Node $node): array
14
    {
15 2
        $config = DescriptionNode::toConfig($node) + [
16 2
            'fields' => FieldsNode::toConfig($node),
17
        ];
18
19 2
        if (!empty($node->interfaces)) {
20 2
            $interfaces = [];
21 2
            foreach ($node->interfaces as $interface) {
22 2
                $interfaces[] = TypeNode::astTypeNodeToString($interface);
23
            }
24 2
            $config['interfaces'] = $interfaces;
25
        }
26
27
        return [
28 2
            'type' => static::TYPENAME,
29 2
            'config' => $config,
30
        ];
31
    }
32
}
33