Total Complexity | 8 |
Total Lines | 51 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
12 | class CanInstall |
||
13 | { |
||
14 | /** |
||
15 | * Handle an incoming request. |
||
16 | * |
||
17 | * @param Request $request |
||
18 | * @param Closure $next |
||
19 | * @return mixed|RedirectResponse |
||
20 | */ |
||
21 | public function handle($request, Closure $next): RedirectResponse |
||
53 | } |
||
54 | |||
55 | /** |
||
56 | * If application is already installed. |
||
57 | * |
||
58 | * @return bool |
||
59 | */ |
||
60 | public function alreadyInstalled(): bool |
||
65 |
The
break
statement is not necessary if it is preceded for example by areturn
statement:If you would like to keep this construct to be consistent with other
case
statements, you can safely mark this issue as a false-positive.