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

ValueResolver::__construct()   A

Complexity

Conditions 2
Paths 1

Size

Total Lines 9

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 5
CRAP Score 2.0185

Importance

Changes 0
Metric Value
dl 0
loc 9
c 0
b 0
f 0
ccs 5
cts 6
cp 0.8333
rs 9.9666
cc 2
nc 1
nop 1
crap 2.0185
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 63
    public function __construct($name = 'value_resolver')
12
    {
13 63
        parent::__construct(
14 63
            $name,
15
            function ($args = '[]', $method = null) {
16
                return \sprintf('call_user_func_array([$value, %s], array_values(%s));', $method ? : '$info->fieldName', $args);
17 63
            }
18
        );
19 63
    }
20
}
21