cs: Enable more risky rules.

This commit is contained in:
Pol Dellaiera
2021-11-30 11:37:57 +01:00
parent c8195e6df5
commit a9188355c5
193 changed files with 306 additions and 63 deletions

View File

@@ -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,

View File

@@ -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
{

View File

@@ -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

View File

@@ -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.

View File

@@ -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', []];
}

View File

@@ -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