Passed
Push — feature/back-to-summary-button... ( b22cf7...c47ef5 )
by Yonathan
09:27
created

ArchivedComposer   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 11
Duplicated Lines 0 %

Importance

Changes 2
Bugs 0 Features 0
Metric Value
wmc 1
eloc 2
c 2
b 0
f 0
dl 0
loc 11
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A compose() 0 3 1
1
<?php
2
3
namespace App\Http\ViewComposers;
4
5
use Illuminate\View\View;
6
use Illuminate\Support\Facades\Lang;
7
8
class ArchivedComposer
9
{
10
    /**
11
     * Bind data to the view.
12
     *
13
     * @param  View  $view
14
     * @return void
15
     */
16
    public function compose(View $view)
17
    {
18
        $view->with('archived', Lang::get('common/archived'));
19
    }
20
}
21