Completed
Push — master ( 6af785...cbc83f )
by Iman
05:36
created

Authentication::youShouldBeLoggedIn()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
eloc 2
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 1
1
<?php
2
3
namespace Imanghafoori\HeyMan\Conditions;
4
5
trait Authentication
6
{
7
    public function youShouldBeGuest($guard = null)
8
    {
9
        return function () use ($guard) {
10
            return auth($guard)->guest();
11
        };
12
    }
13
14
    public function youShouldBeLoggedIn($guard = null)
15
    {
16
        return function () use ($guard) {
17
            return auth($guard)->check();
18
        };
19
    }
20
}