| Conditions | 4 |
| Paths | 4 |
| Total Lines | 16 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 1 | Features | 0 |
| 1 | <?php |
||
| 20 | public function handle($request, Closure $next) |
||
| 21 | { |
||
| 22 | $route = $request->route(); |
||
| 23 | $matchedRoute = $this->getMatchedRouteInto($route); |
||
| 24 | $matchedCallbacks = []; |
||
| 25 | foreach ($matchedRoute as $info) { |
||
| 26 | foreach (static::$chainData as $routeInfo => $callBacks) { |
||
| 27 | if (Str::is($routeInfo, $info)) { |
||
| 28 | $matchedCallbacks[] = array_pop($callBacks); |
||
| 29 | } |
||
| 30 | } |
||
| 31 | } |
||
| 32 | |||
| 33 | $this->exec($matchedCallbacks); |
||
| 34 | |||
| 35 | return $next($request); |
||
| 36 | } |
||
| 64 |