1 | <?php |
||
16 | class ProxySourceItem extends ProxySource implements \ArrayAccess |
||
17 | { |
||
18 | /** |
||
19 | * @var |
||
20 | */ |
||
21 | private $previousItem; |
||
22 | |||
23 | /** |
||
24 | * @var |
||
25 | */ |
||
26 | private $nextItem; |
||
27 | |||
28 | public function id() |
||
32 | |||
33 | public function meta() |
||
37 | |||
38 | public function url() |
||
42 | |||
43 | // public function date() |
||
|
|||
44 | // { |
||
45 | // $calculatedDate = $this->data()->get('calculated_date'); |
||
46 | |||
47 | // return $calculatedDate ?: $this->data()->get('date'); |
||
48 | // } |
||
49 | |||
50 | // public function title() |
||
51 | // { |
||
52 | // return $this->data()->get('title'); |
||
53 | // } |
||
54 | |||
55 | public function blocks() |
||
59 | |||
60 | public function setBlocks(array $blocks = null) |
||
64 | |||
65 | public function previousItem() |
||
69 | |||
70 | public function setPreviousItem(ProxySourceItem $item = null) |
||
87 | |||
88 | public function nextItem() |
||
92 | |||
93 | public function setNextItem(ProxySourceItem $item = null) |
||
110 | |||
111 | public function reprocess() |
||
115 | |||
116 | public function offsetSet($offset, $value) |
||
133 | |||
134 | public function offsetExists($offset) |
||
138 | |||
139 | public function offsetUnset($offset) |
||
145 | |||
146 | public function offsetGet($offset) |
||
154 | } |
||
155 |
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.