| Conditions | 2 |
| Paths | 2 |
| Total Lines | 13 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 40 | public function handle($request, Closure $next) |
||
| 41 | { |
||
| 42 | $this->app['config']->set('clockwork::config.middleware', true); |
||
| 43 | |||
| 44 | try { |
||
| 45 | $response = $next($request); |
||
| 46 | } catch (Exception $e) { |
||
| 47 | $this->app['Illuminate\Contracts\Debug\ExceptionHandler']->report($e); |
||
| 48 | $response = $this->app['Illuminate\Contracts\Debug\ExceptionHandler']->render($request, $e); |
||
| 49 | } |
||
| 50 | |||
| 51 | return $this->app['clockwork.support']->process($request, $response); |
||
| 52 | } |
||
| 53 | } |
||
| 54 |
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.