| Conditions | 1 |
| Paths | 1 |
| Total Lines | 9 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 30 | public function render(int $programId) |
||
| 31 | { |
||
| 32 | $template = $this->getTemplate(); |
||
| 33 | $template->setFile($this->buildTemplatePath()); |
||
| 34 | $template->imgDir = IMG_DIR; |
||
| 35 | $template->programId = $programId; |
||
| 36 | $template->visitors = $this->getProgramRepository()->findVisitors($programId); |
||
| 37 | $template->render(); |
||
| 38 | } |
||
| 39 | |||
| 60 |
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.