Scrutinizer GitHub App not installed

We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.

Install GitHub App

Passed
Push — v6-livewire-widget ( bb8951...53543e )
by Pedro
14:58
created

MenuDropdown::render()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 1
Metric Value
cc 1
eloc 1
nc 1
nop 0
dl 0
loc 3
rs 10
c 1
b 0
f 1
1
<?php
2
3
namespace Backpack\CRUD\app\View\Components;
4
5
use Closure;
6
use Illuminate\Contracts\View\View;
7
use Illuminate\View\Component;
8
9
class MenuDropdown extends Component
10
{
11
    /**
12
     * Create a new component instance.
13
     */
14
    public function __construct(
15
        public ?string $title = null,
16
        public ?string $icon = null,
17
        public ?string $link = null,
18
        public bool $open = false,
19
        public array $items = [],
20
        public bool $nested = false,
21
    ) {
22
    }
23
24
    /**
25
     * Get the view / contents that represent the component.
26
     */
27
    public function render(): View|Closure|string
28
    {
29
        return backpack_view('components.menu-dropdown');
30
    }
31
}
32