mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-28 10:33:49 +00:00
DX: rector rules upt to PHP 74
This commit is contained in:
@@ -121,9 +121,7 @@ class RemoteEventConverter
|
||||
'subject' => '[Chill] ' .
|
||||
implode(
|
||||
', ',
|
||||
$calendar->getPersons()->map(function (Person $p) {
|
||||
return $this->personRender->renderString($p, []);
|
||||
})->toArray()
|
||||
$calendar->getPersons()->map(fn(Person $p) => $this->personRender->renderString($p, []))->toArray()
|
||||
),
|
||||
'start' => [
|
||||
'dateTime' => $calendar->getStartDate()->setTimezone($this->remoteDateTimeZone)
|
||||
@@ -161,9 +159,7 @@ class RemoteEventConverter
|
||||
{
|
||||
return [
|
||||
'attendees' => $calendar->getInvites()->map(
|
||||
function (Invite $i) {
|
||||
return $this->buildInviteToAttendee($i);
|
||||
}
|
||||
fn(Invite $i) => $this->buildInviteToAttendee($i)
|
||||
)->toArray(),
|
||||
];
|
||||
}
|
||||
|
Reference in New Issue
Block a user