@@ -56,7 +56,7 @@ discard block |
||
56 | 56 | return app($widget); |
57 | 57 | } |
58 | 58 | |
59 | - $widget = app()->getNamespace().'Widgets\\'.$widget; |
|
59 | + $widget = app()->getNamespace() . 'Widgets\\' . $widget; |
|
60 | 60 | |
61 | 61 | return app($widget); |
62 | 62 | } |
@@ -72,13 +72,13 @@ discard block |
||
72 | 72 | private function generateHtml($widget, ...$args) |
73 | 73 | { |
74 | 74 | // Everything inside this function is executed only when the cache is not available. |
75 | - $expensivePhpCode = function () use ($widget, $args) { |
|
75 | + $expensivePhpCode = function() use ($widget, $args) { |
|
76 | 76 | $this->makeDataForView($widget, $args); |
77 | 77 | |
78 | 78 | return $this->renderTemplate($widget); |
79 | 79 | }; |
80 | 80 | |
81 | - if (! $widget->cacheView) { |
|
81 | + if (!$widget->cacheView) { |
|
82 | 82 | return $expensivePhpCode(); |
83 | 83 | } |
84 | 84 | |
@@ -94,7 +94,7 @@ discard block |
||
94 | 94 | */ |
95 | 95 | private function makeDataForView($widget, array $args) |
96 | 96 | { |
97 | - $expensiveCode = function () use ($widget, $args) { |
|
97 | + $expensiveCode = function() use ($widget, $args) { |
|
98 | 98 | |
99 | 99 | // Here we call the data method on the widget class. |
100 | 100 | $viewData = \App::call($widget->controller, ...$args); |