Completed
Push — master ( 33476c...427ebd )
by Bertrand
09:14
created

SetWikiSessionId   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 8
Duplicated Lines 0 %

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A handle() 0 6 2
1
<?php
2
3
4
namespace App\Http\Middleware;
5
6
7
use Illuminate\Support\Facades\Session;
8
use Closure;
9
10
class SetWikiSessionId
11
{
12
    public function handle($request, Closure $next)
13
    {
14
        if($request->input('wiki_session_id')){
15
            Session::put('wiki_session_id', $request->input('wiki_session_id'));
16
        }
17
        return $next($request);
18
    }
19
}
20