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:46
created

Arguments::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 9
Code Lines 6

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 5
CRAP Score 1.0046

Importance

Changes 0
Metric Value
eloc 6
c 0
b 0
f 0
dl 0
loc 9
ccs 5
cts 6
cp 0.8333
rs 10
cc 1
nc 1
nop 1
crap 1.0046
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\Transformer\ArgumentsTransformer;
9
10
final class Arguments extends ExpressionFunction
11
{
12 134
    public function __construct(ArgumentsTransformer $transformer)
13
    {
14 134
        parent::__construct(
15 134
            'arguments',
16
            function ($mapping, $data) {
17
                return "\$globalVariable->get('container')->get('overblog_graphql.arguments_transformer')->getArguments($mapping, $data, \$info)";
18 134
            },
19
            function ($arguments, $mapping, $data) use ($transformer) {
20 1
                return $transformer->getArguments($mapping, $data, $arguments['info']);
21 134
            }
22
        );
23 134
    }
24
}
25