| Total Complexity | 3 |
| Total Lines | 32 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 7 | class QueryDetectorMiddleware |
||
| 8 | { |
||
| 9 | /** @var QueryDetector */ |
||
| 10 | private $detector; |
||
| 11 | |||
| 12 | public function __construct(QueryDetector $detector) |
||
| 13 | { |
||
| 14 | $this->detector = $detector; |
||
| 15 | } |
||
| 16 | |||
| 17 | /** |
||
| 18 | * Handle an incoming request. |
||
| 19 | * |
||
| 20 | * @param Request $request |
||
|
|
|||
| 21 | * @param Closure $next |
||
| 22 | * @return mixed |
||
| 23 | */ |
||
| 24 | public function handle($request, Closure $next) |
||
| 39 | } |
||
| 40 | } |