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
25:02
created

Query   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 2
eloc 7
dl 0
loc 12
rs 10
c 1
b 0
f 0

1 Method

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