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

Edit::__invoke()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 1
c 1
b 0
f 0
nc 1
nop 2
dl 0
loc 3
rs 10
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