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

ExecutorContextEvent   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 19
Duplicated Lines 0 %

Test Coverage

Coverage 0%

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 3 1
A getExecutorContext() 0 3 1
1
<?php
2
3
namespace Overblog\GraphQLBundle\Event;
4
5
use Symfony\Contracts\EventDispatcher\Event;
6
7
// TODO(mcg-web): remove hack after migrating Symfony >= 4.3
8 1
if (EventDispatcherVersionHelper::isForLegacy()) {
9
    final class ExecutorContextEvent 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

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