| Conditions | 2 |
| Paths | 2 |
| Total Lines | 15 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 24 | public function handle($request, Closure $next) |
||
| 25 | { |
||
| 26 | if (! $this->detector->isEnabled()) { |
||
| 27 | return $next($request); |
||
| 28 | } |
||
| 29 | |||
| 30 | $this->detector->boot(); |
||
| 31 | |||
| 32 | /** @var \Illuminate\Http\Response $response */ |
||
| 33 | $response = $next($request); |
||
| 34 | |||
| 35 | // Modify the response to add the Debugbar |
||
| 36 | $this->detector->output($request, $response); |
||
| 37 | |||
| 38 | return $response; |
||
| 39 | } |
||
| 40 | } |