Total Complexity | 4 |
Total Lines | 28 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 1 |
1 | <?php |
||
7 | class UserProvider |
||
8 | { |
||
9 | |||
10 | public function makeAdmin($id) |
||
11 | { |
||
12 | $user = $this->findUser($id); |
||
13 | $user->update([ |
||
14 | config('easy_panel.column') => true |
||
15 | ]); |
||
16 | } |
||
17 | |||
18 | public function getAdmins() |
||
19 | { |
||
20 | $users = User::query()->where(config('easy_panel.column'), true)->get(); |
||
21 | |||
22 | return $users; |
||
23 | } |
||
24 | |||
25 | public function findUser($id) |
||
26 | { |
||
27 | return config('easy_panel.user_model')::query()->findOrFail($id); |
||
28 | } |
||
29 | |||
30 | public function deleteAdmin($id) |
||
35 | ]); |
||
36 | } |
||
37 | |||
38 | } |
||
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