| Conditions | 3 |
| Paths | 3 |
| Total Lines | 17 |
| Code Lines | 10 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 53 | public function handle($request, Closure $next) |
||
| 54 | { |
||
| 55 | if (app()->environment() !== 'production') { |
||
| 56 | $this->app['config']->set('clockwork::config.middleware', true); |
||
| 57 | |||
| 58 | try { |
||
| 59 | $response = $next($request); |
||
| 60 | } catch (Exception $e) { |
||
| 61 | $this->app['Illuminate\Contracts\Debug\ExceptionHandler']->report($e); |
||
| 62 | $response = $this->app['Illuminate\Contracts\Debug\ExceptionHandler']->render($request, $e); |
||
| 63 | } |
||
| 64 | |||
| 65 | return $this->app['clockwork.support']->process($request, $response); |
||
| 66 | } |
||
| 67 | |||
| 68 | return $next($request); |
||
| 69 | } |
||
| 70 | } |
||
| 71 |
Adding a
@returnannotation to a constructor is not recommended, since a constructor does not have a meaningful return value.Please refer to the PHP core documentation on constructors.