| Conditions | 1 |
| Paths | 1 |
| Total Lines | 16 |
| Code Lines | 11 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 21 | public function index(Request $request) |
||
| 22 | { |
||
| 23 | $data = $this->postRepository |
||
| 24 | ->advancedGet([ |
||
| 25 | 'with' => ['tags', 'categories', 'author', 'slugable'], |
||
| 26 | 'condition' => ['status' => StatusEnum::PUBLISHED], |
||
| 27 | 'paginate' => [ |
||
| 28 | 'per_page' => $request->integer('per_page', 10), |
||
| 29 | 'current_paged' => $request->integer('page', 1), |
||
| 30 | ], |
||
| 31 | ]); |
||
| 32 | |||
| 33 | return $this |
||
| 34 | ->httpResponse() |
||
| 35 | ->setData(ListPostResource::collection($data)) |
||
| 36 | ->toApiResponse(); |
||
| 37 | } |
||
| 39 |
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