| 1 | <?php |
||
| 12 | class MslsOptionsPost extends MslsOptions { |
||
| 13 | |||
| 14 | /** |
||
| 15 | * Separator |
||
| 16 | * @var string |
||
| 17 | */ |
||
| 18 | protected $sep = '_'; |
||
| 19 | |||
| 20 | /** |
||
| 21 | * Autoload |
||
| 22 | * @var string |
||
| 23 | */ |
||
| 24 | protected $autoload = 'no'; |
||
| 25 | |||
| 26 | /** |
||
| 27 | * Get postlink |
||
| 28 | * @param string $language |
||
| 29 | * @return string |
||
| 30 | */ |
||
| 31 | public function get_postlink( $language ) { |
||
| 55 | |||
| 56 | /** |
||
| 57 | * Get current link |
||
| 58 | * @return string |
||
| 59 | */ |
||
| 60 | public function get_current_link() { |
||
| 63 | |||
| 64 | } |
||
| 65 |
This check looks for variable assignements that are either overwritten by other assignments or where the variable is not used subsequently.
Both the
$myVarassignment in line 1 and the$higherassignment in line 2 are dead. The first because$myVaris never used and the second because$higheris always overwritten for every possible time line.