mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-28 18:43:49 +00:00
cs: Fix code-style (using PHPCSFixer and PHPCS).
This commit is contained in:
@@ -35,6 +35,7 @@ use Chill\PersonBundle\Entity\Person;
|
||||
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
|
||||
@@ -75,7 +76,9 @@ class PrivacyEventSubscriber implements EventSubscriberInterface
|
||||
$involved = $this->getInvolved();
|
||||
$involved['period_id'] = $event->getPeriod()->getId();
|
||||
$involved['persons'] = $event->getPeriod()->getPersons()
|
||||
->map(static function (Person $p) { return $p->getId(); })
|
||||
->map(static function (Person $p) {
|
||||
return $p->getId();
|
||||
})
|
||||
->toArray();
|
||||
|
||||
$this->logger->notice(
|
||||
@@ -99,7 +102,9 @@ class PrivacyEventSubscriber implements EventSubscriberInterface
|
||||
|
||||
if ($event->hasPersons()) {
|
||||
$involved['persons'] = array_map(
|
||||
static function (Person $p) { return $p->getId(); },
|
||||
static function (Person $p) {
|
||||
return $p->getId();
|
||||
},
|
||||
$event->getPersons()
|
||||
);
|
||||
}
|
||||
|
Reference in New Issue
Block a user