1 | <?php |
||
14 | class Email { |
||
15 | use Module; |
||
16 | |||
17 | protected static $driver, |
||
18 | $options, |
||
19 | $driver_name; |
||
20 | |||
21 | protected static function instance(){ |
||
24 | |||
25 | public static function using($driver, $options = null){ |
||
32 | |||
33 | public static function clear(){ |
||
36 | |||
37 | |||
38 | public static function send(array $options){ |
||
52 | |||
53 | } |
||
54 | |||
56 |
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.