Completed
Push — dev ( e28e4d...be5809 )
by Yonathan
29s queued 12s
created

ManagerPortalComposer::compose()   A

Complexity

Conditions 2
Paths 2

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 3
c 1
b 0
f 0
dl 0
loc 5
rs 10
cc 2
nc 2
nop 1
1
<?php
2
3
namespace App\Http\ViewComposers;
4
5
use Illuminate\View\View;
6
use Illuminate\Support\Facades\Auth;
7
8
class ManagerPortalComposer
9
{
10
    /**
11
     * Bind data to the view.
12
     *
13
     * @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...
14
     * @return void
15
     */
16
    public function compose(View $view)
17
    {
18
        $show_demo_notification = Auth::user() !== null && Auth::user()->isDemoManager();
19
        $view->with([
20
            'show_demo_notification' => $show_demo_notification,
21
        ]);
22
    }
23
}
24