| 1 | <?php  | 
            ||
| 3 | class PropertyHiderInObject extends PropertyHider { | 
            ||
| 4 |   private function getPhysicalPropertyName($name) { | 
            ||
| 7 | |||
| 8 | /**  | 
            ||
| 9 | * Method checks if action is available for named property  | 
            ||
| 10 | *  | 
            ||
| 11 | * @param string $name  | 
            ||
| 12 | * @param string $action  | 
            ||
| 13 | *  | 
            ||
| 14 | * @return bool  | 
            ||
| 15 | */  | 
            ||
| 16 |   protected function isPropertyActionAvailable($name, $action = '') { | 
            ||
| 20 | |||
| 21 | /**  | 
            ||
| 22 | * Internal method that make real changes to property value  | 
            ||
| 23 | * May be override in child class  | 
            ||
| 24 | *  | 
            ||
| 25 | * @param string $name  | 
            ||
| 26 | * @param mixed $value  | 
            ||
| 27 | *  | 
            ||
| 28 | * @return mixed  | 
            ||
| 29 | */  | 
            ||
| 30 |   protected function setProperty($name, $value) { | 
            ||
| 36 | |||
| 37 | /**  | 
            ||
| 38 | * Internal method that make really reads property value  | 
            ||
| 39 | * May be override in child class  | 
            ||
| 40 | *  | 
            ||
| 41 | * @param string $name  | 
            ||
| 42 | * @param mixed $value - ignored. Used for compatibility  | 
            ||
| 43 | *  | 
            ||
| 44 | * @return mixed  | 
            ||
| 45 | */  | 
            ||
| 46 |   protected function getProperty($name, $value = null) { | 
            ||
| 49 | |||
| 50 | /**  | 
            ||
| 51 | * Magic method that checks if named property is set  | 
            ||
| 52 | * May be override in child class  | 
            ||
| 53 | *  | 
            ||
| 54 | * @param $name  | 
            ||
| 55 | *  | 
            ||
| 56 | * @return bool  | 
            ||
| 57 | */  | 
            ||
| 58 |   public function __isset($name) { | 
            ||
| 61 | |||
| 62 | }  | 
            ||
| 63 | 
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.