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