Passed
Pull Request — 3.x (#1388)
by Harings
15:34
created
src/Http/ViewComposers/FilesUploaderConfig.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -51,13 +51,13 @@
 block discarded – undo
51 51
         // anonymous functions are used to let configuration dictate
52 52
         // the execution of the appropriate implementation
53 53
         $endpointByType = [
54
-            'local' => function () {
54
+            'local' => function() {
55 55
                 return $this->urlGenerator->route('twill.file-library.files.store');
56 56
             },
57
-            's3' => function () use ($libraryDisk) {
57
+            's3' => function() use ($libraryDisk) {
58 58
                 return s3Endpoint($libraryDisk);
59 59
             },
60
-            'azure' => function () use ($libraryDisk) {
60
+            'azure' => function() use ($libraryDisk) {
61 61
                 return azureEndpoint($libraryDisk);
62 62
             },
63 63
         ];
Please login to merge, or discard this patch.
src/Http/ViewComposers/MediasUploaderConfig.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -51,13 +51,13 @@
 block discarded – undo
51 51
         // anonymous functions are used to let configuration dictate
52 52
         // the execution of the appropriate implementation
53 53
         $endpointByType = [
54
-            'local' => function () {
54
+            'local' => function() {
55 55
                 return $this->urlGenerator->route('twill.media-library.medias.store');
56 56
             },
57
-            's3' => function () use ($libraryDisk) {
57
+            's3' => function() use ($libraryDisk) {
58 58
                 return s3Endpoint($libraryDisk);
59 59
             },
60
-            'azure' => function () use ($libraryDisk) {
60
+            'azure' => function() use ($libraryDisk) {
61 61
                 return azureEndpoint($libraryDisk);
62 62
             },
63 63
         ];
Please login to merge, or discard this patch.
src/TwillServiceProvider.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -141,13 +141,13 @@  discard block
 block discarded – undo
141 141
         }
142 142
 
143 143
         if (config('twill.enabled.media-library')) {
144
-            $this->app->singleton('imageService', function () {
144
+            $this->app->singleton('imageService', function() {
145 145
                 return $this->app->make(config('twill.media_library.image_service'));
146 146
             });
147 147
         }
148 148
 
149 149
         if (config('twill.enabled.file-library')) {
150
-            $this->app->singleton('fileService', function () {
150
+            $this->app->singleton('fileService', function() {
151 151
                 return $this->app->make(config('twill.file_library.file_service'));
152 152
             });
153 153
         }
@@ -360,20 +360,20 @@  discard block
 block discarded – undo
360 360
     {
361 361
         $blade = $this->app['view']->getEngineResolver()->resolve('blade')->getCompiler();
362 362
 
363
-        $blade->directive('dd', function ($param) {
363
+        $blade->directive('dd', function($param) {
364 364
             return "<?php dd({$param}); ?>";
365 365
         });
366 366
 
367
-        $blade->directive('dumpData', function ($data) {
367
+        $blade->directive('dumpData', function($data) {
368 368
             return sprintf("<?php (new Symfony\Component\VarDumper\VarDumper)->dump(%s); exit; ?>",
369 369
                 null != $data ? $data : "get_defined_vars()");
370 370
         });
371 371
 
372
-        $blade->directive('formField', function ($expression) {
372
+        $blade->directive('formField', function($expression) {
373 373
             return $this->includeView('partials.form._', $expression);
374 374
         });
375 375
 
376
-        $blade->directive('partialView', function ($expression) {
376
+        $blade->directive('partialView', function($expression) {
377 377
 
378 378
             $expressionAsArray = str_getcsv($expression, ',', '\'');
379 379
 
@@ -409,13 +409,13 @@  discard block
 block discarded – undo
409 409
             ?>";
410 410
         });
411 411
 
412
-        $blade->directive('pushonce', function ($expression) {
412
+        $blade->directive('pushonce', function($expression) {
413 413
             [$pushName, $pushSub] = explode(':', trim(substr($expression, 1, -1)));
414 414
             $key = '__pushonce_' . $pushName . '_' . str_replace('-', '_', $pushSub);
415 415
             return "<?php if(! isset(\$__env->{$key})): \$__env->{$key} = 1; \$__env->startPush('{$pushName}'); ?>";
416 416
         });
417 417
 
418
-        $blade->directive('endpushonce', function () {
418
+        $blade->directive('endpushonce', function() {
419 419
             return '<?php $__env->stopPush(); endif; ?>';
420 420
         });
421 421
 
@@ -456,7 +456,7 @@  discard block
 block discarded – undo
456 456
 
457 457
         View::composer('twill::partials.navigation.*', ActiveNavigation::class);
458 458
 
459
-        View::composer(['twill.*', 'templates.*', 'twill::*'], function ($view) {
459
+        View::composer(['twill.*', 'templates.*', 'twill::*'], function($view) {
460 460
             $with = array_merge([
461 461
                 'renderForBlocks' => false,
462 462
                 'renderForModal' => false,
Please login to merge, or discard this patch.
src/Exceptions/Handler.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -54,7 +54,7 @@
 block discarded – undo
54 54
         if ($frontend) {
55 55
             $view = config('twill.frontend.views_path') . ".errors.$statusCode";
56 56
 
57
-            return view()->exists($view)? $view : "errors::{$statusCode}";
57
+            return view()->exists($view) ? $view : "errors::{$statusCode}";
58 58
         }
59 59
 
60 60
         $view = "twill.errors.$statusCode";
Please login to merge, or discard this patch.