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 2 patches
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.
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, $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.
test/View/Helper/HeadScriptTest.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -76,7 +76,7 @@  discard block
 block discarded – undo
76 76
     {
77 77
         $helper = clone $this->helper;
78 78
         $helper->appendFile('/js/test1.js')
79
-               ->appendFile('/js/test2.js');
79
+                ->appendFile('/js/test2.js');
80 80
 
81 81
         $result      = $helper->toString();
82 82
         $domDocument = new \DOMDocument();
@@ -96,7 +96,7 @@  discard block
 block discarded – undo
96 96
     {
97 97
         $helper = clone $this->helper;
98 98
         $helper->appendFile('/js/test1.js')
99
-               ->prependFile('/js/test2.js');
99
+                ->prependFile('/js/test2.js');
100 100
 
101 101
         $result      = $helper->toString();
102 102
         $domDocument = new \DOMDocument();
Please login to merge, or discard this patch.
test/View/Helper/HeadLinkTest.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -76,7 +76,7 @@  discard block
 block discarded – undo
76 76
     {
77 77
         $helper = clone $this->helper;
78 78
         $helper->appendStylesheet('/css/test1.css')
79
-               ->appendStylesheet('/css/test2.css');
79
+                ->appendStylesheet('/css/test2.css');
80 80
 
81 81
         $result      = $helper->toString();
82 82
         $domDocument = new \DOMDocument();
@@ -96,7 +96,7 @@  discard block
 block discarded – undo
96 96
     {
97 97
         $helper = clone $this->helper;
98 98
         $helper->appendStylesheet('/css/test1.css')
99
-               ->prependStylesheet('/css/test2.css');
99
+                ->prependStylesheet('/css/test2.css');
100 100
 
101 101
         $result      = $helper->toString();
102 102
         $domDocument = new \DOMDocument();
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.