From 8c28c4bb1662f85b44d8d192550fe0db1ef088ea Mon Sep 17 00:00:00 2001 From: Oliver Davies Date: Fri, 18 Jan 2019 23:11:08 +0000 Subject: [PATCH] No more need for eventData --- src/TalksBundle/TwigExtension/TalksExtension.php | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/src/TalksBundle/TwigExtension/TalksExtension.php b/src/TalksBundle/TwigExtension/TalksExtension.php index 476d8a56..885b9dcf 100644 --- a/src/TalksBundle/TwigExtension/TalksExtension.php +++ b/src/TalksBundle/TwigExtension/TalksExtension.php @@ -40,11 +40,10 @@ class TalksExtension extends Twig_Extension * Get all upcoming and previous talks. * * @param ProxySourceCollection|array $talks All talk nodes. - * @param array $eventData Shared event data. * * @return Collection A sorted collection of talks. */ - public function getAll($talks, array $eventData = []): Collection + public function getAll($talks): Collection { return collect($talks)->sortBy(function ($talk) { return $this->getLastDate($talk); @@ -55,11 +54,10 @@ class TalksExtension extends Twig_Extension * Get all upcoming talks. * * @param ProxySourceCollection|array $talks All talk nodes. - * @param array $eventData Shared event data. * * @return Collection A sorted collection of talks. */ - public function getUpcoming($talks, array $eventData = []): Collection + public function getUpcoming($talks): Collection { return $this->getAll($talks)->filter(function ($talk) { return $this->getLastDate($talk) >= $this->today; @@ -70,11 +68,10 @@ class TalksExtension extends Twig_Extension * Get all past talks. * * @param ProxySourceCollection|array $talks All talk nodes. - * @param array $eventData Shared event data. * * @return Collection A sorted collection of talks. */ - public function getPast($talks, array $eventData = []): Collection + public function getPast($talks): Collection { return $this->getAll($talks)->filter(function ($talk) { return $this->getLastDate($talk) < $this->today;