mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-09-06 06:44:59 +00:00
apply more cs rules for php-cs
This commit is contained in:
@@ -18,7 +18,6 @@ use Chill\MainBundle\Repository\Workflow\EntityWorkflowRepository;
|
||||
use Chill\MainBundle\Serializer\Model\Collection;
|
||||
use Chill\MainBundle\Serializer\Model\Counter;
|
||||
use Doctrine\ORM\EntityManagerInterface;
|
||||
use LogicException;
|
||||
use Symfony\Component\HttpFoundation\JsonResponse;
|
||||
use Symfony\Component\HttpFoundation\Request;
|
||||
use Symfony\Component\HttpFoundation\Response;
|
||||
@@ -142,12 +141,12 @@ class WorkflowApiController
|
||||
'final' => match ($action) {
|
||||
'subscribe' => $entityWorkflow->addSubscriberToFinal($user),
|
||||
'unsubscribe' => $entityWorkflow->removeSubscriberToFinal($user),
|
||||
default => throw new LogicException(),
|
||||
default => throw new \LogicException(),
|
||||
},
|
||||
'step' => match ($action) {
|
||||
'subscribe' => $entityWorkflow->addSubscriberToStep($user),
|
||||
'unsubscribe' => $entityWorkflow->removeSubscriberToStep($user),
|
||||
default => throw new LogicException(),
|
||||
default => throw new \LogicException(),
|
||||
},
|
||||
default => throw new BadRequestHttpException('subscribe parameter must be equal to "step" or "final"'),
|
||||
};
|
||||
|
Reference in New Issue
Block a user