for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php declare(strict_types = 1);
namespace PeeHaa\AsyncTwitter\Api\Request\Media\Response;
class UploadResponse
{
private $mediaId;
private $size;
private $expiryTime;
private $mimeType;
private $width;
private $height;
public function __construct(
string $mediaId, int $size, \DateTimeImmutable $expiryTime,
string $mimeType, int $width, int $height
) {
$this->mediaId = $mediaId;
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
$a = "a"; $ab = "ab"; $abc = "abc";
will produce issues in the first and second line, while this second example
will produce no issues.
$this->size = $size;
$this->expiryTime = $expiryTime;
$this->mimeType = $mimeType;
$this->width = $width;
$this->height = $height;
}
public function getMediaId(): string
return $this->mediaId;
public function getSize(): int
return $this->size;
public function getExpiryTime(): \DateTimeImmutable
return $this->expiryTime;
public function getMimeType(): string
return $this->mimeType;
public function getWidth(): int
return $this->width;
public function getHeight(): int
return $this->height;
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.