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 (#786)
by Timur
21:44
created

Query::__construct()   A

Complexity

Conditions 2
Paths 1

Size

Total Lines 8
Code Lines 5

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 5
dl 0
loc 8
rs 10
c 1
b 0
f 0
cc 2
nc 1
nop 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
final class Query extends ExpressionFunction
10
{
11
    public const NAME = 'query';
12
13
    public function __construct($name = self::NAME)
14
    {
15
        parent::__construct(
16
            $name,
17
            function (string $alias, ...$args) {
18
                $args = (count($args) > 0) ? (', '.join(', ', $args)) : '';
19
20
                return "$this->gqlServices->query({$alias}{$args})";
21
            }
22
        );
23
    }
24
}
25