| Total Complexity | 8 |
| Total Lines | 44 |
| Duplicated Lines | 0 % |
| Coverage | 86.67% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 11 | class LogDebugVisits |
||
| 12 | { |
||
| 13 | protected $ignore = ['_token']; |
||
| 14 | protected $redact = ['password', 'password_confirmation']; |
||
| 15 | |||
| 16 | /** |
||
| 17 | * Handle an incoming request. |
||
| 18 | * |
||
| 19 | * @param \Illuminate\Http\Request $request |
||
| 20 | * @param \Closure $next |
||
| 21 | * @return mixed |
||
| 22 | */ |
||
| 23 | 700 | public function handle($request, Closure $next) |
|
| 57 |
This check marks implicit conversions of arrays to boolean values in a comparison. While in PHP an empty array is considered to be equal (but not identical) to false, this is not always apparent.
Consider making the comparison explicit by using
empty(..)or! empty(...)instead.