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\Transitions;
use Star\Component\State\RegistryBuilder;
use Star\Component\State\StateTransition;
final class ReadOnlyTransition implements StateTransition
{
/**
* @var string
*/
private $destination;
public function __construct(string $destination)
$this->destination = $destination;
}
public function getName(): string
throw new \RuntimeException('Method ' . __METHOD__ . ' not implemented yet.');
public function onRegister(RegistryBuilder $registry): void
public function getDestinationState(): string
return $this->destination;
This check marks files that end in a newline character, i.e. an empy line.