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
Push — 0.11 ( 888f0c...0060d3 )
by Jérémiah
18:21
created

ExecutorResultEvent::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
eloc 1
dl 0
loc 3
ccs 0
cts 1
cp 0
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 1
crap 2
1
<?php
2
3
namespace Overblog\GraphQLBundle\Event;
4
5
use GraphQL\Executor\ExecutionResult;
6
use Symfony\Contracts\EventDispatcher\Event;
7
8
// TODO(mcg-web): remove hack after migrating Symfony >= 4.3
9 1
if (EventDispatcherVersionHelper::isForLegacy()) {
10
    final class ExecutorResultEvent extends \Symfony\Component\EventDispatcher\Event
0 ignored issues
show
Deprecated Code introduced by
The class Symfony\Component\EventDispatcher\Event has been deprecated: since Symfony 4.3, use "Symfony\Contracts\EventDispatcher\Event" instead ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-deprecated  annotation

10
    final class ExecutorResultEvent extends /** @scrutinizer ignore-deprecated */ \Symfony\Component\EventDispatcher\Event
Loading history...
11
    {
12
        /** @var ExecutionResult */
13
        private $result;
14
15
        public function __construct(ExecutionResult $result)
16
        {
17
            $this->result = $result;
18
        }
19
20
        /**
21
         * @return ExecutionResult
22
         */
23
        public function getResult()
24
        {
25
            return $this->result;
26
        }
27
    }
28
} else {
29
    final class ExecutorResultEvent extends Event
30
    {
31
        /** @var ExecutionResult */
32
        private $result;
33
34 84
        public function __construct(ExecutionResult $result)
35
        {
36 84
            $this->result = $result;
37 84
        }
38
39
        /**
40
         * @return ExecutionResult
41
         */
42 84
        public function getResult()
43
        {
44 84
            return $this->result;
45
        }
46
    }
47
}
48