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
Push — 0.13 ( ff6287...cab464 )
by Jérémiah
16s queued 11s
created

ErrorFormattingEvent   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 25
Duplicated Lines 0 %

Test Coverage

Coverage 20%

Importance

Changes 0
Metric Value
wmc 3
eloc 7
dl 0
loc 25
ccs 1
cts 5
cp 0.2
rs 10
c 0
b 0
f 0

3 Methods

Rating   Name   Duplication   Size   Complexity  
A getError() 0 3 1
A getFormattedError() 0 3 1
A __construct() 0 4 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Overblog\GraphQLBundle\Event;
6
7
use GraphQL\Error\Error;
8
use Symfony\Contracts\EventDispatcher\Event;
9
10
final class ErrorFormattingEvent extends Event
11 1
{
12
    /** @var Error */
13
    private $error;
14
15
    /** @var \ArrayObject */
16
    private $formattedError;
17
18
    public function __construct(Error $error, array $formattedError)
19
    {
20
        $this->error = $error;
21
        $this->formattedError = new \ArrayObject($formattedError);
22
    }
23
24
    public function getError()
25
    {
26
        return $this->error;
27
    }
28
29
    /**
30
     * @return \ArrayObject
31
     */
32
    public function getFormattedError(): \ArrayObject
33
    {
34
        return $this->formattedError;
35
    }
36
}
37