mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-09-06 23:04:58 +00:00
apply more cs rules for php-cs
This commit is contained in:
@@ -36,8 +36,6 @@ use Psr\Log\LoggerInterface;
|
||||
use Symfony\Component\EventDispatcher\EventSubscriberInterface;
|
||||
use Symfony\Component\Security\Core\Authentication\Token\Storage\TokenStorageInterface;
|
||||
|
||||
use function array_map;
|
||||
|
||||
class PrivacyEventSubscriber implements EventSubscriberInterface
|
||||
{
|
||||
/**
|
||||
@@ -89,7 +87,7 @@ class PrivacyEventSubscriber implements EventSubscriberInterface
|
||||
{
|
||||
$persons = [];
|
||||
|
||||
if ($event->hasPersons() === true) {
|
||||
if (true === $event->hasPersons()) {
|
||||
foreach ($event->getPersons() as $person) {
|
||||
$persons[] = $person->getId();
|
||||
}
|
||||
@@ -99,7 +97,7 @@ class PrivacyEventSubscriber implements EventSubscriberInterface
|
||||
$involved['person_id'] = $event->getPerson()->getId();
|
||||
|
||||
if ($event->hasPersons()) {
|
||||
$involved['persons'] = array_map(
|
||||
$involved['persons'] = \array_map(
|
||||
static fn (Person $p) => $p->getId(),
|
||||
$event->getPersons()
|
||||
);
|
||||
|
Reference in New Issue
Block a user