| Total Lines | 41 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 7 | interface PlanContract |
||
| 8 | { |
||
| 9 | /** |
||
| 10 | * @param string $name |
||
| 11 | * @param string $description |
||
| 12 | * @param int $free_days |
||
|
|
|||
| 13 | * @param int $sort_order |
||
| 14 | * @param bool $is_active |
||
| 15 | * @param bool $is_default |
||
| 16 | * @param GroupContract|null $group |
||
| 17 | * @return Model|PlanContract |
||
| 18 | */ |
||
| 19 | public static function create( |
||
| 27 | |||
| 28 | public function intervals(); |
||
| 29 | |||
| 30 | public function isDefault(): bool; |
||
| 31 | |||
| 32 | public function isEnabled(): bool; |
||
| 33 | |||
| 34 | public function isFree(): bool; |
||
| 35 | |||
| 36 | public function isNotFree(): bool; |
||
| 37 | |||
| 38 | public function hasManyIntervals(): bool; |
||
| 39 | |||
| 40 | public function subscriptions(); |
||
| 41 | |||
| 42 | public function setDefault(); |
||
| 43 | |||
| 44 | public function myGroup(): ?GroupContract; |
||
| 45 | |||
| 46 | public function changeToGroup(GroupContract $group): void; |
||
| 47 | } |
||
| 48 |
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.