| 1 | <?php |
||
| 8 | class PropertyHiderInArray extends PropertyHider { |
||
| 9 | |||
| 10 | protected $_data = array(); |
||
| 11 | |||
| 12 | /** |
||
| 13 | * Method checks if action is available for named property |
||
| 14 | * |
||
| 15 | * @param string $name |
||
| 16 | * @param string $action |
||
| 17 | * |
||
| 18 | * @return bool |
||
| 19 | */ |
||
| 20 | protected function isPropertyActionAvailable($name, $action = '') { |
||
| 24 | |||
| 25 | /** |
||
| 26 | * Internal method that make real changes to property value |
||
| 27 | * May be override in child class |
||
| 28 | * |
||
| 29 | * @param string $name |
||
| 30 | * @param mixed $value |
||
| 31 | * |
||
| 32 | * @return mixed |
||
| 33 | */ |
||
| 34 | protected function setProperty($name, $value) { |
||
| 40 | |||
| 41 | /** |
||
| 42 | * Internal method that make really reads property value |
||
| 43 | * May be override in child class |
||
| 44 | * |
||
| 45 | * @param string $name |
||
| 46 | * @param mixed $value - ignored. Used for compatibility |
||
| 47 | * |
||
| 48 | * @return mixed |
||
| 49 | */ |
||
| 50 | protected function getProperty($name, $value = null) { |
||
| 53 | |||
| 54 | public function __isset($name) { |
||
| 57 | |||
| 58 | /** |
||
| 59 | * Is container empty |
||
| 60 | * |
||
| 61 | * @return boolean |
||
| 62 | */ |
||
| 63 | public function isContainerEmpty() { |
||
| 66 | |||
| 67 | } |
||
| 68 |
Sometimes obsolete code just ends up commented out instead of removed. In this case it is better to remove the code once you have checked you do not need it.
The code might also have been commented out for debugging purposes. In this case it is vital that someone uncomments it again or your project may behave in very unexpected ways in production.
This check looks for comments that seem to be mostly valid code and reports them.