| Total Lines | 21 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 5 | interface CreationContract |
||
| 6 | { |
||
| 7 | /** |
||
| 8 | * Crate a new record. |
||
| 9 | * |
||
| 10 | * @param array $data |
||
|
|
|||
| 11 | * |
||
| 12 | * @return stdObject |
||
| 13 | */ |
||
| 14 | public function create(); |
||
| 15 | |||
| 16 | /** |
||
| 17 | * Update a existing record. |
||
| 18 | * |
||
| 19 | * @param int $id |
||
| 20 | * @param array $data |
||
| 21 | * |
||
| 22 | * @return stdObject |
||
| 23 | */ |
||
| 24 | public function update($id); |
||
| 25 | } |
||
| 26 |
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.