1 | <?php |
||
11 | class PageRender implements PageRenderInterface, InjectionAwareInterface |
||
12 | { |
||
13 | use InjectionAwareTrait; |
||
14 | |||
15 | |||
16 | /** |
||
17 | * Render a standard web page using a specific layout. |
||
18 | * |
||
19 | * @param array $data variables to expose to layout view. |
||
20 | * @param integer $status code to use when delivering the result. |
||
21 | * |
||
22 | * @SuppressWarnings(PHPMD.ExitExpression) |
||
23 | * @param string $title |
||
|
|||
24 | * @return void |
||
25 | */ |
||
26 | public function renderPage($data = null, $status = 200) |
||
42 | |||
43 | /** |
||
44 | * Render a standard web page using a specific layout. |
||
45 | * |
||
46 | * @param array $data variables to expose to layout view. |
||
47 | * @param integer $status code to use when delivering the result. |
||
48 | * |
||
49 | * @SuppressWarnings(PHPMD.ExitExpression) |
||
50 | * @param string $title |
||
51 | * @return void |
||
52 | */ |
||
53 | public function renderLogin($data = null, $status = 200) |
||
69 | } |
||
70 |
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
$italy
is not defined by the methodfinale(...)
.The most likely cause is that the parameter was removed, but the annotation was not.