| Total Complexity | 5 |
| Total Lines | 43 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 18 | class ExportOrderObserver implements ObserverInterface |
||
| 19 | { |
||
| 20 | /** |
||
| 21 | * @var ConfigHelper |
||
| 22 | */ |
||
| 23 | private $configHelper; |
||
| 24 | |||
| 25 | /** |
||
| 26 | * @var PublisherInterface |
||
| 27 | */ |
||
| 28 | private $publisher; |
||
| 29 | |||
| 30 | /** |
||
| 31 | * @param ConfigHelper $configHelper |
||
| 32 | * @param PublisherInterface $publisher |
||
| 33 | */ |
||
| 34 | public function __construct( |
||
| 35 | ConfigHelper $configHelper, |
||
| 36 | PublisherInterface $publisher |
||
| 37 | ) { |
||
| 38 | $this->configHelper = $configHelper; |
||
| 39 | $this->publisher = $publisher; |
||
| 40 | } |
||
| 41 | |||
| 42 | /** |
||
| 43 | * @inheritDoc |
||
| 44 | */ |
||
| 45 | public function execute(Observer $observer) |
||
| 61 | ); |
||
| 62 | } |
||
| 64 |
In PHP, under loose comparison (like
==, or!=, orswitchconditions), values of different types might be equal.For
integervalues, zero is a special case, in particular the following results might be unexpected: