Conditions | 4 |
Paths | 7 |
Total Lines | 16 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 20 |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
17 | public function handleMessage( |
||
18 | RabbitMqMessageCollectionDataProvider $collectionDataProvider, |
||
19 | AMQPChannel $channel |
||
20 | ): void { |
||
21 | |||
22 | foreach ($collectionDataProvider->getMessages() as $message) { |
||
23 | $event = $message->getMessage(); |
||
24 | |||
25 | try { |
||
26 | if ($event->hasName()) { |
||
27 | $this->getFactory()->getEventFacade()->eventToListener($event); |
||
28 | } |
||
29 | |||
30 | $this->sendAck($channel, $message); |
||
31 | } catch (EventFailException $exception) { |
||
32 | $this->sendNack($channel, $message); |
||
33 | } |
||
52 | } |
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