| 1 | <?php |
||
| 12 | class View extends Container |
||
| 13 | { |
||
| 14 | protected $_config = null; |
||
| 15 | |||
| 16 | /** |
||
| 17 | * Constructor |
||
| 18 | * @param string $template |
||
| 19 | * @param mixed $data |
||
| 20 | * @param string $templateFolder |
||
|
|
|||
| 21 | */ |
||
| 22 | public function __construct($template = null, $data = null, $templateRootFolder = ERDIKO_APP) |
||
| 27 | |||
| 28 | /** |
||
| 29 | * Attach getView function to the mustache view |
||
| 30 | */ |
||
| 31 | public function renderMustache($filename, $data) { |
||
| 38 | |||
| 39 | /** |
||
| 40 | * Get a view, for nesting views |
||
| 41 | * This is a convenience wrapper for inherited getTemplateFile() method |
||
| 42 | * Notes: expects this sub view to be in the same views folder (or nested below this folder relative to views/). |
||
| 43 | * |
||
| 44 | */ |
||
| 45 | public function getView($filename, $data = null) |
||
| 50 | } |
||
| 51 |
This check looks for PHPDoc comments describing methods or function parameters that do not exist on the corresponding method or function. It has, however, found a similar but not annotated parameter which might be a good fit.
Consider the following example. The parameter
$irelandis not defined by the methodfinale(...).The most likely cause is that the parameter was changed, but the annotation was not.