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

AlertComposer   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 11
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A compose() 0 3 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
8
class AlertComposer
0 ignored issues
show
Coding Style introduced by
Missing doc comment for class AlertComposer
Loading history...
9
{
10
    /**
11
     * Bind data to the view.
12
     *
13
     * @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...
14
     * @return void
0 ignored issues
show
Coding Style introduced by
Tag cannot be grouped with parameter tags in a doc comment
Loading history...
15
     */
16 22
    public function compose(View $view)
17
    {
18 22
        $view->with('alert', Lang::get('common/alert'));
19
    }
20
}