Passed
Push — master ( 6feca0...6f3954 )
by Curtis
05:03
created

Edit   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 5
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 2
c 1
b 0
f 0
dl 0
loc 5
rs 10
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A __invoke() 0 3 1
1
<?php
2
3
namespace App\Http\Controllers\enso\core\System\Menu;
4
5
use Illuminate\Routing\Controller;
6
use LaravelEnso\Menus\Forms\Builders\MenuForm;
7
use App\Models\enso\Menus\Menu;
8
9
class Edit extends Controller
10
{
11
    public function __invoke(Menu $menu, MenuForm $form)
12
    {
13
        return ['form' => $form->edit($menu)];
0 ignored issues
show
Bug introduced by
$menu of type App\Models\enso\Menus\Menu is incompatible with the type LaravelEnso\Menus\Models\Menu expected by parameter $menu of LaravelEnso\Menus\Forms\Builders\MenuForm::edit(). ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-type  annotation

13
        return ['form' => $form->edit(/** @scrutinizer ignore-type */ $menu)];
Loading history...
14
    }
15
}
16