| 1 | <?php |
||
| 3 | class TestClass |
||
| 4 | { |
||
| 5 | public $pub; |
||
| 6 | protected $pro; |
||
| 7 | private $pri; |
||
| 8 | |||
| 9 | public static $pubstat; |
||
| 10 | protected static $prostat; |
||
| 11 | private static $pristat; |
||
|
|
|||
| 12 | |||
| 13 | /** |
||
| 14 | * This is a constructor for a TestClass with the first |
||
| 15 | * line of the docstring split into two different lines. |
||
| 16 | * |
||
| 17 | * And here's some more information about it |
||
| 18 | */ |
||
| 19 | public function __construct() |
||
| 25 | |||
| 26 | private static function static_method() |
||
| 29 | |||
| 30 | final public function final_method() |
||
| 33 | |||
| 34 | private function array_hint(array $x) |
||
| 37 | |||
| 38 | private function class_hint(TestClass $x) |
||
| 41 | |||
| 42 | private function ref(&$x) |
||
| 45 | |||
| 46 | private function default_method($x = 1234) |
||
| 49 | |||
| 50 | final protected static function mix(array &$x, TestClass $y = null, $z = array(1, 2, 3), $_ = 'string') |
||
| 53 | |||
| 54 | public function __clone() |
||
| 58 | |||
| 59 | public function __invoke($x) |
||
| 63 | |||
| 64 | public function __ToStRiNg() |
||
| 68 | |||
| 69 | public function __get($param) |
||
| 73 | } |
||
| 74 |
This check marks private properties in classes that are never used. Those properties can be removed.