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

SetWikiSessionId::handle()   A

Complexity

Conditions 2
Paths 2

Size

Total Lines 6
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 2
eloc 3
c 1
b 0
f 0
nc 2
nop 2
dl 0
loc 6
rs 10
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