Completed
Push — master ( f92166...9df481 )
by Korotkov
08:19
created

UnsetSession::__invoke()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 11
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 11
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 4
nc 1
nop 2
1
<?php
2
3
namespace App\Http\Middleware;
4
5
use App\Http\HttpMiddleware;
6
7
class UnsetSession extends HttpMiddleware
8
{
9
10
    public function __invoke($current, $middleware = null)
11
    {
12
        // StartMiddleware
13
14
        $this->container()->unsetSession('value');
15
        $this->container()->unsetSession('alert');
16
17
        // EndMiddleware
18
19
        $this->next($middleware);
20
    }
21
}