| Total Complexity | 7 |
| Total Lines | 47 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 19 | class TestSubscriber implements EventSubscriberInterface |
||
| 20 | { |
||
| 21 | /** |
||
| 22 | * @var CoverageEvent |
||
| 23 | */ |
||
| 24 | private $coverageEvent; |
||
| 25 | |||
| 26 | final public static function getSubscribedEvents() |
||
| 27 | { |
||
| 28 | return [ |
||
| 29 | CoverageEvent::refresh => 'refresh', |
||
| 30 | CoverageEvent::beforeStart => 'beforeStart', |
||
| 31 | CoverageEvent::start => 'start', |
||
| 32 | CoverageEvent::stop => 'stop', |
||
| 33 | CoverageEvent::complete => 'complete', |
||
| 34 | ]; |
||
| 35 | } |
||
| 36 | |||
| 37 | public function beforeStart(CoverageEvent $event) |
||
| 38 | { |
||
| 39 | } |
||
| 40 | |||
| 41 | public function refresh(CoverageEvent $event) |
||
| 42 | { |
||
| 43 | $this->coverageEvent = $event; |
||
| 44 | } |
||
| 45 | |||
| 46 | public function start(CoverageEvent $event) |
||
| 47 | { |
||
| 48 | $this->coverageEvent = $event; |
||
| 49 | } |
||
| 50 | |||
| 51 | public function stop(CoverageEvent $event) |
||
| 54 | } |
||
| 55 | |||
| 56 | /** |
||
| 57 | * @return CoverageEvent |
||
| 58 | */ |
||
| 59 | public function getCoverageEvent(): CoverageEvent |
||
| 60 | { |
||
| 61 | return $this->coverageEvent; |
||
| 62 | } |
||
| 63 | |||
| 64 | public function complete() |
||
| 66 | } |
||
| 67 | } |
||
| 68 |
The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g.
excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths