Split onto multiple lines
This commit is contained in:
parent
ac4af4dbd7
commit
d100b42164
|
@ -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();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue