Completed
Pull Request — master (#4330)
by xiaohui
11:24
created
src/Middleware/Pjax.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -47,7 +47,7 @@  discard block
 block discarded – undo
47 47
      */
48 48
     public static function respond(Response $response)
49 49
     {
50
-        $next = function () use ($response) {
50
+        $next = function() use ($response) {
51 51
             return $response;
52 52
         };
53 53
 
@@ -127,13 +127,13 @@  discard block
 block discarded – undo
127 127
         $scripts = $crawler->filter('.admin-js');
128 128
         $styles = $crawler->filter('.admin-css');
129 129
 
130
-        $scripts->each(function (Crawler $script) use ($js) {
130
+        $scripts->each(function(Crawler $script) use ($js) {
131 131
             $node = $script->getNode(0);
132 132
             $owner = $node->ownerDocument;
133 133
 
134 134
             $js->push($owner->saveHTML($node));
135 135
         });
136
-        $styles->each(function (Crawler $style) use ($css) {
136
+        $styles->each(function(Crawler $style) use ($css) {
137 137
             $node = $style->getNode(0);
138 138
             $owner = $node->ownerDocument;
139 139
 
@@ -156,7 +156,7 @@  discard block
 block discarded – undo
156 156
      */
157 157
     protected function decodeUtf8HtmlEntities($html)
158 158
     {
159
-        return preg_replace_callback('/(&#[0-9]+;)/', function ($html) {
159
+        return preg_replace_callback('/(&#[0-9]+;)/', function($html) {
160 160
             return mb_convert_encoding($html[1], 'UTF-8', 'HTML-ENTITIES');
161 161
         }, $html);
162 162
     }
Please login to merge, or discard this patch.
src/Traits/HasAssets.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -116,7 +116,7 @@  discard block
 block discarded – undo
116 116
 
117 117
         if (!is_null($css)) {
118 118
             $css = (array) $css;
119
-            $css = collect($css)->map(function ($css) use ($in_pjax) {
119
+            $css = collect($css)->map(function($css) use ($in_pjax) {
120 120
                 return new Asset($css, $in_pjax);
121 121
             });
122 122
 
@@ -168,7 +168,7 @@  discard block
 block discarded – undo
168 168
 
169 169
         if (!is_null($js)) {
170 170
             $js = (array) $js;
171
-            $js = collect($js)->map(function ($js) use ($in_pjax) {
171
+            $js = collect($js)->map(function($js) use ($in_pjax) {
172 172
                 return new Asset($js, $in_pjax);
173 173
             });
174 174
 
Please login to merge, or discard this patch.