Total Complexity | 6 |
Total Lines | 31 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
10 | class AdminController extends Controller |
||
11 | { |
||
12 | |||
13 | public function admin() { |
||
14 | if (Bouncer::can('view-admin-pages')) { |
||
15 | return view('admin'); |
||
16 | } |
||
17 | else { |
||
18 | return view('denied'); |
||
19 | } |
||
20 | } |
||
21 | |||
22 | public function users() { |
||
23 | if (Bouncer::can('administer-users')) { |
||
24 | return view('admin.users', [ |
||
25 | 'users' => User::all(), |
||
26 | ]); |
||
27 | } |
||
28 | else { |
||
29 | return view('denied'); |
||
30 | } |
||
31 | } |
||
32 | |||
33 | public function associationsDeleted() { |
||
41 | } |
||
42 | } |
||
43 | |||
45 |
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