| Total Complexity | 2 |
| Total Lines | 24 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 7 | class NotificationCollection extends ResourceCollection |
||
| 8 | { |
||
| 9 | public $collects = NotificationResource::class; |
||
| 10 | |||
| 11 | /** |
||
| 12 | * Transform the resource collection into an array. |
||
| 13 | * |
||
| 14 | * @param \Illuminate\Http\Request $request |
||
| 15 | * @return array |
||
| 16 | */ |
||
| 17 | public function toArray($request) |
||
| 18 | { |
||
| 19 | return [ |
||
| 20 | 'data' => $this->collection, |
||
| 21 | ]; |
||
| 22 | } |
||
| 23 | |||
| 24 | public function with($request) |
||
| 31 | ], |
||
| 32 | ]; |
||
| 35 |
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