SessionExistsDirective   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 5
Duplicated Lines 0 %

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A handle() 0 3 1
1
<?php
2
3
namespace EasyBlade\Directives;
4
5
use EasyBlade\Contract\Directivable;
6
7
class SessionExistsDirective implements Directivable
8
{
9
    public static function handle($parameter)
10
    {
11
        return "<?php if(session()->exists({$parameter})): ?>";
12
    }
13
}