@@ -123,7 +123,7 @@ |
||
123 | 123 | /** |
124 | 124 | * @param null|\Closure $callback |
125 | 125 | * |
126 | - * @return \Illuminate\Contracts\View\Factory|\Illuminate\View\View|string |
|
126 | + * @return string|null |
|
127 | 127 | */ |
128 | 128 | public function display($callback = null) |
129 | 129 | { |
@@ -233,7 +233,7 @@ discard block |
||
233 | 233 | $script = collect(static::$script) |
234 | 234 | ->merge(static::$deferredScript) |
235 | 235 | ->unique() |
236 | - ->map(function ($line) { |
|
236 | + ->map(function($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 |
||
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,10 +339,10 @@ discard block |
||
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 | - if(! $body = $dom->getElementsByTagName('body')->item(0)) { |
|
345 | + if (!$body = $dom->getElementsByTagName('body')->item(0)) { |
|
346 | 346 | return; |
347 | 347 | } |
348 | 348 |
@@ -81,7 +81,7 @@ |
||
81 | 81 | 'rowName' => $this->grid->getGridRowName(), |
82 | 82 | ]); |
83 | 83 | |
84 | - return function (Grid $grid) { |
|
84 | + return function(Grid $grid) { |
|
85 | 85 | if ($this->head > 0) { |
86 | 86 | $this->left = $grid->visibleColumns()->slice(0, $this->head); |
87 | 87 | } |