| 1 | <?php |
||
| 10 | class ServerInformationLineFactory |
||
| 11 | { |
||
| 12 | /** @var Factory */ |
||
| 13 | protected $factory; |
||
| 14 | |||
| 15 | /** @var float */ |
||
| 16 | protected $titleWidth; |
||
| 17 | |||
| 18 | /** @var float */ |
||
| 19 | protected $dataWidth; |
||
| 20 | |||
| 21 | /** |
||
| 22 | * ServerInformationLineFactory constructor. |
||
| 23 | * @param Factory $factory |
||
| 24 | * @param string $class |
||
|
|
|||
| 25 | * @param float $titleWidth |
||
| 26 | * @param float $dataWidth |
||
| 27 | */ |
||
| 28 | public function __construct(Factory $factory, float $titleWidth, float $dataWidth) |
||
| 34 | |||
| 35 | |||
| 36 | /** |
||
| 37 | * Create a server information line. |
||
| 38 | * |
||
| 39 | * @param $title |
||
| 40 | * @param $data |
||
| 41 | * @return Frame |
||
| 42 | */ |
||
| 43 | public function create($title, $data) |
||
| 67 | } |
||
| 68 |
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.