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
Push — master ( 83db66...8ac73c )
by Jérémiah
21:08
created

EvaluatorIsNotAllowedException::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 5
CRAP Score 1

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 4
dl 0
loc 6
ccs 5
cts 5
cp 1
rs 10
c 1
b 0
f 0
cc 1
nc 1
nop 3
crap 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Overblog\GraphQLBundle\ExpressionLanguage\Exception;
6
7
use Throwable;
8
9
class EvaluatorIsNotAllowedException extends \Exception
10
{
11 143
    public function __construct(string $expressionFunctionName, int $code = 0, Throwable $previous = null)
12
    {
13 143
        parent::__construct(
14 143
            "The expression function '$expressionFunctionName' cannot be used by it's evaluator.",
15 143
            $code,
16 143
            $previous
17
        );
18 143
    }
19
20 7
    public function __invoke(): void
21
    {
22 7
        throw $this;
23
    }
24
}
25