@@ -20,7 +20,7 @@ discard block |
||
| 20 | 20 | { |
| 21 | 21 | View::composer([ |
| 22 | 22 | 'chief::manager._transitions.modals.archive-modal', |
| 23 | - ], function ($view) { |
|
| 23 | + ], function($view) { |
|
| 24 | 24 | $viewData = $view->getData(); |
| 25 | 25 | |
| 26 | 26 | $ignoredModel = (isset($viewData['model'])) |
@@ -78,10 +78,10 @@ discard block |
||
| 78 | 78 | Blade::component('chief::wireframes.rect', 'wireframe-rect'); |
| 79 | 79 | |
| 80 | 80 | /* Chief directives */ |
| 81 | - Blade::directive('fragments', function () { |
|
| 81 | + Blade::directive('fragments', function() { |
|
| 82 | 82 | return "<?php echo app(\Thinktomorrow\Chief\Fragments\FragmentsRenderer::class)->render(\$model, get_defined_vars()); ?>"; |
| 83 | 83 | }); |
| 84 | - Blade::directive('adminConfig', function ($expression = null) { |
|
| 84 | + Blade::directive('adminConfig', function($expression = null) { |
|
| 85 | 85 | if ($expression) { |
| 86 | 86 | $method = "get".ucfirst(str_replace("'", '', $expression)); |
| 87 | 87 | |
@@ -90,16 +90,16 @@ discard block |
||
| 90 | 90 | |
| 91 | 91 | return "<?php echo \$model->adminConfig(); ?>"; |
| 92 | 92 | }); |
| 93 | - Blade::directive('adminRoute', function ($expression) { |
|
| 93 | + Blade::directive('adminRoute', function($expression) { |
|
| 94 | 94 | return "<?php echo \$manager->route($expression); ?>"; |
| 95 | 95 | }); |
| 96 | - Blade::directive('adminCan', function ($expression) { |
|
| 96 | + Blade::directive('adminCan', function($expression) { |
|
| 97 | 97 | return "<?php if (\$manager->can($expression)) { ?>"; |
| 98 | 98 | }); |
| 99 | - Blade::directive('elseAdminCan', function () { |
|
| 99 | + Blade::directive('elseAdminCan', function() { |
|
| 100 | 100 | return "<?php } else { ?>"; |
| 101 | 101 | }); |
| 102 | - Blade::directive('endAdminCan', function () { |
|
| 102 | + Blade::directive('endAdminCan', function() { |
|
| 103 | 103 | return "<?php } ?>"; |
| 104 | 104 | }); |
| 105 | 105 | |