| 1 | <?php namespace XoopsModules\Planet; |
||
| 26 | class Helper extends \Xmf\Module\Helper |
||
| 27 | { |
||
| 28 | public $debug; |
||
| 29 | |||
| 30 | /** |
||
| 31 | * |
||
| 32 | * @param bool $debug |
||
| 33 | */ |
||
| 34 | protected function __construct($debug = false) |
||
| 40 | |||
| 41 | /** |
||
| 42 | * @param bool $debug |
||
| 43 | * |
||
| 44 | * @return \Xmf\Module\Helper |
||
| 45 | */ |
||
| 46 | public static function getInstance($debug = false) |
||
| 55 | |||
| 56 | /** |
||
| 57 | * @return string |
||
| 58 | */ |
||
| 59 | public function getDirname() |
||
| 63 | |||
| 64 | /** |
||
| 65 | * Get an Object Handler |
||
| 66 | * |
||
| 67 | * @param string $name name of handler to load |
||
| 68 | * |
||
| 69 | * @return bool|\XoopsObjectHandler|\XoopsPersistableObjectHandler |
||
| 70 | */ |
||
| 71 | public function getHandler($name) |
||
| 79 | } |
||
| 80 |
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.