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 (#536)
by
unknown
19:43
created

ArgumentsValidationException   A

Complexity

Total Complexity 4

Size/Duplication

Total Lines 23
Duplicated Lines 0 %

Test Coverage

Coverage 0%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 4
eloc 7
dl 0
loc 23
ccs 0
cts 16
cp 0
rs 10
c 1
b 0
f 0

4 Methods

Rating   Name   Duplication   Size   Complexity  
A getViolations() 0 3 1
A __construct() 0 4 1
A getCategory() 0 3 1
A isClientSafe() 0 3 1
1
<?php declare(strict_types=1);
2
3
namespace Overblog\GraphQLBundle\Exception;
4
5
use GraphQL\Error\ClientAware;
6
use Symfony\Component\Validator\ConstraintViolationListInterface;
7
use Throwable;
8
9
class ArgumentsValidationException extends \Exception implements ClientAware
10
{
11
    private $violations;
12
13
    public function __construct(ConstraintViolationListInterface $violations, Throwable $previous = null)
14
    {
15
        $this->violations = $violations;
16
        parent::__construct('Invalid data set', 0, $previous);
17
    }
18
19
    public function isClientSafe(): bool
20
    {
21
        return true;
22
    }
23
24
    public function getCategory(): string
25
    {
26
        return 'ArgumentsValidationException';
27
    }
28
29
    public function getViolations(): ConstraintViolationListInterface
30
    {
31
        return $this->violations;
32
    }
33
}
34