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 — annotations ( 16d0c2...28ae84 )
by Jérémiah
17:04
created

UnionNode   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 20
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 3
lcom 0
cbo 2
dl 0
loc 20
ccs 9
cts 9
cp 1
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A toConfig() 0 17 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 UnionNode implements NodeInterface
10
{
11 1
    public static function toConfig(Node $node): array
12
    {
13 1
        $config = DescriptionNode::toConfig($node);
14
15 1
        if (!empty($node->types)) {
16 1
            $types = [];
17 1
            foreach ($node->types as $type) {
18 1
                $types[] = TypeNode::astTypeNodeToString($type);
19
            }
20 1
            $config['types'] = $types;
21
        }
22
23
        return [
24 1
            'type' => 'union',
25 1
            'config' => $config,
26
        ];
27
    }
28
}
29