| Total Complexity | 5 |
| Total Lines | 60 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 8 | class ContactAdapter implements PluginInterface |
||
| 9 | { |
||
| 10 | use SidebarHelper; |
||
| 11 | public function assets(): array |
||
| 12 | { |
||
| 13 | return array(); |
||
| 14 | } |
||
| 15 | |||
| 16 | public function myMenu(): array |
||
| 17 | { |
||
| 18 | return array( |
||
| 19 | [ |
||
| 20 | 'type' => 'menu', |
||
| 21 | 'name' => 'Contacts', |
||
| 22 | 'icon' => 'fa fa-book', |
||
| 23 | 'is_active' => request()->routeIs('contact*') ? 'active' : '', |
||
| 24 | 'pill' => [ |
||
| 25 | 'class' => 'badge badge-info badge-air-info', |
||
| 26 | 'value' => "Plugin", |
||
| 27 | ], |
||
| 28 | 'conditions' => [ |
||
| 29 | [ |
||
| 30 | 'type' => 'or', |
||
| 31 | 'condition' => auth()->user()->can('view-any', App\Models\Admin\Contact::class), |
||
| 32 | ], |
||
| 33 | [ |
||
| 34 | 'type' => 'or', |
||
| 35 | 'condition' => auth()->user()->can('create', App\Models\Admin\Contact::class), |
||
| 36 | ], |
||
| 37 | ], |
||
| 38 | 'children' => $this->indexCreateChildren('contact', App\Models\Admin\Contact::class) |
||
| 39 | ], |
||
| 40 | [ |
||
| 41 | 'type' => 'menu', |
||
| 42 | 'name' => 'Groups', |
||
| 43 | 'icon' => 'fa fa-users', |
||
| 44 | 'is_active' => request()->routeIs('group*') ? 'active' : '', |
||
| 45 | 'pill' => [ |
||
| 46 | 'class' => 'badge badge-info badge-air-info', |
||
| 47 | 'value' => "Plugin", |
||
| 48 | ], |
||
| 49 | 'conditions' => [ |
||
| 50 | [ |
||
| 51 | 'type' => 'or', |
||
| 52 | 'condition' => auth()->user()->can('view-any', App\Models\Admin\Group::class), |
||
| 53 | ], |
||
| 54 | [ |
||
| 55 | 'type' => 'or', |
||
| 56 | 'condition' => auth()->user()->can('create', App\Models\Admin\Group::class), |
||
| 57 | ], |
||
| 58 | ], |
||
| 59 | 'children' => $this->indexCreateChildren('group', App\Models\Admin\Group::class) |
||
| 60 | ], |
||
| 61 | ); |
||
| 62 | } |
||
| 63 | |||
| 64 | public function headerComponents(): array |
||
| 68 | ]; |
||
| 69 | } |
||
| 70 | } |
||
| 71 |
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