Sidebar   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Importance

Changes 4
Bugs 3 Features 0
Metric Value
eloc 3
dl 0
loc 12
rs 10
c 4
b 3
f 0
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A render() 0 5 1
1
<?php
2
3
namespace Pratiksh\Adminetic\View\Components;
4
5
use Adminetic;
0 ignored issues
show
Bug introduced by
The type Adminetic 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 Illuminate\View\Component;
7
8
class Sidebar extends Component
9
{
10
    /**
11
     * Get the view / contents that represent the component.
12
     *
13
     * @return \Illuminate\Contracts\View\View|\Closure|string
14
     */
15
    public function render()
16
    {
17
        $menus = Adminetic::menus() ?? [];
18
19
        return view('adminetic::components.sidebar', compact('menus'));
20
    }
21
}
22