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 (#275)
by Hugo
15:12
created

ErrorFormattingEvent::getError()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 0
Metric Value
c 0
b 0
f 0
dl 0
loc 4
ccs 2
cts 2
cp 1
rs 10
cc 1
eloc 2
nc 1
nop 0
crap 1
1
<?php
2
3
namespace Overblog\GraphQLBundle\Event;
4
5
use GraphQL\Error\Error;
6
use Symfony\Component\EventDispatcher\Event;
7
8
final class ErrorFormattingEvent extends Event
9
{
10
    /** @var Error */
11
    private $error;
12
13
    /** @var \ArrayObject */
14
    private $formattedError;
15
16 31
    public function __construct(Error $error, array $formattedError)
17
    {
18 31
        $this->error = $error;
19 31
        $this->formattedError = new \ArrayObject($formattedError);
20 31
    }
21
22 20
    public function getError()
23
    {
24 20
        return $this->error;
25
    }
26
27
    /**
28
     * @return \ArrayObject
29
     */
30 23
    public function getFormattedError()
31
    {
32 23
        return $this->formattedError;
33
    }
34
}
35