Passed
Push — task/talent-dot-test ( 0ef1e8...074f28 )
by Grant
08:57 queued 03:14
created

ReferenceComposer   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 1
eloc 3
dl 0
loc 12
ccs 3
cts 3
cp 1
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A compose() 0 4 1
1
<?php
2
3
namespace App\Http\ViewComposers;
4
5
use Illuminate\View\View;
6
use Illuminate\Support\Facades\Lang;
7
use App\Models\Lookup\Relationship;
8
9
class ReferenceComposer
10
{
11
    /**
12
     * Bind data to the view.
13
     *
14
     * @param  View  $view
2 ignored issues
show
Coding Style Documentation introduced by
Missing parameter comment
Loading history...
Coding Style introduced by
Expected 1 spaces after parameter type; 2 found
Loading history...
15
     * @return void
16
     */
17 1
    public function compose(View $view)
0 ignored issues
show
introduced by
Method \App\Http\ViewComposers\ReferenceComposer::compose() does not have return type hint for its return value but it should be possible to add it based on @return annotation "void".
Loading history...
18
    {
19 1
        $view->with('relationships', Relationship::all());
20 1
        $view->with('reference_template', Lang::get('common/references'));
21 1
    }
22
}
23