X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=src%2FWallabag%2FCoreBundle%2FTwig%2FWallabagExtension.php;h=1a308070672e057bea8277288c46684ca6e5eb29;hb=f2e5fdc3666a2a6525b4202ab48df05efeebaf5c;hp=f8328860b6489da92561dd2180cf8ebac0c181ac;hpb=24429857d8a431cd20077c5c0c3db81e2fedb1ac;p=github%2Fwallabag%2Fwallabag.git diff --git a/src/Wallabag/CoreBundle/Twig/WallabagExtension.php b/src/Wallabag/CoreBundle/Twig/WallabagExtension.php index f8328860..1a308070 100644 --- a/src/Wallabag/CoreBundle/Twig/WallabagExtension.php +++ b/src/Wallabag/CoreBundle/Twig/WallabagExtension.php @@ -6,14 +6,14 @@ class WallabagExtension extends \Twig_Extension { public function getFilters() { - return array( - new \Twig_SimpleFilter('removeWww', array($this, 'removeWww')), - ); + return [ + new \Twig_SimpleFilter('removeWww', [$this, 'removeWww']), + ]; } public function removeWww($url) { - return preg_replace('/^www\./i', '',$url); + return preg_replace('/^www\./i', '', $url); } public function getName()