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

Passed
Pull Request — master (#536)
by
unknown
20:23
created

Resolver   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 11
Duplicated Lines 0 %

Test Coverage

Coverage 83.33%

Importance

Changes 0
Metric Value
wmc 1
eloc 7
dl 0
loc 11
ccs 5
cts 6
cp 0.8333
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 9 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Overblog\GraphQLBundle\ExpressionLanguage\ExpressionFunction\GraphQL;
6
7
use Overblog\GraphQLBundle\ExpressionLanguage\ExpressionFunction;
8
use Overblog\GraphQLBundle\Resolver\ResolverResolver;
9
10
final class Resolver extends ExpressionFunction
11
{
12 120
    public function __construct(ResolverResolver $resolver, $name = 'resolver')
13
    {
14 120
        parent::__construct(
15 120
            $name,
16
            function (string $alias, string $args = '[]'): string {
17 22
                return "\$globalVariable->get('resolverResolver')->resolve([$alias, $args])";
18 120
            },
19
            function ($arguments, $alias, $args) use ($resolver) {
20
                return $resolver->resolve([$alias, $args]);
21 120
            }
22
        );
23 120
    }
24
}
25