1 | <?php |
||
19 | abstract class Model |
||
20 | { |
||
21 | /** |
||
22 | * @var string |
||
23 | */ |
||
24 | protected $idAttribute = 'id'; |
||
25 | |||
26 | /** |
||
27 | * @var array |
||
28 | */ |
||
29 | protected $store = []; |
||
30 | |||
31 | /** |
||
32 | * @param array $store |
||
33 | */ |
||
34 | public function __construct(array $store = []) |
||
38 | |||
39 | /** |
||
40 | * @param array $store |
||
41 | * |
||
42 | * @return static |
||
43 | */ |
||
44 | public static function make(array $store = []) |
||
48 | |||
49 | /** |
||
50 | * @return array |
||
51 | */ |
||
52 | public function toArray() |
||
56 | |||
57 | /** |
||
58 | * @param array $data |
||
59 | */ |
||
60 | public function updateStore(array $data) |
||
64 | |||
65 | /** |
||
66 | * @return string |
||
67 | */ |
||
68 | public function __toString() |
||
74 | |||
75 | /** |
||
76 | * {@inheritdoc} |
||
77 | */ |
||
78 | public function __get($name) |
||
88 | |||
89 | /** |
||
90 | * {@inheritdoc} |
||
91 | */ |
||
92 | public function __set($name, $value) |
||
96 | |||
97 | /*public function convertDateTime($string) |
||
|
|||
98 | { |
||
99 | // TODO: |
||
100 | }*/ |
||
101 | } |
||
102 |
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.