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
Pull Request — master (#70)
by Jérémiah
07:10
created

getResolverServiceID()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 0
Metric Value
c 0
b 0
f 0
dl 0
loc 4
ccs 2
cts 2
cp 1
rs 10
cc 1
eloc 2
nc 1
nop 0
crap 1
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