Conditions | 5 |
Paths | 4 |
Total Lines | 27 |
Code Lines | 17 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
39 | public function handle() |
||
40 | { |
||
41 | $lists = $this->option('deleted') |
||
42 | ? AppClient::withTrashed()->orderBy('name')->get() |
||
43 | : AppClient::orderBy('name')->get(); |
||
44 | |||
45 | if ($lists->count() === 0) { |
||
46 | $this->info('There are no APPID'); |
||
47 | exit(); |
||
48 | } |
||
49 | |||
50 | $headers = ['AppName', 'AppId', 'Secret', 'Status', 'CreateAt']; |
||
51 | |||
52 | $rows = $lists->map(function ($list) { |
||
53 | $status = $list->active ? 'active' : 'deactivated'; |
||
54 | $status = $list->trashed() ? 'deleted' : $status; |
||
55 | |||
56 | return [ |
||
57 | $list->name, |
||
58 | $list->appid, |
||
59 | $list->secret, |
||
60 | $status, |
||
61 | $list->created_at |
||
62 | ]; |
||
63 | }); |
||
64 | |||
65 | $this->table($headers, $rows); |
||
66 | } |
||
68 |
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