Passed
Pull Request — master (#70)
by
unknown
03:59
created
src/Utils/WidgetRenderer.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -34,7 +34,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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) {
Please login to merge, or discard this patch.