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
20:57
created

ArgumentsValidationException::getCategory()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 0
Metric Value
eloc 1
dl 0
loc 3
ccs 2
cts 2
cp 1
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
crap 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Overblog\GraphQLBundle\Validator\Exception;
6
7
use GraphQL\Error\ClientAware;
8
use Symfony\Component\Validator\ConstraintViolationListInterface;
9
use Throwable;
10
11
class ArgumentsValidationException extends \Exception implements ClientAware
12
{
13
    private $violations;
14
15 4
    public function __construct(ConstraintViolationListInterface $violations, Throwable $previous = null)
16
    {
17 4
        $this->violations = $violations;
18 4
        parent::__construct('Invalid data set', 0, $previous);
19 4
    }
20
21 4
    public function isClientSafe(): bool
22
    {
23 4
        return true;
24
    }
25
26 4
    public function getCategory(): string
27
    {
28 4
        return 'ArgumentsValidationException';
29
    }
30
31 4
    public function getViolations(): ConstraintViolationListInterface
32
    {
33 4
        return $this->violations;
34
    }
35
}
36