Completed
Pull Request — master (#7)
by halfpastfour
02:11
created
src/View/Helper/HeadScript.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -49,7 +49,7 @@  discard block
 block discarded – undo
49 49
     public function toString($indent = null): string
50 50
     {
51 51
         // If configuration tells us minifying is not enabled, use the default view helper.
52
-        if (! $this->options['enabled']) {
52
+        if (!$this->options['enabled']) {
53 53
             return parent::toString($indent);
54 54
         }
55 55
 
@@ -87,7 +87,7 @@  discard block
 block discarded – undo
87 87
     {
88 88
         $items = [];
89 89
         foreach ($this as $index => $item) {
90
-            if ($item->type !== 'text/javascript' && (! @$item->attributes['src'] || ! $item->source)) {
90
+            if ($item->type !== 'text/javascript' && (!@$item->attributes['src'] || !$item->source)) {
91 91
                 $items[] = $item;
92 92
                 continue;
93 93
             }
@@ -147,10 +147,10 @@  discard block
 block discarded – undo
147 147
      */
148 148
     private function minifyFile($minifiedFileName, $publicDir, $cacheDir, array $cacheItems, array &$items)
149 149
     {
150
-        if (! empty($cacheItems)) {
151
-            if (! is_file($cacheDir . $minifiedFileName)) {
150
+        if (!empty($cacheItems)) {
151
+            if (!is_file($cacheDir . $minifiedFileName)) {
152 152
                 $minifier = new Minify\JS();
153
-                array_map(function ($uri) use ($minifier) {
153
+                array_map(function($uri) use ($minifier) {
154 154
                     $minifier->add($uri);
155 155
                 }, $cacheItems);
156 156
                 $minifier->minify($cacheDir . $minifiedFileName);
Please login to merge, or discard this patch.
src/View/Helper/HeadLink.php 2 patches
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -71,7 +71,7 @@
 block discarded – undo
71 71
         // returned in $items.
72 72
         $links = $this->minifyFile($minifiedFile, $publicDir, $cacheDir, $cacheItems, $items)
73 73
             // Generate the links
74
-                      ->generateLinks($items);
74
+                        ->generateLinks($items);
75 75
 
76 76
         return $indent . implode($this->escape($this->getSeparator()) . $indent, $links);
77 77
     }
Please login to merge, or discard this patch.
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -48,7 +48,7 @@  discard block
 block discarded – undo
48 48
     public function toString($indent = null): string
49 49
     {
50 50
         // If configuration tells us minifying is not enabled, use the default view helper.
51
-        if (! $this->options['enabled']) {
51
+        if (!$this->options['enabled']) {
52 52
             return parent::toString($indent);
53 53
         }
54 54
 
@@ -86,7 +86,7 @@  discard block
 block discarded – undo
86 86
     {
87 87
         $items = [];
88 88
         foreach ($this as $index => $item) {
89
-            if (! $item->href || $item->type != 'text/css') {
89
+            if (!$item->href || $item->type != 'text/css') {
90 90
                 continue;
91 91
             }
92 92
             $localUri  = str_replace($this->baseUrl, '', preg_replace('/\?.*/', '', $publicDir . $item->href));
@@ -138,10 +138,10 @@  discard block
 block discarded – undo
138 138
      */
139 139
     private function minifyFile($minifiedFileName, $publicDir, $cacheDir, array $cacheItems, array &$items)
140 140
     {
141
-        if (! empty($cacheItems)) {
142
-            if (! is_file($cacheDir . $minifiedFileName)) {
141
+        if (!empty($cacheItems)) {
142
+            if (!is_file($cacheDir . $minifiedFileName)) {
143 143
                 $minifier = new Minify\CSS();
144
-                array_map(function ($uri) use ($minifier) {
144
+                array_map(function($uri) use ($minifier) {
145 145
                     $minifier->add($uri);
146 146
                 }, $cacheItems);
147 147
                 $minifier->minify($cacheDir . $minifiedFileName);
Please login to merge, or discard this patch.