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 ( 024700...341ac6 )
by Jérémiah
04:30
created

ResolverTaggedServiceMappingPass::getTagName()   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 1
Bugs 0 Features 0
Metric Value
c 1
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 8
    protected function getTagName()
17
    {
18 8
        return 'overblog_graphql.resolver';
19
    }
20
21 8
    protected function getParameterName()
22
    {
23 8
        return 'overblog_graphql.resolvers_mapping';
24
    }
25
26 8
    protected function checkRequirements($id, array $tag)
27
    {
28 8
        parent::checkRequirements($id, $tag);
29
30 8
        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 8
    }
36
}
37