for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php declare(strict_types=1);
namespace Star\Component\State\Event;
use Symfony\Contracts\EventDispatcher\Event;
final class TransitionWasFailed extends Event implements StateEvent
{
/**
* @var string
*/
private $transition;
* @var \Throwable
private $exception;
public function __construct(string $transition, \Throwable $exception)
$this->transition = $transition;
$this->exception = $exception;
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.
}
public function transition(): string
return $this->transition;
public function exception(): \Throwable
return $this->exception;
This check marks files that end in a newline character, i.e. an empy line.