Passed
Push — hotfix/salary_label ( f0401d )
by Josh
10:04
created

ApplicationReviewComposer   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 13
Duplicated Lines 0 %

Test Coverage

Coverage 0%

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A compose() 0 5 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\ReviewStatus;
8
use App\Models\Lookup\ReviewDecision;
9
10
class ApplicationReviewComposer
0 ignored issues
show
Coding Style introduced by
Missing doc comment for class ApplicationReviewComposer
Loading history...
11
{
12
    /**
13
     * Bind data to the view.
14
     *
15
     * @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...
16
     * @return void
0 ignored issues
show
Coding Style introduced by
Tag cannot be grouped with parameter tags in a doc comment
Loading history...
17
     */
18
    public function compose(View $view)
19
    {
20
        $view->with('review_statuses', ReviewStatus::all());
21
        $view->with('review_decisions', ReviewDecision::all());
22
        $view->with('review_template', Lang::get('manager/application_review'));
23
    }
24
}
25