@@ -18,11 +18,11 @@ discard block |
||
| 18 | 18 | |
| 19 | 19 | public function boot(): void |
| 20 | 20 | { |
| 21 | - $this->app['view']->addNamespace('chief-fragments', __DIR__ . '/../../src/Fragments/resources'); |
|
| 21 | + $this->app['view']->addNamespace('chief-fragments', __DIR__.'/../../src/Fragments/resources'); |
|
| 22 | 22 | |
| 23 | 23 | View::composer([ |
| 24 | 24 | 'chief::manager._transitions.modals.archive-modal', |
| 25 | - ], function ($view) { |
|
| 25 | + ], function($view) { |
|
| 26 | 26 | $viewData = $view->getData(); |
| 27 | 27 | |
| 28 | 28 | $ignoredModel = (isset($viewData['model'])) |
@@ -73,10 +73,10 @@ discard block |
||
| 73 | 73 | Blade::component('chief::wireframes.rect', 'wireframe-rect'); |
| 74 | 74 | |
| 75 | 75 | /* Chief directives */ |
| 76 | - Blade::directive('fragments', function () { |
|
| 76 | + Blade::directive('fragments', function() { |
|
| 77 | 77 | return "<?php echo app(\Thinktomorrow\Chief\Fragments\FragmentsRenderer::class)->render(\$model, get_defined_vars()); ?>"; |
| 78 | 78 | }); |
| 79 | - Blade::directive('adminConfig', function ($expression = null) { |
|
| 79 | + Blade::directive('adminConfig', function($expression = null) { |
|
| 80 | 80 | if ($expression) { |
| 81 | 81 | $method = "get".ucfirst(str_replace("'", '', $expression)); |
| 82 | 82 | |
@@ -85,16 +85,16 @@ discard block |
||
| 85 | 85 | |
| 86 | 86 | return "<?php echo \$model->adminConfig(); ?>"; |
| 87 | 87 | }); |
| 88 | - Blade::directive('adminRoute', function ($expression) { |
|
| 88 | + Blade::directive('adminRoute', function($expression) { |
|
| 89 | 89 | return "<?php echo \$manager->route($expression); ?>"; |
| 90 | 90 | }); |
| 91 | - Blade::directive('adminCan', function ($expression) { |
|
| 91 | + Blade::directive('adminCan', function($expression) { |
|
| 92 | 92 | return "<?php if (\$manager->can($expression)) { ?>"; |
| 93 | 93 | }); |
| 94 | - Blade::directive('elseAdminCan', function () { |
|
| 94 | + Blade::directive('elseAdminCan', function() { |
|
| 95 | 95 | return "<?php } else { ?>"; |
| 96 | 96 | }); |
| 97 | - Blade::directive('endAdminCan', function () { |
|
| 97 | + Blade::directive('endAdminCan', function() { |
|
| 98 | 98 | return "<?php } ?>"; |
| 99 | 99 | }); |
| 100 | 100 | |