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::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
eloc 2
dl 0
loc 4
ccs 0
cts 0
cp 0
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 2
crap 2
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