Event
last analyzed

Complexity

Total Complexity 0

Size/Duplication

Total Lines 4
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
wmc 0
lcom 0
cbo 0
dl 0
loc 4
ccs 0
cts 0
cp 0
c 0
b 0
f 0
1
<?php
2
3
4
namespace Freshcells\SoapClientBundle\Event;
5
6
use Symfony\Component\EventDispatcher\Event as ComponentEvent;
7
use Symfony\Contracts\EventDispatcher\Event as ContractEvent;
8
9
// Symfony 4.3 BC layer
10 3
if (class_exists(ContractEvent::class)) {
11
// @codingStandardsIgnoreStart
12
    abstract class Event extends ContractEvent
13
    {
14
// @codingStandardsIgnoreEnd
15
    }
16
} else {
17
// @codingStandardsIgnoreStart
18
    abstract class Event extends ComponentEvent
0 ignored issues
show
Comprehensibility Best Practice introduced by
The type Freshcells\SoapClientBundle\Event\Event has been defined more than once; this definition is ignored, only the first definition in this file (L12-15) is considered.

This check looks for classes that have been defined more than once in the same file.

If you can, we would recommend to use standard object-oriented programming techniques. For example, to avoid multiple types, it might make sense to create a common interface, and then multiple, different implementations for that interface.

This also has the side-effect of providing you with better IDE auto-completion, static analysis and also better OPCode caching from PHP.

Loading history...
19
    {
20
// @codingStandardsIgnoreEnd
21
    }
22
}
23