@@ -34,7 +34,7 @@ discard block |
||
34 | 34 | } |
35 | 35 | |
36 | 36 | if (is_array($widget)) { |
37 | - $widget = (object) $widget; |
|
37 | + $widget = (object)$widget; |
|
38 | 38 | } |
39 | 39 | |
40 | 40 | event('widgetize.rendering_widget', [$widget]); |
@@ -74,7 +74,7 @@ discard block |
||
74 | 74 | private function generateHtml($widget, ...$args) |
75 | 75 | { |
76 | 76 | // Everything inside this function is executed only when the cache is not available. |
77 | - $expensivePhpCode = function () use ($widget, $args) { |
|
77 | + $expensivePhpCode = function() use ($widget, $args) { |
|
78 | 78 | $this->makeDataForView($widget, $args); |
79 | 79 | |
80 | 80 | return $this->renderTemplate($widget, ...$args); |
@@ -96,7 +96,7 @@ discard block |
||
96 | 96 | */ |
97 | 97 | private function makeDataForView($widget, array $args) |
98 | 98 | { |
99 | - $expensiveCode = function () use ($widget, $args) { |
|
99 | + $expensiveCode = function() use ($widget, $args) { |
|
100 | 100 | $viewData = $this->callController($widget, $args); |
101 | 101 | |
102 | 102 | if ($widget->presenter) { |