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   A

Complexity

Total Complexity 5

Size/Duplication

Total Lines 23
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 72.72%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 5
c 1
b 0
f 0
lcom 0
cbo 1
dl 0
loc 23
ccs 8
cts 11
cp 0.7272
rs 10

3 Methods

Rating   Name   Duplication   Size   Complexity  
A getTagName() 0 4 1
A getParameterName() 0 4 1
A checkRequirements() 0 10 3
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