| Total Complexity | 5 |
| Total Lines | 33 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 15 | class QueueListener extends AbstractListener |
||
| 16 | { |
||
| 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 | if ($event->hasName()) { |
||
| 26 | $this->getFactory()->getEventFacade()->eventToListener($event); |
||
| 27 | } |
||
| 28 | |||
| 29 | $this->sendAck($channel, $message); |
||
| 30 | } |
||
| 31 | } |
||
| 32 | |||
| 33 | /** |
||
| 34 | * @return string |
||
| 35 | * @throws \Core\Locator\Dynamic\ServiceNotParseable |
||
| 36 | */ |
||
| 37 | public function getQueueName(): string |
||
| 38 | { |
||
| 39 | return $this->getFactory()->createEventQueue()->getName(); |
||
| 40 | } |
||
| 41 | |||
| 42 | /** |
||
| 43 | * @return int |
||
| 44 | */ |
||
| 45 | public function getChunkSize(): int |
||
| 48 | } |
||
| 49 | } |
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