Ver Fonte

apply StyleCI recommendation

El RIDO há 3 meses atrás
pai
commit
2439d76a0a
1 ficheiros alterados com 4 adições e 5 exclusões
  1. 4 5
      lib/View.php

+ 4 - 5
lib/View.php

@@ -72,7 +72,6 @@ class View
      */
      */
     private function _getCacheBuster($file)
     private function _getCacheBuster($file)
     {
     {
-        //
         if ((bool) preg_match('#[0-9]\.m?js$#', (string) $file)) {
         if ((bool) preg_match('#[0-9]\.m?js$#', (string) $file)) {
             return '';
             return '';
         }
         }
@@ -102,7 +101,7 @@ class View
     private function _linkTag($file)
     private function _linkTag($file)
     {
     {
         echo '<link rel="modulepreload" href="', $file,
         echo '<link rel="modulepreload" href="', $file,
-            $this->_getCacheBuster($file), '"', $this->_getSri($file), ' />', PHP_EOL;
+        $this->_getCacheBuster($file), '"', $this->_getSri($file), ' />', PHP_EOL;
     }
     }
 
 
     /**
     /**
@@ -115,8 +114,8 @@ class View
     private function _scriptTag($file, $attributes = '')
     private function _scriptTag($file, $attributes = '')
     {
     {
         echo '<script ', $attributes,
         echo '<script ', $attributes,
-            ' type="text/javascript" data-cfasync="false" src="', $file,
-            $this->_getCacheBuster($file), '"', $this->_getSri($file),
-            ' crossorigin="anonymous"></script>', PHP_EOL;
+        ' type="text/javascript" data-cfasync="false" src="', $file,
+        $this->_getCacheBuster($file), '"', $this->_getSri($file),
+        ' crossorigin="anonymous"></script>', PHP_EOL;
     }
     }
 }
 }