Conditions | 1 |
Paths | 1 |
Total Lines | 16 |
Code Lines | 10 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
34 | public function __invoke(Request $request) |
||
35 | { |
||
36 | $builder = User::query(); |
||
37 | |||
38 | $this->filtering->builder($builder) |
||
39 | ->filterFor('name', function (Builder $builder, string $value) { |
||
40 | $builder->where('name', 'like', '%' . $value . '%'); |
||
41 | }) |
||
42 | ->filterFor('email', function (Builder $builder, string $value) { |
||
43 | $builder->where('email', 'like', '%' . $value . '%'); |
||
44 | }) |
||
45 | ->sortFor('name') |
||
46 | ->sortFor('email') |
||
47 | ->filter(); |
||
48 | |||
49 | return UserResource::collection($builder->paginate($request->input('perPage'))); |
||
50 | } |
||
52 |
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