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:59
created

ArgumentsValidationException   A

Complexity

Total Complexity 4

Size/Duplication

Total Lines 23
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

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

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
2
3
declare(strict_types=1);
4
5
namespace Overblog\GraphQLBundle\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