Total Lines | 17 |
Duplicated Lines | 0 % |
Changes | 3 | ||
Bugs | 0 | Features | 1 |
1 | <?php |
||
5 | interface EntityEvent { |
||
6 | /** |
||
7 | * Provides the entities used in the event, |
||
8 | * ready to be used by the inspection |
||
9 | * @return array |
||
10 | */ |
||
11 | public function getEntities(); |
||
12 | |||
13 | // public static function providesEntities(); |
||
|
|||
14 | |||
15 | /** |
||
16 | * Provides an associative array of event name => event label |
||
17 | * for us when building an inspection |
||
18 | * @return array |
||
19 | */ |
||
20 | public static function supportsEvents(); |
||
21 | } |
||
22 |
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.