mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-30 03:23:48 +00:00
cs: Enable more risky rules.
This commit is contained in:
@@ -16,6 +16,7 @@ use Chill\TaskBundle\Security\Authorization\TaskVoter;
|
||||
use Doctrine\Common\DataFixtures\AbstractFixture;
|
||||
use Doctrine\Common\DataFixtures\OrderedFixtureInterface;
|
||||
use Doctrine\Persistence\ObjectManager;
|
||||
use function in_array;
|
||||
|
||||
/**
|
||||
* Add a role UPDATE & CREATE for all groups except administrative,
|
||||
|
@@ -29,6 +29,7 @@ use Symfony\Component\Security\Core\Authentication\Token\Storage\TokenStorageInt
|
||||
use Symfony\Component\Security\Core\Role\Role;
|
||||
use function array_combine;
|
||||
use function array_map;
|
||||
use function count;
|
||||
|
||||
class SingleTaskListType extends AbstractType
|
||||
{
|
||||
|
@@ -23,6 +23,7 @@ use Doctrine\ORM\EntityManagerInterface;
|
||||
use Doctrine\ORM\QueryBuilder;
|
||||
use LogicException;
|
||||
use Symfony\Component\Security\Core\Security;
|
||||
use function count;
|
||||
use function substr;
|
||||
|
||||
final class SingleTaskAclAwareRepository implements SingleTaskAclAwareRepositoryInterface
|
||||
|
@@ -21,6 +21,7 @@ use LogicException;
|
||||
use Symfony\Component\Security\Core\Role\Role;
|
||||
use UnexpectedValueException;
|
||||
use function array_key_exists;
|
||||
use function count;
|
||||
|
||||
/**
|
||||
* Class SingleTaskRepository.
|
||||
|
@@ -25,6 +25,7 @@ use UnexpectedValueException;
|
||||
use function array_combine;
|
||||
use function array_fill;
|
||||
use function array_map;
|
||||
use function count;
|
||||
use function implode;
|
||||
use function in_array;
|
||||
use function strtr;
|
||||
@@ -221,7 +222,7 @@ class TaskLifeCycleEventTimelineProvider implements TimelineProviderInterface
|
||||
);
|
||||
}
|
||||
|
||||
if (0 === \count($clauses)) {
|
||||
if (0 === count($clauses)) {
|
||||
return ['FALSE = TRUE', []];
|
||||
}
|
||||
|
||||
|
@@ -14,6 +14,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;
|
||||
|
||||
class TaskWorkflowManager implements WorkflowSupportStrategyInterface
|
||||
|
Reference in New Issue
Block a user