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   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 16
Duplicated Lines 0 %

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
wmc 2
eloc 4
dl 0
loc 16
ccs 0
cts 3
cp 0
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A getResult() 0 3 1
A __construct() 0 3 1
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