Conditions | 4 |
Paths | 2 |
Total Lines | 8 |
Code Lines | 3 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
42 | public function handle(Request $request, Closure $next) |
||
43 | { |
||
44 | if ($this->enableGraphiql || ($this->graphiqlToken !== null && $request->get('token') === $this->graphiqlToken)) { |
||
45 | return $next($request); |
||
46 | } |
||
47 | |||
48 | // Pretend the interface is not there if not enabled |
||
49 | throw new NotFoundHttpException(); |
||
50 | } |
||
52 |