Passed
Push — master ( 51edae...d29a9b )
by Curtis
11:52 queued 05:54
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\companies\Person;
4
5
use Illuminate\Routing\Controller;
6
use App\Person;
7
use App\Models\enso\companies\Company;
8
use App\Forms\Builders\PersonForm;
9
10
class Edit extends Controller
11
{
12
    public function __invoke(Company $company, Person $person, PersonForm $form)
13
    {
14
        return ['form' => $form->company($company)->edit($person)];
0 ignored issues
show
Bug introduced by
The method company() does not exist on App\Forms\Builders\PersonForm. ( Ignorable by Annotation )

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

14
        return ['form' => $form->/** @scrutinizer ignore-call */ company($company)->edit($person)];

This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces.

This is most likely a typographical error or the method has been renamed.

Loading history...
15
    }
16
}
17