From 66c948d9eea8a9dad4796fb39225ff09dc459f1f Mon Sep 17 00:00:00 2001 From: Oliver Davies Date: Tue, 26 Mar 2019 21:58:35 +0000 Subject: [PATCH] PSR-2 fixes --- src/TalksBundle/TwigExtension/TalksExtension.php | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/TalksBundle/TwigExtension/TalksExtension.php b/src/TalksBundle/TwigExtension/TalksExtension.php index cd848d0a..18e67e91 100644 --- a/src/TalksBundle/TwigExtension/TalksExtension.php +++ b/src/TalksBundle/TwigExtension/TalksExtension.php @@ -48,16 +48,16 @@ class TalksExtension extends Twig_Extension }); } - /** - * Get all upcoming talks. - * - * @param ProxySourceCollection|array $talks All talk nodes. - * - * @return Collection A sorted collection of talks. - */ + /** + * Get all upcoming talks. + * + * @param ProxySourceCollection|array $talks All talk nodes. + * + * @return Collection A sorted collection of talks. + */ public function getUpcoming($talks): Collection { - return $this->getAll($talks)->filter(function ($talk) { + return $this->getAll($talks)->filter(function ($talk) { return $this->getLastDate($talk) >= $this->today; })->values(); }