@@ -138,7 +138,7 @@ discard block |
||
138 | 138 | } |
139 | 139 | |
140 | 140 | public static function supportsBladeComponents(): bool { |
141 | - return (int)explode('.', app()->version())[0] >= 8; |
|
141 | + return (int) explode('.', app()->version())[0] >= 8; |
|
142 | 142 | } |
143 | 143 | |
144 | 144 | /** |
@@ -153,13 +153,13 @@ discard block |
||
153 | 153 | } |
154 | 154 | |
155 | 155 | if (config('twill.enabled.media-library')) { |
156 | - $this->app->singleton('imageService', function () { |
|
156 | + $this->app->singleton('imageService', function() { |
|
157 | 157 | return $this->app->make(config('twill.media_library.image_service')); |
158 | 158 | }); |
159 | 159 | } |
160 | 160 | |
161 | 161 | if (config('twill.enabled.file-library')) { |
162 | - $this->app->singleton('fileService', function () { |
|
162 | + $this->app->singleton('fileService', function() { |
|
163 | 163 | return $this->app->make(config('twill.file_library.file_service')); |
164 | 164 | }); |
165 | 165 | } |
@@ -397,20 +397,20 @@ discard block |
||
397 | 397 | { |
398 | 398 | $blade = $this->app['view']->getEngineResolver()->resolve('blade')->getCompiler(); |
399 | 399 | |
400 | - $blade->directive('dd', function ($param) { |
|
400 | + $blade->directive('dd', function($param) { |
|
401 | 401 | return "<?php dd({$param}); ?>"; |
402 | 402 | }); |
403 | 403 | |
404 | - $blade->directive('dumpData', function ($data) { |
|
404 | + $blade->directive('dumpData', function($data) { |
|
405 | 405 | return sprintf("<?php (new Symfony\Component\VarDumper\VarDumper)->dump(%s); exit; ?>", |
406 | 406 | null != $data ? $data : "get_defined_vars()"); |
407 | 407 | }); |
408 | 408 | |
409 | - $blade->directive('formField', function ($expression) { |
|
409 | + $blade->directive('formField', function($expression) { |
|
410 | 410 | return $this->includeView('partials.form._', $expression); |
411 | 411 | }); |
412 | 412 | |
413 | - $blade->directive('partialView', function ($expression) { |
|
413 | + $blade->directive('partialView', function($expression) { |
|
414 | 414 | $expressionAsArray = str_getcsv($expression, ',', '\''); |
415 | 415 | |
416 | 416 | [$moduleName, $viewName] = $expressionAsArray; |
@@ -445,13 +445,13 @@ discard block |
||
445 | 445 | ?>"; |
446 | 446 | }); |
447 | 447 | |
448 | - $blade->directive('pushonce', function ($expression) { |
|
448 | + $blade->directive('pushonce', function($expression) { |
|
449 | 449 | [$pushName, $pushSub] = explode(':', trim(substr($expression, 1, -1))); |
450 | 450 | $key = '__pushonce_' . $pushName . '_' . str_replace('-', '_', $pushSub); |
451 | 451 | return "<?php if(! isset(\$__env->{$key})): \$__env->{$key} = 1; \$__env->startPush('{$pushName}'); ?>"; |
452 | 452 | }); |
453 | 453 | |
454 | - $blade->directive('endpushonce', function () { |
|
454 | + $blade->directive('endpushonce', function() { |
|
455 | 455 | return '<?php $__env->stopPush(); endif; ?>'; |
456 | 456 | }); |
457 | 457 | |
@@ -491,7 +491,7 @@ discard block |
||
491 | 491 | |
492 | 492 | View::composer('twill::partials.navigation.*', ActiveNavigation::class); |
493 | 493 | |
494 | - View::composer(['admin.*', 'templates.*', 'twill::*'], function ($view) { |
|
494 | + View::composer(['admin.*', 'templates.*', 'twill::*'], function($view) { |
|
495 | 495 | $with = array_merge([ |
496 | 496 | 'renderForBlocks' => false, |
497 | 497 | 'renderForModal' => false, |