| Total Complexity | 6 | 
| Total Lines | 40 | 
| Duplicated Lines | 0 % | 
| Changes | 0 | ||
| 1 | <?php | ||
| 10 | class LiquidationResponse extends AbstractResponse | ||
| 11 | { | ||
| 12 | private string $topic; | ||
| 13 | private string $type; | ||
| 14 | private \DateTime $timestamp; | ||
| 15 | private EntityCollection $data; | ||
| 16 | |||
| 17 | public function __construct(array $data) | ||
| 18 |     { | ||
| 19 | $collection = new EntityCollection(); | ||
| 20 | |||
| 21 | $this->topic = $data['topic']; | ||
| 22 | $this->type = $data['type']; | ||
| 23 | $this->timestamp = DateTimeHelper::makeFromTimestamp($data['ts']); | ||
| 24 | |||
| 25 |         if (!empty($data['data'])) { | ||
| 26 | |||
| 27 | $data['data'] = array_is_list($data['data']) ? $data['data'] : [$data['data']]; | ||
| 28 | |||
| 29 |             array_map(function ($item) use ($collection) { | ||
| 30 | $collection->push(ResponseDtoBuilder::make(OrderBookPriceAbstract::class, $item)); | ||
| 31 | }, $data['data']); | ||
| 32 | } | ||
| 33 | |||
| 34 | $this->data = $collection; | ||
| 35 | } | ||
| 36 | |||
| 37 | public function getTopic(): string | ||
| 38 |     { | ||
| 39 | return $this->topic; | ||
| 40 | } | ||
| 41 | |||
| 42 | public function getType(): string | ||
| 45 | } | ||
| 46 | |||
| 47 | public function getData(): ?array | ||
| 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