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

CustomScalarNode   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 22
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 100%

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A toConfig() 0 14 1
A mustOverrideConfig() 0 4 1
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 CustomScalarNode implements NodeInterface
10
{
11 2
    public static function toConfig(Node $node): array
12
    {
13 2
        $mustOverride = [__CLASS__, 'mustOverrideConfig'];
14 2
        $config = DescriptionNode::toConfig($node) + [
15 2
            'serialize' => $mustOverride,
16 2
            'parseValue' => $mustOverride,
17 2
            'parseLiteral' => $mustOverride,
18
        ];
19
20
        return [
21 2
            'type' => 'custom-scalar',
22 2
            'config' => $config,
23
        ];
24
    }
25
26 1
    public static function mustOverrideConfig(): void
27
    {
28 1
        throw new \RuntimeException('Config entry must be override with ResolverMap to be used.');
29
    }
30
}
31