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

Completed
Pull Request — master (#569)
by Jérémiah
23:04
created

ExpressionFunction::__construct()   A

Complexity

Conditions 2
Paths 2

Size

Total Lines 7
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
eloc 3
dl 0
loc 7
rs 10
c 0
b 0
f 0
cc 2
nc 2
nop 3
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Overblog\GraphQLBundle\ExpressionLanguage;
6
7
use Overblog\GraphQLBundle\ExpressionLanguage\Exception\EvaluatorIsNotAllowedException;
8
use Symfony\Component\ExpressionLanguage\ExpressionFunction as BaseExpressionFunction;
9
10
class ExpressionFunction extends BaseExpressionFunction
11
{
12
    public function __construct(string $name, callable $compiler, ?callable $evaluator = null)
13
    {
14
        if (null === $evaluator) {
15
            $evaluator = new EvaluatorIsNotAllowedException($name);
16
        }
17
18
        parent::__construct($name, $compiler, $evaluator);
19
    }
20
}
21