for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php declare(strict_types=1);
namespace Stratadox\CardGame\Visiting;
use Stratadox\CardGame\CorrelationId;
final class Visit
{
private $page;
private $redirectSource;
private $visitorId;
private $correlationId;
private function __construct(
string $page,
string $redirectSource,
VisitorId $visitorId,
CorrelationId $correlationId
) {
$this->page = $page;
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->redirectSource = $redirectSource;
$this->visitorId = $visitorId;
$this->correlationId = $correlationId;
}
public static function page(
): self {
return new self($page, $redirectSource, $visitorId, $correlationId);
public function whichPage(): string
return $this->page;
public function redirectSource(): string
return $this->redirectSource;
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.