From 58c63911d74f8ed5d140c0ddafe26011ee82d76c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicolas=20L=C5=93uillet?= Date: Thu, 16 Jan 2014 14:26:38 +0100 Subject: [PATCH] [fix] change functions to static functions --- src/Poche/Twig/Filter.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Poche/Twig/Filter.php b/src/Poche/Twig/Filter.php index a950a14..eddc430 100644 --- a/src/Poche/Twig/Filter.php +++ b/src/Poche/Twig/Filter.php @@ -12,12 +12,12 @@ namespace Poche\Twig; class Filter { - public function getDomain($url) + public static function getDomain($url) { return parse_url($url, PHP_URL_HOST); } - public function getReadingTime($text) + public static function getReadingTime($text) { $word = str_word_count(strip_tags($text)); $minutes = floor($word / 200); @@ -27,7 +27,7 @@ class Filter return $minutes; } - public function getPicture($text) + public static function getPicture($text) { $output = preg_match('//Ui', $text, $result);