Passed
Push — master ( 08e1ea...c59775 )
by halfpastfour
31s
created
src/View/Helper/HeadScript.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -43,7 +43,7 @@  discard block
 block discarded – undo
43 43
     public function toString($indent = null): string
44 44
     {
45 45
         // If configuration tells us minifying is not enabled, use the default view helper.
46
-        if (! $this->options['enabled']) {
46
+        if (!$this->options['enabled']) {
47 47
             return parent::toString($indent);
48 48
         }
49 49
 
@@ -83,7 +83,7 @@  discard block
 block discarded – undo
83 83
     {
84 84
         $items = [];
85 85
         foreach ($this as $index => $item) {
86
-            if ($item->type !== 'text/javascript' && (! @$item->attributes['src'] || ! $item->source)) {
86
+            if ($item->type !== 'text/javascript' && (!@$item->attributes['src'] || !$item->source)) {
87 87
                 $items[] = $item;
88 88
                 continue;
89 89
             }
@@ -125,9 +125,9 @@  discard block
 block discarded – undo
125 125
      */
126 126
     private function minifyfile($minifiedFile, $cacheDir, array $cacheItems, array &$items)
127 127
     {
128
-        if (! is_file($cacheDir . $minifiedFile) && ! empty($cacheItems)) {
128
+        if (!is_file($cacheDir . $minifiedFile) && !empty($cacheItems)) {
129 129
             $minifier = new Minify\JS();
130
-            array_map(function ($uri) use ($minifier) {
130
+            array_map(function($uri) use ($minifier) {
131 131
                 $minifier->add($uri);
132 132
             }, $cacheItems);
133 133
             $minifier->minify($cacheDir . $minifiedFile);
Please login to merge, or discard this patch.
src/View/Helper/HeadLink.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -43,7 +43,7 @@  discard block
 block discarded – undo
43 43
     public function toString($indent = null): string
44 44
     {
45 45
         // If configuration tells us minifying is not enabled, use the default view helper.
46
-        if (! $this->options['enabled']) {
46
+        if (!$this->options['enabled']) {
47 47
             return parent::toString($indent);
48 48
         }
49 49
 
@@ -84,7 +84,7 @@  discard block
 block discarded – undo
84 84
     {
85 85
         $items = [];
86 86
         foreach ($this as $index => $item) {
87
-            if (! $item->href || $item->type != 'text/css') {
87
+            if (!$item->href || $item->type != 'text/css') {
88 88
                 continue;
89 89
             }
90 90
             $localUri  = str_replace($this->baseUrl, '', preg_replace('/\?.*/', '', $publicDir . $item->href));
@@ -118,9 +118,9 @@  discard block
 block discarded – undo
118 118
      */
119 119
     private function minifyFile($minifiedFile, $cacheDir, array $cacheItems, array &$items)
120 120
     {
121
-        if (! is_file($cacheDir . $minifiedFile) && ! empty($cacheItems)) {
121
+        if (!is_file($cacheDir . $minifiedFile) && !empty($cacheItems)) {
122 122
             $minifier = new Minify\CSS();
123
-            array_map(function ($uri) use ($minifier) {
123
+            array_map(function($uri) use ($minifier) {
124 124
                 $minifier->add($uri);
125 125
             }, $cacheItems);
126 126
             $minifier->minify($cacheDir . $minifiedFile);
Please login to merge, or discard this patch.
src/Factory/View/Helper/HeadScriptFactory.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -29,8 +29,8 @@
 block discarded – undo
29 29
     public function __invoke(ContainerInterface $container, $requestedName, array $options = null)
30 30
     {
31 31
         $applicationConfig = (array)$container->get('config');
32
-        if (! array_key_exists('minify_head', $applicationConfig)
33
-            && ! array_key_exists('script', $applicationConfig['minify_head'])) {
32
+        if (!array_key_exists('minify_head', $applicationConfig)
33
+            && !array_key_exists('script', $applicationConfig['minify_head'])) {
34 34
             throw new \Exception('Configuration not available.');
35 35
         }
36 36
         $config  = $applicationConfig['minify_head']['script'];
Please login to merge, or discard this patch.
src/Factory/View/Helper/HeadLinkFactory.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -29,8 +29,8 @@
 block discarded – undo
29 29
     public function __invoke(ContainerInterface $container, $requestedName, array $options = null)
30 30
     {
31 31
         $applicationConfig = (array)$container->get('config');
32
-        if (! array_key_exists('minify_head', $applicationConfig)
33
-            && ! array_key_exists('script', $applicationConfig['minify_head'])) {
32
+        if (!array_key_exists('minify_head', $applicationConfig)
33
+            && !array_key_exists('script', $applicationConfig['minify_head'])) {
34 34
             throw new \Exception('Configuration not available.');
35 35
         }
36 36
         $config  = $applicationConfig['minify_head']['link'];
Please login to merge, or discard this patch.