for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php declare(strict_types=1);
namespace Stratadox\CardGame\Proposal;
use Stratadox\CardGame\Account\AccountId;
use Stratadox\CardGame\CorrelationId;
final class ProposeMatch
{
private $proposedBy;
private $proposedTo;
private $correlationId;
private function __construct(
AccountId $proposedBy,
AccountId $proposedTo,
CorrelationId $correlationId
) {
$this->proposedBy = $proposedBy;
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->proposedTo = $proposedTo;
$this->correlationId = $correlationId;
}
public static function between(
): ProposeMatch {
return new self($proposedBy, $proposedTo, $correlationId);
public function proposedBy(): AccountId
return $this->proposedBy;
public function proposedTo(): AccountId
return $this->proposedTo;
public function correlationId(): CorrelationId
return $this->correlationId;
This check marks files that end in a newline character, i.e. an empy line.