Test Setup Failed
Push — master ( b1f007...e678e2 )
by Arjan
05:09
created
src/Minifiers/Html/JavascriptEventsMinifier.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -25,7 +25,7 @@
 block discarded – undo
25 25
                 ["\']?              # Match an optional quote
26 26
                 \s*javascript:      # Match the text "javascript:" which should be removed
27 27
             /xis',
28
-            function ($match) {
28
+            function($match) {
29 29
                 return str_replace('javascript:', '', $match[0]);
30 30
             }, $context->getContents());
31 31
 
Please login to merge, or discard this patch.
src/Minifiers/Html/RedundantAttributeMinifier.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -40,8 +40,8 @@  discard block
 block discarded – undo
40 40
      */
41 41
     public function process(MinifyContext $context)
42 42
     {
43
-        Collection::make($this->redundantAttributes)->each(function ($attributes, $element) use (&$context) {
44
-            Collection::make($attributes)->each(function ($value, $attribute) use ($element, &$context) {
43
+        Collection::make($this->redundantAttributes)->each(function($attributes, $element) use (&$context) {
44
+            Collection::make($attributes)->each(function($value, $attribute) use ($element, &$context) {
45 45
                 $contents = preg_replace_callback(
46 46
                     '/
47 47
                         '.$element.'                    # Match the given element
@@ -55,7 +55,7 @@  discard block
 block discarded – undo
55 55
                             \s*
56 56
                         )
57 57
                     /xis',
58
-                    function ($match) {
58
+                    function($match) {
59 59
                         return $this->removeAttribute($match[0], $match[2]);
60 60
                     }, $context->getContents());
61 61
 
Please login to merge, or discard this patch.
src/PlaceholderContainer.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -79,21 +79,21 @@
 block discarded – undo
79 79
      */
80 80
     protected function removeNestedPlaceholders($originalContent)
81 81
     {
82
-        return preg_replace_callback('/'.Constants::PLACEHOLDER_PATTERN.'/', function ($match) {
82
+        return preg_replace_callback('/'.Constants::PLACEHOLDER_PATTERN.'/', function($match) {
83 83
             return $this->get($match[0]);
84 84
         }, $originalContent);
85 85
     }
86 86
 
87 87
     public function getPlaceholderSize()
88 88
     {
89
-        return $this->keys()->sum(function ($key) {
89
+        return $this->keys()->sum(function($key) {
90 90
             return mb_strlen($key, '8bit');
91 91
         });
92 92
     }
93 93
 
94 94
     public function getOriginalSize()
95 95
     {
96
-        return $this->values()->sum(function ($value) {
96
+        return $this->values()->sum(function($value) {
97 97
             return mb_strlen($value, '8bit');
98 98
         });
99 99
     }
Please login to merge, or discard this patch.
src/Placeholders/Blade/BladePlaceholder.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -49,7 +49,7 @@  discard block
 block discarded – undo
49 49
                     @?              # Match a @ for blades ignore echo
50 50
                     %s\s*(.+?)\s*%s(\r?\n)?
51 51
                  /xs', $tag[0], $tag[1]);
52
-            $contents = preg_replace_callback($pattern, function ($match) use ($placeholderContainer) {
52
+            $contents = preg_replace_callback($pattern, function($match) use ($placeholderContainer) {
53 53
                 return $placeholderContainer->addPlaceholder($match[0]);
54 54
             }, $contents);
55 55
         }
@@ -67,7 +67,7 @@  discard block
 block discarded – undo
67 67
      */
68 68
     protected function setBladeControlStructuresPlaceholder($contents, PlaceholderContainer $placeholderContainer)
69 69
     {
70
-        return preg_replace_callback('/@\w*(\s*\(.*\))?/', function ($match) use ($placeholderContainer) {
70
+        return preg_replace_callback('/@\w*(\s*\(.*\))?/', function($match) use ($placeholderContainer) {
71 71
             return $placeholderContainer->addPlaceholder($match[0]);
72 72
         }, $contents);
73 73
     }
Please login to merge, or discard this patch.
src/Placeholders/CommentPlaceholder.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -30,7 +30,7 @@  discard block
 block discarded – undo
30 30
      */
31 31
     protected function setCDataPlaceholder($contents, PlaceholderContainer $placeholderContainer)
32 32
     {
33
-        return preg_replace_callback('/<!\[CDATA\[((?!\]\]>).)*\]\]>/s', function ($match) use ($placeholderContainer) {
33
+        return preg_replace_callback('/<!\[CDATA\[((?!\]\]>).)*\]\]>/s', function($match) use ($placeholderContainer) {
34 34
             return $placeholderContainer->addPlaceholder($match[0]);
35 35
         }, $contents);
36 36
     }
@@ -66,7 +66,7 @@  discard block
 block discarded – undo
66 66
                     >                   # Match the endif with the captured dashes
67 67
                 )
68 68
             /xis',
69
-            function ($match) use ($placeholderContainer) {
69
+            function($match) use ($placeholderContainer) {
70 70
                 if (!empty(preg_replace('/\s*/', '', $match[3]))) {
71 71
                     return $placeholderContainer->addPlaceholder($match[1]).$match[3].$placeholderContainer->addPlaceholder($match[4]);
72 72
                 } else {
Please login to merge, or discard this patch.
src/Placeholders/Php/PhpPlaceholder.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -16,10 +16,10 @@
 block discarded – undo
16 16
     public function process($context)
17 17
     {
18 18
         $contents = $context->getContents();
19
-        $contents = preg_replace_callback('/<\?=((?!\?>).)*\?>/s', function ($match) use ($context) {
19
+        $contents = preg_replace_callback('/<\?=((?!\?>).)*\?>/s', function($match) use ($context) {
20 20
             return $context->getPlaceholderContainer()->addPlaceholder($match[0]);
21 21
         }, $contents);
22
-        $contents = preg_replace_callback('/<\?php((?!\?>).)*(\?>)?/s', function ($match) use ($context) {
22
+        $contents = preg_replace_callback('/<\?php((?!\?>).)*(\?>)?/s', function($match) use ($context) {
23 23
             return $context->getPlaceholderContainer()->addPlaceholder($match[0]);
24 24
         }, $contents);
25 25
 
Please login to merge, or discard this patch.