1 | <?php |
||
14 | class MslsOptionsPost extends MslsOptions { |
||
15 | |||
16 | /** |
||
17 | * Separator |
||
18 | * @var string |
||
19 | */ |
||
20 | protected $sep = '_'; |
||
21 | |||
22 | /** |
||
23 | * Autoload |
||
24 | * @var string |
||
25 | */ |
||
26 | protected $autoload = 'no'; |
||
27 | |||
28 | /** |
||
29 | * Get postlink |
||
30 | * @param string $language |
||
31 | * @return string |
||
32 | */ |
||
33 | public function get_postlink( $language ) { |
||
57 | |||
58 | /** |
||
59 | * Get current link |
||
60 | * @return string |
||
61 | */ |
||
62 | public function get_current_link() { |
||
65 | |||
66 | } |
||
67 |
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.