Completed
Push — master ( 1537c0...f6919b )
by Song
02:34
created
src/Traits/HasAssets.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -233,7 +233,7 @@  discard block
 block discarded – undo
233 233
         $script = collect(static::$script)
234 234
             ->merge(static::$deferredScript)
235 235
             ->unique()
236
-            ->map(function ($line) {return $line;
236
+            ->map(function($line) {return $line;
237 237
                 //@see https://stackoverflow.com/questions/19509863/how-to-remove-js-comments-using-php
238 238
                 $pattern = '/(?:(?:\/\*(?:[^*]|(?:\*+[^*\/]))*\*+\/)|(?:(?<!\:|\\\|\')\/\/.*))/';
239 239
                 $line = preg_replace($pattern, '', $line);
@@ -257,7 +257,7 @@  discard block
 block discarded – undo
257 257
 
258 258
         $style = collect(static::$style)
259 259
             ->unique()
260
-            ->map(function ($line) {
260
+            ->map(function($line) {
261 261
                 return preg_replace('/\s+/', ' ', $line);
262 262
             });
263 263
 
@@ -339,7 +339,7 @@  discard block
 block discarded – undo
339 339
         $dom = new \DOMDocument();
340 340
 
341 341
         libxml_use_internal_errors(true);
342
-        $dom->loadHTML('<?xml encoding="utf-8" ?>' . $string);
342
+        $dom->loadHTML('<?xml encoding="utf-8" ?>'.$string);
343 343
         libxml_use_internal_errors(false);
344 344
 
345 345
         if ($head = $dom->getElementsByTagName('head')->item(0)) {
@@ -369,7 +369,7 @@  discard block
 block discarded – undo
369 369
 
370 370
         $render = '';
371 371
 
372
-        if($body = $dom->getElementsByTagName('body')->item(0)) {
372
+        if ($body = $dom->getElementsByTagName('body')->item(0)) {
373 373
             foreach ($body->childNodes as $child) {
374 374
                 if ($child instanceof \DOMElement) {
375 375
                     if ($child->tagName == 'style' && !empty($child->nodeValue)) {
@@ -378,7 +378,7 @@  discard block
 block discarded – undo
378 378
                     }
379 379
 
380 380
                     if ($child->tagName == 'script' && !empty($child->nodeValue)) {
381
-                        static::script(';(function () {' . $child->nodeValue . '})();');
381
+                        static::script(';(function () {'.$child->nodeValue.'})();');
382 382
                         continue;
383 383
                     }
384 384
 
Please login to merge, or discard this patch.
src/AdminServiceProvider.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -83,11 +83,11 @@  discard block
 block discarded – undo
83 83
 
84 84
         $this->compatibleBlade();
85 85
 
86
-        Blade::directive('box', function ($title) {
86
+        Blade::directive('box', function($title) {
87 87
             return "<?php \$box = new \Encore\Admin\Widgets\Box({$title}, '";
88 88
         });
89 89
 
90
-        Blade::directive('endbox', function ($expression) {
90
+        Blade::directive('endbox', function($expression) {
91 91
             return "'); echo \$box->render(); ?>";
92 92
         });
93 93
     }
@@ -139,8 +139,8 @@  discard block
 block discarded – undo
139 139
      */
140 140
     protected function macroRouter()
141 141
     {
142
-        Router::macro('content', function ($uri, $content, $options = []) {
143
-            return $this->match(['GET', 'HEAD'], $uri, function (Content $layout) use ($content, $options) {
142
+        Router::macro('content', function($uri, $content, $options = []) {
143
+            return $this->match(['GET', 'HEAD'], $uri, function(Content $layout) use ($content, $options) {
144 144
                 return $layout
145 145
                     ->title(Arr::get($options, 'title', ' '))
146 146
                     ->description(Arr::get($options, 'desc', ' '))
@@ -148,8 +148,8 @@  discard block
 block discarded – undo
148 148
             });
149 149
         });
150 150
 
151
-        Router::macro('component', function ($uri, $component, $data = [], $options = []) {
152
-            return $this->match(['GET', 'HEAD'], $uri, function (Content $layout) use ($component, $data, $options) {
151
+        Router::macro('component', function($uri, $component, $data = [], $options = []) {
152
+            return $this->match(['GET', 'HEAD'], $uri, function(Content $layout) use ($component, $data, $options) {
153 153
                 return $layout
154 154
                     ->title(Arr::get($options, 'title', ' '))
155 155
                     ->description(Arr::get($options, 'desc', ' '))
Please login to merge, or discard this patch.