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::__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 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