From da678a8c83de2c2f277cf85dc6866d2cdd93110d Mon Sep 17 00:00:00 2001 From: tienvx Date: Sun, 10 Apr 2022 13:12:33 +0700 Subject: [PATCH] Fix cs --- src/Entity/Model/Revision.php | 2 +- tests/Model/Generator/StateTest.php | 5 ----- 2 files changed, 1 insertion(+), 6 deletions(-) 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