| Conditions | 1 |
| Paths | 1 |
| Total Lines | 11 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 5 |
| CRAP Score | 1 |
| Changes | 0 | ||
| 1 | <?php |
||
| 35 | 2 | public function __construct( |
|
| 36 | int $duration, |
||
| 37 | float $ration, |
||
| 38 | Connection $connection, |
||
| 39 | ChatNotification $chatNotification |
||
| 40 | ) { |
||
| 41 | 2 | parent::__construct($duration, $ration); |
|
| 42 | |||
| 43 | 2 | $this->connection = $connection; |
|
| 44 | 2 | $this->chatNotification = $chatNotification; |
|
| 45 | 2 | } |
|
| 46 | |||
| 77 | } |
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.