From d100b421641299c7652aefb09e5258d4efebd1e7 Mon Sep 17 00:00:00 2001 From: Oliver Davies Date: Wed, 22 May 2019 21:25:05 +0100 Subject: [PATCH] Split onto multiple lines --- .../src/TwigExtension/SpeakersExtension.php | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) 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(); } }