| Total Complexity | 8 | 
| Total Lines | 37 | 
| Duplicated Lines | 0 % | 
| Changes | 1 | ||
| Bugs | 0 | Features | 0 | 
| 1 | <?php | ||
| 14 | class MessageDataCollector extends DataCollector | ||
| 15 | { | ||
| 16 | private $channels; | ||
| 17 | |||
| 18 | public function __construct($channels) | ||
| 19 |     { | ||
| 20 | $this->channels = $channels; | ||
| 21 | $this->data = array(); | ||
| 22 | } | ||
| 23 | |||
| 24 | public function collect(Request $request, Response $response, \Throwable $exception = null) | ||
| 25 |     { | ||
| 26 |         foreach ($this->channels as $channel) { | ||
| 27 |             foreach ($channel->getBasicPublishLog() as $log) { | ||
| 28 | $this->data[] = $log; | ||
| 29 | } | ||
| 30 | } | ||
| 31 | } | ||
| 32 | |||
| 33 | public function getName() | ||
| 34 |     { | ||
| 35 | return 'rabbit_mq'; | ||
| 36 | } | ||
| 37 | |||
| 38 | public function getPublishedMessagesCount() | ||
| 41 | } | ||
| 42 | |||
| 43 | public function getPublishedMessagesLog() | ||
| 46 | } | ||
| 47 | |||
| 48 | public function reset() | ||
| 53 | 
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