Conditions | 3 |
Paths | 4 |
Total Lines | 9 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 1 |
1 | <?php |
||
14 | public function paginate(ObjectRepository $repository, array $where = [], $orderBy = []): Collection |
||
15 | { |
||
16 | $request = Application::ahoy()->getGlobalRequest(); |
||
17 | $params = $request->getQueryParams(); |
||
18 | $page = isset($params['page']) ? (int) $params['page'] : 1; |
||
19 | $limit = isset($params['limit']) ? (int) $params['limit'] : 25; |
||
20 | $offset = ($page * $limit) - $limit; |
||
21 | |||
22 | return new ArrayCollection($repository->findBy($where, $orderBy, $limit, $offset)); |
||
23 | } |
||
25 |
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