Conditions | 3 |
Paths | 2 |
Total Lines | 11 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 12 |
Changes | 0 |
1 | <?php |
||
24 | public function handle(Request $request, Closure $next) |
||
25 | { |
||
26 | $channel = $this->resolveChannel($request->route('channel')); |
||
27 | |||
28 | if ($channel->getSecret() !== null && $request->route('secret') !== $channel->getSecret()) { |
||
29 | abort(403); |
||
30 | } |
||
31 | |||
32 | $this->kernel->initialize($channel); |
||
33 | |||
34 | return $next($request); |
||
35 | } |
||
46 |