1 | <?php |
||
8 | class Fault |
||
9 | { |
||
10 | /** |
||
11 | * @var string |
||
12 | */ |
||
13 | private $actor; |
||
14 | /** |
||
15 | * @var \Exception |
||
16 | */ |
||
17 | private $exception; |
||
18 | |||
19 | public function setException(\Exception $exception) |
||
23 | |||
24 | /** |
||
25 | * @return string |
||
26 | */ |
||
27 | public function getActor() |
||
31 | |||
32 | /** |
||
33 | * @return string |
||
34 | */ |
||
35 | public function getCode() |
||
40 | |||
41 | /** |
||
42 | * @return string |
||
43 | */ |
||
44 | public function getDescription() |
||
48 | |||
49 | /** |
||
50 | * @param string $actor |
||
51 | * @return Fault |
||
52 | */ |
||
53 | public function setActor($actor) |
||
57 | |||
58 | } |
||
59 | |||
60 |
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.