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