| Conditions | 3 |
| Paths | 3 |
| Total Lines | 13 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| 1 | <?php |
||
| 55 | public function print_notices(){ |
||
| 56 | if( count( $this->notices ) > 0 ){ |
||
| 57 | foreach ($this->notices as $notice) { |
||
| 58 | |||
| 59 | $classes = 'sensei-message '. $notice['type']; |
||
| 60 | $html = '<div class="'. $classes . '">'. $notice['content'] . '</div>'; |
||
| 61 | |||
| 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 | |||
| 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.