Conditions | 3 |
Paths | 3 |
Total Lines | 13 |
Code Lines | 4 |
Lines | 0 |
Ratio | 0 % |
Tests | 3 |
CRAP Score | 3.576 |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
16 | 568 | public function handle($request, Closure $next) |
|
17 | { |
||
18 | // Browser check will only fire if the HTTP_USER_AGENT string is actually set by the browser |
||
19 | 568 | if(!empty($_SERVER['HTTP_USER_AGENT'])) |
|
20 | { |
||
21 | // Check for Internet Explorer 11 |
||
22 | if (preg_match("/Trident\/7.0;(.*)rv:11.0/", $_SERVER["HTTP_USER_AGENT"], $match) != 0) |
||
23 | { |
||
24 | return response()->make(view('error.426'), 426); |
||
25 | } |
||
26 | } |
||
27 | |||
28 | 568 | return $next($request); |
|
29 | } |
||
31 |