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   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 13
Duplicated Lines 0 %

Test Coverage

Coverage 42.86%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 8
c 1
b 0
f 0
dl 0
loc 13
ccs 3
cts 7
cp 0.4286
rs 10
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 11 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
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