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   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 27
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 3
c 0
b 0
f 0
lcom 0
cbo 1
dl 0
loc 27
ccs 8
cts 8
cp 1
rs 10

3 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 5 1
A getError() 0 4 1
A getFormattedError() 0 4 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