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

Session   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 6
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 1
eloc 3
dl 0
loc 6
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A sessionShouldHave() 0 4 1
1
<?php
2
3
namespace Imanghafoori\HeyMan\Conditions;
4
5
trait Session
6
{
7
    public function sessionShouldHave($key)
8
    {
9
        return function () use ($key) {
10
            return session()->has($key);
11
        };
12
    }
13
}