From 65d27e57635e15bb62c58c450fd0fefa3544be1a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=A3o=20F=2E=20Ruvinski?= Date: Thu, 2 Jan 2020 19:09:05 -0300 Subject: [PATCH] Added static in method implementation --- src/Engine/ZF3TurboCSSEngine.php | 8 ++++---- src/Engine/ZF3TurboHTMLEngine.php | 2 +- src/Engine/ZF3TurboJSEngine.php | 6 +++--- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/src/Engine/ZF3TurboCSSEngine.php b/src/Engine/ZF3TurboCSSEngine.php index 1033d88..65bb7a8 100644 --- a/src/Engine/ZF3TurboCSSEngine.php +++ b/src/Engine/ZF3TurboCSSEngine.php @@ -17,7 +17,7 @@ public function __construct() { } - public function minify_css_callback($matches) + public static function minify_css_callback($matches) { //print_r($matches); @@ -37,7 +37,7 @@ public function minify_css_callback($matches) return "{$openStyleTag}{$css}"; } - protected function removeComments($data) + protected static function removeComments($data) { if (false !== strpos($data, '/*')) { $data = str_replace("/*","_COMSTART",$data); @@ -48,7 +48,7 @@ protected function removeComments($data) return $data; } - protected function removeCdata($data) + protected static function removeCdata($data) { if (false !== strpos($data, '"; } - protected function removeComments($data) + protected static function removeComments($data) { $data = preg_replace('/(?:(?:\/\*(?:[^*]|(?:\*+[^*\/]))*\*+\/)|(?:(?