@@ -312,7 +312,7 @@ discard block |
||
312 | 312 | */ |
313 | 313 | public function using(array $values, $default = null) |
314 | 314 | { |
315 | - return $this->display(function ($value) use ($values, $default) { |
|
315 | + return $this->display(function($value) use ($values, $default) { |
|
316 | 316 | if (is_null($value)) { |
317 | 317 | return $default; |
318 | 318 | } |
@@ -329,7 +329,7 @@ discard block |
||
329 | 329 | */ |
330 | 330 | public function view($view) |
331 | 331 | { |
332 | - return $this->display(function ($value) use ($view) { |
|
332 | + return $this->display(function($value) use ($view) { |
|
333 | 333 | $model = $this; |
334 | 334 | return view($view, compact('model', 'value'))->render(); |
335 | 335 | }); |
@@ -451,7 +451,7 @@ discard block |
||
451 | 451 | $grid = $this->grid; |
452 | 452 | $column = $this; |
453 | 453 | |
454 | - $this->display(function ($value) use ($grid, $column, $class) { |
|
454 | + $this->display(function($value) use ($grid, $column, $class) { |
|
455 | 455 | /** @var AbstractDisplayer $definition */ |
456 | 456 | $definition = new $class($value, $grid, $column, $this); |
457 | 457 | |
@@ -469,7 +469,7 @@ discard block |
||
469 | 469 | protected function htmlEntityEncode($item) |
470 | 470 | { |
471 | 471 | if (is_array($item)) { |
472 | - array_walk_recursive($item, function (&$value) { |
|
472 | + array_walk_recursive($item, function(&$value) { |
|
473 | 473 | $value = htmlentities($value); |
474 | 474 | }); |
475 | 475 | } else { |
@@ -549,7 +549,7 @@ discard block |
||
549 | 549 | */ |
550 | 550 | protected function callSupportDisplayer($abstract, $arguments) |
551 | 551 | { |
552 | - return $this->display(function ($value) use ($abstract, $arguments) { |
|
552 | + return $this->display(function($value) use ($abstract, $arguments) { |
|
553 | 553 | if (is_array($value) || $value instanceof Arrayable) { |
554 | 554 | return call_user_func_array([collect($value), $abstract], $arguments); |
555 | 555 | } |
@@ -573,7 +573,7 @@ discard block |
||
573 | 573 | protected function callBuiltinDisplayer($abstract, $arguments) |
574 | 574 | { |
575 | 575 | if ($abstract instanceof Closure) { |
576 | - return $this->display(function ($value) use ($abstract, $arguments) { |
|
576 | + return $this->display(function($value) use ($abstract, $arguments) { |
|
577 | 577 | return $abstract->call($this, ...array_merge([$value], $arguments)); |
578 | 578 | }); |
579 | 579 | } |
@@ -582,7 +582,7 @@ discard block |
||
582 | 582 | $grid = $this->grid; |
583 | 583 | $column = $this; |
584 | 584 | |
585 | - return $this->display(function ($value) use ($abstract, $grid, $column, $arguments) { |
|
585 | + return $this->display(function($value) use ($abstract, $grid, $column, $arguments) { |
|
586 | 586 | $displayer = new $abstract($value, $grid, $column, $this); |
587 | 587 | |
588 | 588 | return $displayer->display(...$arguments); |