Passed
Push — master ( f38dde...147718 )
by Fran
02:30
created
src/base/types/helpers/AssetsHelper.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -66,21 +66,21 @@  discard block
 block discarded – undo
66 66
     {
67 67
         $path = explode("/", $string);
68 68
         $originalFilename = end($path);
69
-        $base = WEB_DIR . DIRECTORY_SEPARATOR;
69
+        $base = WEB_DIR.DIRECTORY_SEPARATOR;
70 70
         $debug = Config::getParam('debug');
71 71
         $cache = Config::getParam('cache.var');
72
-        $cache = $cache ? '.' . $cache : '';
72
+        $cache = $cache ? '.'.$cache : '';
73 73
         $finfo = finfo_open(FILEINFO_MIME_TYPE); // devuelve el tipo mime de su extensión
74 74
         $mime = finfo_file($finfo, $filenamePath);
75 75
         $extension = explode(".", $string);
76 76
         $extension = end($extension);
77
-        $file = "/" . substr(md5($string), 0, 8) . "." . $extension;
77
+        $file = "/".substr(md5($string), 0, 8).".".$extension;
78 78
         finfo_close($finfo);
79 79
         if (preg_match('/\.css$/i', $string)) {
80
-            $file = "/" . substr(md5($string), 0, 8) . "$cache.css";
80
+            $file = "/".substr(md5($string), 0, 8)."$cache.css";
81 81
             $htmlBase = "css";
82 82
         } elseif (preg_match('/\.js$/i', $string)) {
83
-            $file = "/" . substr(md5($string), 0, 8) . "$cache.js";
83
+            $file = "/".substr(md5($string), 0, 8)."$cache.js";
84 84
             $htmlBase = "js";
85 85
         } elseif (preg_match("/image/i", $mime)) {
86 86
             $htmlBase = "img";
@@ -95,9 +95,9 @@  discard block
 block discarded – undo
95 95
             $file = $name;
96 96
         }
97 97
         if ($debug) {
98
-            $file = str_replace("." . $extension, "_" . $originalFilename, $file);
98
+            $file = str_replace(".".$extension, "_".$originalFilename, $file);
99 99
         }
100
-        $filePath = $htmlBase . $file;
100
+        $filePath = $htmlBase.$file;
101 101
 
102 102
         return array($base, $htmlBase, $filePath);
103 103
     }
Please login to merge, or discard this patch.