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 — annotations (#404)
by Vincent
20:31
created

ValueResolver   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 0
Metric Value
wmc 2
lcom 0
cbo 1
dl 0
loc 12
c 0
b 0
f 0
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 9 2
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Overblog\GraphQLBundle\ExpressionLanguage\ExpressionFunction\GraphQL;
6
7
use Overblog\GraphQLBundle\ExpressionLanguage\ExpressionFunction;
8
9
final class ValueResolver extends ExpressionFunction
10
{
11
    public function __construct($name = 'value_resolver')
12
    {
13
        parent::__construct(
14
            $name,
15
            function ($args = '[]', $method = null) {
16
                return \sprintf('call_user_func_array([$value, %s], array_values(%s));', $method ?: '$info->fieldName', $args);
17
            }
18
        );
19
    }
20
}
21