Passed
Push — master ( 58d69a...b9c060 )
by Iman
02:45
created
src/Utils/WidgetRenderer.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -56,7 +56,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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);
Please login to merge, or discard this patch.