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::toConfig()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 14

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 8
CRAP Score 1

Importance

Changes 0
Metric Value
dl 0
loc 14
ccs 8
cts 8
cp 1
rs 9.7998
c 0
b 0
f 0
cc 1
nc 1
nop 1
crap 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