Completed
Push — master ( 0e8a33...9c1178 )
by Iman
01:37
created
src/Utils/WidgetJsonifier.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -34,7 +34,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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.
Please login to merge, or discard this patch.
src/Utils/WidgetRenderer.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -52,7 +52,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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.
Please login to merge, or discard this patch.