1 | <?php |
||
8 | class TwoFactorAuthenticationServiceProvider extends ServiceProvider |
||
9 | { |
||
10 | /** |
||
11 | * Perform post-registration booting of services. |
||
12 | * Loading Routes, Views and Migrations. |
||
13 | * |
||
14 | * @return void |
||
15 | */ |
||
16 | public function boot() |
||
37 | |||
38 | public static function determineUserModel(): string |
||
42 | |||
43 | public static function getUserModelInstance(): Model { |
||
47 | } |
||
48 |
This check looks for variable assignements that are either overwritten by other assignments or where the variable is not used subsequently.
Both the
$myVar
assignment in line 1 and the$higher
assignment in line 2 are dead. The first because$myVar
is never used and the second because$higher
is always overwritten for every possible time line.