| Conditions | 1 |
| Paths | 1 |
| Total Lines | 11 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 2 |
| Changes | 0 | ||
| 1 | <?php declare(strict_types = 1); |
||
| 14 | public function __construct( |
||
| 15 | string $mediaId, int $size, \DateTimeImmutable $expiryTime, |
||
| 16 | string $mimeType, int $width, int $height |
||
| 17 | ) { |
||
| 18 | $this->mediaId = $mediaId; |
||
|
|
|||
| 19 | $this->size = $size; |
||
| 20 | $this->expiryTime = $expiryTime; |
||
| 21 | $this->mimeType = $mimeType; |
||
| 22 | $this->width = $width; |
||
| 23 | $this->height = $height; |
||
| 24 | } |
||
| 25 | |||
| 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.