diff --git a/src/Speakers/src/TwigExtension/SpeakersExtension.php b/src/Speakers/src/TwigExtension/SpeakersExtension.php index 066ae16..b513de5 100644 --- a/src/Speakers/src/TwigExtension/SpeakersExtension.php +++ b/src/Speakers/src/TwigExtension/SpeakersExtension.php @@ -28,9 +28,12 @@ class SpeakersExtension extends AbstractExtension */ public function getSessionSpeakers($session, array $speakers): array { - return collect($speakers)->filter(function ($speaker) use ($session): bool { - return collect($session['speakers'])->contains($speaker['title']); - })->values()->toArray(); + return collect($speakers) + ->filter(function ($speaker) use ($session): bool { + return collect($session['speakers'])->contains($speaker['title']); + }) + ->values() + ->toArray(); } /** @@ -43,8 +46,11 @@ class SpeakersExtension extends AbstractExtension */ public function getSpeakerSessions($speaker, array $sessions): array { - return collect($sessions)->filter(function ($session) use ($speaker): bool { - return collect($session['speakers'])->contains($speaker['title']); - })->values()->toArray(); + return collect($sessions) + ->filter(function ($session) use ($speaker): bool { + return collect($session['speakers'])->contains($speaker['title']); + }) + ->values() + ->toArray(); } }