Passed
Push — 1356-default-preview-files ( f4c5f9 )
by Harings
22:06
created
src/Commands/ModuleMake.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -207,7 +207,7 @@  discard block
 block discarded – undo
207 207
             'hasPosition',
208 208
             'hasRevisions',
209 209
             'hasNesting',
210
-        ])->filter(function ($enabled) {
210
+        ])->filter(function($enabled) {
211 211
             return $enabled;
212 212
         });
213 213
 
@@ -615,7 +615,7 @@  discard block
 block discarded – undo
615 615
 
616 616
         $this->info("Form view created successfully! Include your form fields using @formField directives!");
617 617
 
618
-        if($this->confirm("Do you also want to generate the preview file?")) {
618
+        if ($this->confirm("Do you also want to generate the preview file?")) {
619 619
             $previewViewsPath = $this->previewViewPath();
620 620
             twill_put_stub($previewViewsPath . '/' . Str::singular($moduleName) . '.blade.php', $this->files->get(__DIR__ . '/stubs/preview_module.blade.stub'));
621 621
         }
@@ -847,7 +847,7 @@  discard block
 block discarded – undo
847 847
             $start = "{$delimiters[0]}{$key}{$delimiters[1]}";
848 848
             $end = "{$delimiters[0]}\/{$key}{$delimiters[1]}";
849 849
 
850
-            if ((bool)$value) {
850
+            if ((bool) $value) {
851 851
                 // replace delimiters only
852 852
                 $stub = preg_replace("/$start/", '', $stub);
853 853
                 $stub = preg_replace("/$end/", '', $stub);
Please login to merge, or discard this patch.