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

Completed
Push — master ( 26279b...73877d )
by Jérémiah
54s
created

checkRequirements()   A

Complexity

Conditions 3
Paths 2

Size

Total Lines 10
Code Lines 5

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 4
CRAP Score 3.7085

Importance

Changes 0
Metric Value
dl 0
loc 10
ccs 4
cts 7
cp 0.5714
rs 9.4285
c 0
b 0
f 0
cc 3
eloc 5
nc 2
nop 2
crap 3.7085
1
<?php
2
3
/*
4
 * This file is part of the OverblogGraphQLBundle package.
5
 *
6
 * (c) Overblog <http://github.com/overblog/>
7
 *
8
 * For the full copyright and license information, please view the LICENSE
9
 * file that was distributed with this source code.
10
 */
11
12
namespace Overblog\GraphQLBundle\DependencyInjection\Compiler;
13
14
class ResolverTaggedServiceMappingPass extends TaggedServiceMappingPass
15
{
16 9
    protected function getTagName()
17
    {
18 9
        return 'overblog_graphql.resolver';
19
    }
20
21 9
    protected function getParameterName()
22
    {
23 9
        return 'overblog_graphql.resolvers_mapping';
24
    }
25
26 9
    protected function checkRequirements($id, array $tag)
27
    {
28 9
        parent::checkRequirements($id, $tag);
29
30 9
        if (!isset($tag['method']) || !is_string($tag['method'])) {
31
            throw new \InvalidArgumentException(
32
                sprintf('Service tagged "%s" must have valid "method" argument.', $id)
33
            );
34
        }
35 9
    }
36
37 9
    protected function getResolverServiceID()
38
    {
39 9
        return 'overblog_graphql.resolver_resolver';
40
    }
41
}
42