Conditions | 1 |
Paths | 1 |
Total Lines | 10 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Tests | 7 |
CRAP Score | 1 |
Changes | 0 |
1 | <?php |
||
25 | 1 | public function index(Request $request, UserRepository $userRepository): Response |
|
26 | { |
||
27 | 1 | $pageNum = (int)$request->getAttribute('page', 1); |
|
28 | |||
29 | 1 | $dataReader = $userRepository->findAll()->withSort((new Sort([]))->withOrderString('login')); |
|
30 | 1 | $paginator = (new OffsetPaginator($dataReader)) |
|
31 | 1 | ->withPageSize(self::PAGINATION_INDEX) |
|
32 | 1 | ->withCurrentPage($pageNum); |
|
33 | |||
34 | 1 | return $this->viewRenderer->render('index', ['paginator' => $paginator]); |
|
35 | } |
||
48 |
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