mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-27 18:13:48 +00:00
apply more cs rules for php-cs
This commit is contained in:
@@ -19,8 +19,6 @@ use Chill\MainBundle\Security\ProvideRoleHierarchyInterface;
|
||||
use Chill\ReportBundle\Entity\Report;
|
||||
use Symfony\Component\Security\Core\Authentication\Token\TokenInterface;
|
||||
|
||||
use function in_array;
|
||||
|
||||
class ReportVoter extends AbstractChillVoter implements ProvideRoleHierarchyInterface
|
||||
{
|
||||
final public const CREATE = 'CHILL_REPORT_CREATE';
|
||||
@@ -59,7 +57,7 @@ class ReportVoter extends AbstractChillVoter implements ProvideRoleHierarchyInte
|
||||
protected function supports($attribute, $subject)
|
||||
{
|
||||
if ($subject instanceof Report) {
|
||||
return in_array($attribute, [
|
||||
return \in_array($attribute, [
|
||||
self::CREATE, self::UPDATE, self::SEE,
|
||||
], true);
|
||||
}
|
||||
|
Reference in New Issue
Block a user