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 — 0.14 (#851)
by Jérémiah
08:23
created

Resolver::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 11
Code Lines 7

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 3
CRAP Score 1.1865

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 7
c 1
b 0
f 0
nc 1
nop 1
dl 0
loc 11
ccs 3
cts 7
cp 0.4286
crap 1.1865
rs 10
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
/**
10
 * @deprecated since 0.14 and will be removed in 1.0. Use Overblog\GraphQLBundle\ExpressionLanguage\ExpressionFunction\GraphQL\Query instead.
11
 */
12
final class Resolver extends ExpressionFunction
13
{
14 149
    public function __construct($name = 'resolver')
15
    {
16 149
        parent::__construct(
17
            $name,
18 149
            function (string $alias, string $args = '[]') {
19
                @trigger_error(
20
                    "The 'resolver' expression function is deprecated since 0.14 and will be removed in 1.0. Use 'query' instead. For more info visit: https://github.com/overblog/GraphQLBundle/issues/775",
21
                    E_USER_DEPRECATED
22
                );
23
24
                return "$this->gqlServices->query($alias, ...$args)";
25 149
            }
26
        );
27 149
    }
28
}
29