From 1b956afc29d5103731e2a928fb11100dbd735bdc Mon Sep 17 00:00:00 2001 From: Daniel Rudolf Date: Sun, 6 Feb 2022 23:15:51 +0100 Subject: [PATCH] Code cleanup --- lib/PicoTwigExtension.php | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/lib/PicoTwigExtension.php b/lib/PicoTwigExtension.php index 1a4491a..72431ef 100644 --- a/lib/PicoTwigExtension.php +++ b/lib/PicoTwigExtension.php @@ -78,11 +78,7 @@ class PicoTwigExtension extends AbstractTwigExtension public function getFilters() { return [ - 'markdown' => new TwigFilter( - 'markdown', - [ $this, 'markdownFilter' ], - [ 'is_safe' => [ 'html' ] ] - ), + 'markdown' => new TwigFilter('markdown', [ $this, 'markdownFilter' ], [ 'is_safe' => [ 'html' ] ]), 'map' => new TwigFilter('map', [ $this, 'mapFilter' ]), 'sort_by' => new TwigFilter('sort_by', [ $this, 'sortByFilter' ]), 'link' => new TwigFilter('link', [ $this->pico, 'getPageUrl' ]),