Conditions | 1 |
Paths | 1 |
Total Lines | 11 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
8 | public function getResult(PaginatorHandlerInterface $paginatorHandler, Paginator $paginator): array |
||
9 | { |
||
10 | return [ |
||
11 | 'pagination' => [ |
||
12 | 'totalPages' => $paginatorHandler->totalPages(), |
||
13 | 'totalItems' => $paginatorHandler->totalItems(), |
||
14 | 'count' => $paginator->count(), |
||
15 | 'itemsPerPage' => $paginatorHandler->numberOfItemsPerPage(), |
||
16 | 'page' => $paginator->getRequestedPageNumber(), |
||
17 | ], |
||
18 | 'data' => $paginator->collection(), |
||
19 | ]; |
||
22 |
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