Total Lines | 43 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
11 | interface ResponseParser { |
||
12 | |||
13 | /** |
||
14 | * @since 0.1 |
||
15 | * |
||
16 | * @return FilteredRecord |
||
17 | */ |
||
18 | public function getFilteredRecord(); |
||
19 | |||
20 | /** |
||
21 | * @since 0.1 |
||
22 | * |
||
23 | * @return array |
||
24 | */ |
||
25 | public function getMessages(); |
||
26 | |||
27 | /** |
||
28 | * @since 0.1 |
||
29 | * |
||
30 | * @return boolean |
||
31 | */ |
||
32 | //public function isFromCache(); |
||
|
|||
33 | public function usesCache(); |
||
34 | |||
35 | /** |
||
36 | * @since 0.1 |
||
37 | * |
||
38 | * @param string $id |
||
39 | */ |
||
40 | //public function doFilterResponseById( $id ); |
||
41 | public function doFilterResponseFor( $id ); |
||
42 | |||
43 | /** |
||
44 | * @since 0.1 |
||
45 | * |
||
46 | * @param string $id |
||
47 | * |
||
48 | * @return string |
||
49 | */ |
||
50 | //public function getRawResponseById( $id ); |
||
51 | public function getRawResponse( $id ); |
||
52 | |||
53 | } |
||
54 |
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.