Code cleanup

This commit is contained in:
Daniel Rudolf 2022-02-06 23:15:51 +01:00
parent fe6c8f805a
commit 1b956afc29
No known key found for this signature in database
GPG key ID: A061F02CD8DE4538

View file

@ -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' ]),