Completed
Push — master ( 52970f...c6d773 )
by Tristan
24:57 queued 10:40
created

SkillComposer::compose()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 3
CRAP Score 1

Importance

Changes 0
Metric Value
eloc 2
dl 0
loc 4
ccs 3
cts 3
cp 1
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 1
crap 1
1
<?php
2
0 ignored issues
show
Coding Style introduced by
Missing file doc comment
Loading history...
3
namespace App\Http\ViewComposers;
4
5
use Illuminate\View\View;
6
use Illuminate\Support\Facades\Lang;
7
use App\Models\Lookup\SkillLevel;
8
9
class SkillComposer
0 ignored issues
show
Coding Style introduced by
Missing doc comment for class SkillComposer
Loading history...
10
{
11
    /**
12
     * Bind data to the view.
13
     *
14
     * @param  View  $view
0 ignored issues
show
Coding Style introduced by
Missing parameter comment
Loading history...
Coding Style introduced by
Expected 1 spaces after parameter type; 2 found
Loading history...
15
     * @return void
0 ignored issues
show
Coding Style introduced by
Tag cannot be grouped with parameter tags in a doc comment
Loading history...
16
     */
17 10
    public function compose(View $view)
18
    {
19 10
        $view->with('skill_levels', SkillLevel::all());
20 10
        $view->with('skill_template', Lang::get('common/skills'));
21 10
    }
22
}
23