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   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 9
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 2
eloc 4
dl 0
loc 9
rs 10
c 0
b 0
f 0

1 Method

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