1 | <?php |
||
5 | class Association |
||
6 | { |
||
7 | /** |
||
8 | * @var AssociationStubBase |
||
9 | */ |
||
10 | protected $first; |
||
11 | |||
12 | /** |
||
13 | * @var AssociationStubBase |
||
14 | */ |
||
15 | protected $last; |
||
16 | |||
17 | /** |
||
18 | * @return AssociationStubBase |
||
19 | */ |
||
20 | public function getFirst() |
||
24 | |||
25 | /** |
||
26 | * @param AssociationStubBase $first |
||
27 | */ |
||
28 | public function setFirst(AssociationStubBase $first) |
||
32 | |||
33 | /** |
||
34 | * @return AssociationStubBase |
||
35 | */ |
||
36 | public function getLast() |
||
40 | |||
41 | /** |
||
42 | * @param AssociationStubBase $last |
||
43 | */ |
||
44 | public function setLast(AssociationStubBase $last) |
||
48 | |||
49 | public function isOk() |
||
68 | } |
||
69 |
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.