Issues (56)

src/Adapter/ContactAdapter.php (4 issues)

Labels
Severity
1
<?php
2
3
namespace Adminetic\Contact\Adapter;
4
5
use Pratiksh\Adminetic\Contracts\PluginInterface;
0 ignored issues
show
The type Pratiksh\Adminetic\Contracts\PluginInterface was not found. Maybe you did not declare it correctly or list all dependencies?

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:

filter:
    dependency_paths: ["lib/*"]

For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths

Loading history...
6
use Pratiksh\Adminetic\Traits\SidebarHelper;
0 ignored issues
show
The type Pratiksh\Adminetic\Traits\SidebarHelper was not found. Maybe you did not declare it correctly or list all dependencies?

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:

filter:
    dependency_paths: ["lib/*"]

For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths

Loading history...
7
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),
0 ignored issues
show
The type Adminetic\Contact\Adapter\App\Models\Admin\Contact was not found. Maybe you did not declare it correctly or list all dependencies?

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:

filter:
    dependency_paths: ["lib/*"]

For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths

Loading history...
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),
0 ignored issues
show
The type Adminetic\Contact\Adapter\App\Models\Admin\Group was not found. Maybe you did not declare it correctly or list all dependencies?

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:

filter:
    dependency_paths: ["lib/*"]

For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths

Loading history...
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
65
    {
66
        return [
67
            '<x-announcement-announcement-notification-bell />'
68
        ];
69
    }
70
}
71