| 1 | <?php |
||
| 18 | trait GettersTrait |
||
| 19 | { |
||
| 20 | protected $_view; |
||
| 21 | |||
| 22 | public function getView() |
||
| 30 | |||
| 31 | public function take($id) |
||
| 35 | |||
| 36 | public function getApp() |
||
| 40 | |||
| 41 | /** |
||
| 42 | * Runs given binary with given arguments. |
||
| 43 | * Command output passes unchanged to console. |
||
| 44 | * Returns exit code. |
||
| 45 | * @param string $name |
||
| 46 | * @param array|string $args |
||
| 47 | * @return int exit code |
||
| 48 | */ |
||
| 49 | public function passthru($name, $args = []) |
||
| 53 | |||
| 54 | /** |
||
| 55 | * Runs given binary with given arguments. Returns stdout array. |
||
| 56 | * @param string $name |
||
| 57 | * @param string $args |
||
| 58 | * @param bool $returnExitCode, default false |
||
|
|
|||
| 59 | * @return array|int stdout or exitcode |
||
| 60 | */ |
||
| 61 | public function exec($name, $args = '', $returnExitCode = false) |
||
| 65 | |||
| 66 | public function execCode($name, $args = '') |
||
| 70 | } |
||
| 71 |
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.