diff --git a/src/FormatTalksBundle/Twig/FormatTalksExtension.php b/src/FormatTalksBundle/Twig/FormatTalksExtension.php index 86b6d407..fc6a8232 100644 --- a/src/FormatTalksBundle/Twig/FormatTalksExtension.php +++ b/src/FormatTalksBundle/Twig/FormatTalksExtension.php @@ -53,7 +53,7 @@ class FormatTalksExtension extends Twig_Extension */ public function getUpcoming($talks, array $eventData = []) { - return $this->format($talks, $eventData) + return $this->format($talks, $eventData) ->filter(function ($talk) { return $talk['event']['date'] >= $this->today; }) diff --git a/src/helpers.php b/src/helpers.php index c70dd091..14aa5116 100644 --- a/src/helpers.php +++ b/src/helpers.php @@ -1,6 +1,7 @@ [ 'name' => 'Event A', 'location' => 'Somewhere', @@ -40,7 +40,7 @@ class FormatTalksTest extends TestCase ], ]; - $talks = [ + $talks = [ [ 'title' => 'Talk A', 'events' => [