| 1 | <?php |
||
| 17 | abstract class RepositoryUpdater |
||
| 18 | { |
||
| 19 | use LoggedUser; |
||
| 20 | |||
| 21 | /** |
||
| 22 | * @var Model |
||
| 23 | */ |
||
| 24 | protected $model; |
||
| 25 | |||
| 26 | public function __construct(Model $model) |
||
| 30 | |||
| 31 | public function save(array $options = []) |
||
| 35 | |||
| 36 | public function delete() |
||
| 40 | |||
| 41 | /** |
||
| 42 | * @param array $data |
||
| 43 | * |
||
| 44 | * @return mixed |
||
| 45 | */ |
||
| 46 | public function create(array $data) |
||
| 51 | |||
| 52 | /** |
||
| 53 | * @param array $data |
||
|
|
|||
| 54 | * @param $id |
||
| 55 | * @param string $attribute |
||
| 56 | * |
||
| 57 | * @return mixed |
||
| 58 | */ |
||
| 59 | public function update(array $attributes = [], array $options = []) |
||
| 63 | |||
| 64 | protected function transaction($method) |
||
| 71 | } |
||
| 72 |
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.