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
Pull Request — 0.13 (#745)
by Timur
12:56
created

ErrorFormattingEvent::getError()   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\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