@@ -40,19 +40,19 @@ 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 | |
| 46 | 46 | return "<?php echo app(\\Imanghafoori\\Widgets\\Utils\\WidgetRenderer::class)->renderWidget{$expression}; ?>"; |
| 47 | 47 | }); |
| 48 | 48 | |
| 49 | - Blade::directive('slotWidget', function ($expression) use ($omitParenthesis) { |
|
| 49 | + Blade::directive('slotWidget', function($expression) use ($omitParenthesis) { |
|
| 50 | 50 | $this->expression = $omitParenthesis ? $expression : "($expression)"; |
| 51 | 51 | }); |
| 52 | 52 | |
| 53 | 53 | $this->defineSlotDirectives($omitParenthesis); |
| 54 | 54 | |
| 55 | - Blade::directive('endSlotWidget', function () { |
|
| 55 | + Blade::directive('endSlotWidget', function() { |
|
| 56 | 56 | $expression = $this->expression; |
| 57 | 57 | return "<?php echo app(\\Imanghafoori\\Widgets\\Utils\\WidgetRenderer::class)->renderWidget{$expression}; ?>"; |
| 58 | 58 | }); |
@@ -70,12 +70,12 @@ discard block |
||
| 70 | 70 | */ |
| 71 | 71 | private function defineSlotDirectives($omitParenthesis) |
| 72 | 72 | { |
| 73 | - Blade::directive('slot', function ($slotName) use ($omitParenthesis) { |
|
| 73 | + Blade::directive('slot', function($slotName) use ($omitParenthesis) { |
|
| 74 | 74 | $slotName = $omitParenthesis ? $slotName : "($slotName)"; |
| 75 | 75 | return "<?php echo app(\\Imanghafoori\\Widgets\\Utils\\WidgetRenderer::class)->startSlot{$slotName};?>"; |
| 76 | 76 | }); |
| 77 | 77 | |
| 78 | - Blade::directive('endSlot', function () { |
|
| 78 | + Blade::directive('endSlot', function() { |
|
| 79 | 79 | $contentKey = '$content'; |
| 80 | 80 | return "<?php |
| 81 | 81 | $contentKey = ob_get_clean(); |
@@ -103,7 +103,7 @@ discard block |
||
| 103 | 103 | return; |
| 104 | 104 | } |
| 105 | 105 | |
| 106 | - $this->app->singleton('widgetize.debugger', function () { |
|
| 106 | + $this->app->singleton('widgetize.debugger', function() { |
|
| 107 | 107 | return new MessagesCollector('Widgets'); |
| 108 | 108 | }); |
| 109 | 109 | |