Conditions | 2 |
Paths | 2 |
Total Lines | 9 |
Code Lines | 3 |
Lines | 0 |
Ratio | 0 % |
Changes | 4 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
20 | public function handle(Request $request, Closure $next): Response |
||
21 | { |
||
22 | // Check if first & last name inputs are the same (typical of spam) |
||
23 | if ($this->requestHasTraps($request)) { |
||
24 | return $this->respondToSpam($request, $next); |
||
25 | } |
||
26 | |||
27 | // Pass request to parent `ProtectAgainstSpam` handler |
||
28 | return parent::handle($request, $next); |
||
29 | } |
||
53 |