| 1 | <?php |
||
| 5 | class TestClass |
||
| 6 | { |
||
| 7 | const DUMP_FILE = __FILE__; |
||
| 8 | const DUMP_LINE = 60; |
||
| 9 | |||
| 10 | public $pub; |
||
| 11 | protected $pro; |
||
| 12 | private $pri; |
||
| 13 | |||
| 14 | public static $pubstat; |
||
| 15 | protected static $prostat; |
||
| 16 | private static $pristat; |
||
|
|
|||
| 17 | |||
| 18 | /** |
||
| 19 | * This is a constructor for a TestClass with the first |
||
| 20 | * line of the docstring split into two different lines. |
||
| 21 | * |
||
| 22 | * And here's some more information about it |
||
| 23 | */ |
||
| 24 | public function __construct() |
||
| 30 | |||
| 31 | private static function staticMethod() |
||
| 34 | |||
| 35 | final public function finalMethod() |
||
| 38 | |||
| 39 | /** |
||
| 40 | * @param array $x |
||
| 41 | */ |
||
| 42 | private function arrayHint(array $x) |
||
| 45 | |||
| 46 | private function classHint(TestClass $x) |
||
| 49 | |||
| 50 | private function ref(&$x) |
||
| 53 | |||
| 54 | private function defaultMethod($x = 1234) |
||
| 57 | |||
| 58 | final protected static function &mix(array &$x, TestClass $y = null, $z = array(1, 2, 3), $_ = 'string') |
||
| 64 | |||
| 65 | public function __clone() |
||
| 69 | |||
| 70 | public function __invoke($x) |
||
| 74 | |||
| 75 | public function __ToStRiNg() |
||
| 79 | |||
| 80 | public function __get($param) |
||
| 84 | } |
||
| 85 |
This check marks private properties in classes that are never used. Those properties can be removed.