| Conditions | 3 |
| Paths | 2 |
| Total Lines | 18 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| 1 | <?php |
||
| 62 | echo $html; |
||
| 63 | } |
||
| 64 | // empty the notice queue to avoid reprinting the same notices |
||
| 65 | $this->clear_notices(); |
||
| 66 | } |
||
| 67 | } // end print_notice() |
||
| 68 | |||
| 69 | /** |
||
| 70 | * Clear all notices |
||
| 71 | * |
||
| 72 | * @return void |
||
| 73 | */ |
||
| 74 | |||
| 75 | public function clear_notices(){ |
||
| 76 | // assign an empty array to clear all existing notices |
||
| 77 | $this->notices = array(); |
||
| 78 | } // end clear_notices() |
||
| 79 | |||
| 80 | } // end Woothemes_Sensei_Notices |
||
| 88 |
This check looks for PHPDoc comments describing methods or function parameters that do not exist on the corresponding method or function.
Consider the following example. The parameter
$italyis not defined by the methodfinale(...).The most likely cause is that the parameter was removed, but the annotation was not.