Conditions | 3 |
Paths | 3 |
Total Lines | 13 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Tests | 2 |
CRAP Score | 5.667 |
Changes | 0 |
1 | <?php |
||
16 | 1 | public function handleMessage( |
|
17 | RabbitMqMessageCollectionDataProvider $collectionDataProvider, |
||
18 | AMQPChannel $channel |
||
19 | ): void { |
||
20 | |||
21 | 1 | foreach ($collectionDataProvider->getMessages() as $message) { |
|
22 | $event = $message->getMessage(); |
||
23 | |||
24 | if ($event->hasName()) { |
||
25 | $this->getFactory()->getEventFacade()->eventToListener($event); |
||
26 | } |
||
27 | |||
28 | $this->sendAck($channel, $message); |
||
29 | } |
||
47 | } |
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