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 ( cab464...de2054 )
by Timur
15s 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 3
CRAP Score 1

Importance

Changes 0
Metric Value
eloc 2
dl 0
loc 4
ccs 3
cts 3
cp 1
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 2
crap 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
{
12
    /** @var Error */
13
    private $error;
14
15
    /** @var \ArrayObject */
16
    private $formattedError;
17
18 48
    public function __construct(Error $error, array $formattedError)
19
    {
20 48
        $this->error = $error;
21 48
        $this->formattedError = new \ArrayObject($formattedError);
22 48
    }
23
24 37
    public function getError()
25
    {
26 37
        return $this->error;
27
    }
28
29
    /**
30
     * @return \ArrayObject
31
     */
32 40
    public function getFormattedError(): \ArrayObject
33
    {
34 40
        return $this->formattedError;
35
    }
36
}
37