Passed
Push — main ( 275957...473697 )
by PRATIK
04:03
created

Sidebar::myMenu()   A

Complexity

Conditions 4
Paths 4

Size

Total Lines 16
Code Lines 12

Duplication

Lines 0
Ratio 0 %

Importance

Changes 2
Bugs 1 Features 0
Metric Value
cc 4
eloc 12
nc 4
nop 0
dl 0
loc 16
rs 9.8666
c 2
b 1
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A Sidebar::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
    /**
12
     * Get the view / contents that represent the component.
13
     *
14
     * @return \Illuminate\Contracts\View\View|\Closure|string
15
     */
16
    public function render()
17
    {
18
        $menus = Adminetic::menus() ?? array();
19
20
        return view('adminetic::components.sidebar', compact('menus'));
21
    }
22
}
23