| 1 | <?php declare(strict_types = 1); |
||
| 5 | class UploadResponse |
||
| 6 | { |
||
| 7 | private $mediaId; |
||
| 8 | private $size; |
||
| 9 | private $expiryTime; |
||
| 10 | private $mimeType; |
||
| 11 | private $width; |
||
| 12 | private $height; |
||
| 13 | |||
| 14 | public function __construct( |
||
| 25 | |||
| 26 | public function getMediaId(): string |
||
| 30 | |||
| 31 | public function getSize(): int |
||
| 35 | |||
| 36 | public function getExpiryTime(): \DateTimeImmutable |
||
| 40 | |||
| 41 | public function getMimeType(): string |
||
| 45 | |||
| 46 | public function getWidth(): int |
||
| 50 | |||
| 51 | public function getHeight(): int |
||
| 55 | } |
||
| 56 |
This check looks for multiple assignments in successive lines of code. It will report an issue if the operators are not in a straight line.
To visualize
will produce issues in the first and second line, while this second example
will produce no issues.