diff --git a/src/Entity/Model/Revision.php b/src/Entity/Model/Revision.php index 472e2c44..b758773a 100644 --- a/src/Entity/Model/Revision.php +++ b/src/Entity/Model/Revision.php @@ -80,7 +80,7 @@ public function validatePlacesInTransitions(ExecutionContextInterface $context, */ public function validateStartTransitions(ExecutionContextInterface $context, $payload): void { - if (count($this->transitions) === 0) { + if (0 === count($this->transitions)) { return; } diff --git a/tests/Model/Generator/StateTest.php b/tests/Model/Generator/StateTest.php index 6faea4b8..c1701da3 100644 --- a/tests/Model/Generator/StateTest.php +++ b/tests/Model/Generator/StateTest.php @@ -3,14 +3,9 @@ namespace Tienvx\Bundle\MbtBundle\Tests\Model\Generator; use PHPUnit\Framework\TestCase; -use SingleColorPetrinet\Model\Color; -use SingleColorPetrinet\Model\ColorInterface; use Tienvx\Bundle\MbtBundle\Exception\OutOfRangeException; -use Tienvx\Bundle\MbtBundle\Model\Bug\Step; -use Tienvx\Bundle\MbtBundle\Model\Bug\StepInterface; use Tienvx\Bundle\MbtBundle\Model\Generator\State; use Tienvx\Bundle\MbtBundle\Model\Generator\StateInterface; -use Tienvx\Bundle\MbtBundle\Model\Model\Revision\CommandInterface; /** * @covers \Tienvx\Bundle\MbtBundle\Model\Generator\State