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