mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-09-05 14:25:00 +00:00
cs: Fix code-style (using PHPCSFixer and PHPCS).
This commit is contained in:
@@ -15,6 +15,7 @@ use Chill\TaskBundle\Entity\AbstractTask;
|
||||
use Chill\TaskBundle\Entity\SingleTask;
|
||||
use LogicException;
|
||||
use Symfony\Component\Workflow\Transition;
|
||||
|
||||
use function array_key_exists;
|
||||
use function array_slice;
|
||||
use function explode;
|
||||
|
@@ -30,10 +30,12 @@ class DefaultTaskGuardEvent implements EventSubscriberInterface
|
||||
|
||||
public function checkACL(GuardEvent $event)
|
||||
{
|
||||
if (false === $this->authorizationChecker->isGranted(
|
||||
TaskVoter::UPDATE,
|
||||
$event->getSubject()
|
||||
)) {
|
||||
if (
|
||||
false === $this->authorizationChecker->isGranted(
|
||||
TaskVoter::UPDATE,
|
||||
$event->getSubject()
|
||||
)
|
||||
) {
|
||||
$event->setBlocked(true);
|
||||
}
|
||||
}
|
||||
|
@@ -16,6 +16,7 @@ use LogicException;
|
||||
use Symfony\Component\Workflow\Event\Event;
|
||||
use Symfony\Component\Workflow\SupportStrategy\WorkflowSupportStrategyInterface;
|
||||
use Symfony\Component\Workflow\WorkflowInterface;
|
||||
|
||||
use function count;
|
||||
use function sprintf;
|
||||
|
||||
|
Reference in New Issue
Block a user