@@ -34,7 +34,7 @@ discard block |
||
34 | 34 | */ |
35 | 35 | private function _makeWidgetObj($widget) |
36 | 36 | { |
37 | - $widget = app()->getNamespace().'Widgets\\'.$widget; |
|
37 | + $widget = app()->getNamespace() . 'Widgets\\' . $widget; |
|
38 | 38 | |
39 | 39 | return app($widget); |
40 | 40 | } |
@@ -50,7 +50,7 @@ discard block |
||
50 | 50 | private function _generateJson($widget, ...$args) |
51 | 51 | { |
52 | 52 | // Everything inside this function is executed only when the cache is not available. |
53 | - $expensivePhpCode = function () use ($widget, $args) { |
|
53 | + $expensivePhpCode = function() use ($widget, $args) { |
|
54 | 54 | $data = \App::call($widget->controller, ...$args); |
55 | 55 | |
56 | 56 | // render the template with the resulting data. |
@@ -52,7 +52,7 @@ discard block |
||
52 | 52 | return app($widget); |
53 | 53 | } |
54 | 54 | |
55 | - $widget = app()->getNamespace().'Widgets\\'.$widget; |
|
55 | + $widget = app()->getNamespace() . 'Widgets\\' . $widget; |
|
56 | 56 | |
57 | 57 | return app($widget); |
58 | 58 | } |
@@ -68,7 +68,7 @@ discard block |
||
68 | 68 | private function _generateHtml($widget, ...$args) |
69 | 69 | { |
70 | 70 | // Everything inside this function is executed only when the cache is not available. |
71 | - $expensivePhpCode = function () use ($widget, $args) { |
|
71 | + $expensivePhpCode = function() use ($widget, $args) { |
|
72 | 72 | $this->makeDataForView($widget, $args); |
73 | 73 | |
74 | 74 | // render the template with the resulting data. |