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 — 0.11 ( 393b72...07e5a8 )
by Jérémiah
53s
created

CustomScalarNode::mustOverrideConfig()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 0
Metric Value
dl 0
loc 4
ccs 2
cts 2
cp 1
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
crap 1
1
<?php
2
3
namespace Overblog\GraphQLBundle\Config\Parser\GraphQL\ASTConverter;
4
5
use GraphQL\Language\AST\Node;
6
7
class CustomScalarNode implements NodeInterface
8
{
9 2
    public static function toConfig(Node $node)
10
    {
11 2
        $mustOverride = [__CLASS__, 'mustOverrideConfig'];
12
        $config = [
13 2
            'description' => DescriptionNode::toConfig($node),
14 2
            'serialize' => $mustOverride,
15 2
            'parseValue' => $mustOverride,
16 2
            'parseLiteral' => $mustOverride,
17
        ];
18
19
        return [
20 2
            'type' => 'custom-scalar',
21 2
            'config' => $config,
22
        ];
23
    }
24
25 1
    public static function mustOverrideConfig()
26
    {
27 1
        throw new \RuntimeException('Config entry must be override with ResolverMap to be used.');
28
    }
29
}
30