@@ -40,7 +40,7 @@ discard block |
||
40 | 40 | { |
41 | 41 | $omitParenthesis = version_compare($this->app->version(), '5.3', '<'); |
42 | 42 | |
43 | - Blade::directive('widget', function ($expression) use ($omitParenthesis) { |
|
43 | + Blade::directive('widget', function($expression) use ($omitParenthesis) { |
|
44 | 44 | $expression = $omitParenthesis ? $expression : "($expression)"; |
45 | 45 | if (strpos($expression, 'slotable') == false) { |
46 | 46 | return "<?php echo app(\\Imanghafoori\\Widgets\\Utils\\WidgetRenderer::class)->renderWidget{$expression}; ?>"; |
@@ -50,7 +50,7 @@ discard block |
||
50 | 50 | |
51 | 51 | $this->defineSlotDirectives($omitParenthesis); |
52 | 52 | |
53 | - Blade::directive('endwidget', function () { |
|
53 | + Blade::directive('endwidget', function() { |
|
54 | 54 | $expression = $this->expression; |
55 | 55 | return "<?php echo app(\\Imanghafoori\\Widgets\\Utils\\WidgetRenderer::class)->renderWidget{$expression}; ?>"; |
56 | 56 | }); |
@@ -68,12 +68,12 @@ discard block |
||
68 | 68 | */ |
69 | 69 | private function defineSlotDirectives($omitParenthesis) |
70 | 70 | { |
71 | - Blade::directive('slot', function ($slotName) use ($omitParenthesis) { |
|
71 | + Blade::directive('slot', function($slotName) use ($omitParenthesis) { |
|
72 | 72 | $slotName = $omitParenthesis ? $slotName : "($slotName)"; |
73 | 73 | return "<?php echo app(\\Imanghafoori\\Widgets\\Utils\\WidgetRenderer::class)->startSlot{$slotName};?>"; |
74 | 74 | }); |
75 | 75 | |
76 | - Blade::directive('endslot', function () { |
|
76 | + Blade::directive('endslot', function() { |
|
77 | 77 | $contentKey = '$content'; |
78 | 78 | return "<?php |
79 | 79 | $contentKey = ob_get_clean(); |
@@ -101,7 +101,7 @@ discard block |
||
101 | 101 | return; |
102 | 102 | } |
103 | 103 | |
104 | - $this->app->singleton('widgetize.debugger', function () { |
|
104 | + $this->app->singleton('widgetize.debugger', function() { |
|
105 | 105 | return new MessagesCollector('Widgets'); |
106 | 106 | }); |
107 | 107 |