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 ( 62e1fb...805ef9 )
by Jérémiah
45s
created

Resolver   A

Complexity

Total Complexity 7

Size/Duplication

Total Lines 24
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 3

Test Coverage

Coverage 100%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 7
c 1
b 0
f 0
lcom 0
cbo 3
dl 0
loc 24
ccs 15
cts 15
cp 1
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
B defaultResolveFn() 0 21 7
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\Resolver;
13
14
use GraphQL\Type\Definition\ResolveInfo;
15
use Symfony\Component\PropertyAccess\PropertyAccess;
16
17
class Resolver
18
{
19 29
    public static function defaultResolveFn($source, $args, ResolveInfo $info)
0 ignored issues
show
Unused Code introduced by
The parameter $args is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
20
    {
21 29
        $fieldName = $info->fieldName;
22 29
        $property = null;
23
24 29
        $accessor = PropertyAccess::createPropertyAccessor();
25
26 29
        if (is_array($source) || $source instanceof \ArrayAccess) {
27 18
            $index = sprintf('[%s]', $fieldName);
28
29 18
            if ($accessor->isReadable($source, $index)) {
30 18
                $property = $accessor->getValue($source, $index);
31 18
            }
32 29
        } elseif (is_object($source)) {
33 16
            if ($accessor->isReadable($source, $fieldName)) {
34 15
                $property = $accessor->getValue($source, $fieldName);
35 15
            }
36 16
        }
37
38 29
        return $property instanceof \Closure ? $property($source) : $property;
39
    }
40
}
41