Passed
Pull Request — 2.x (#1136)
by Mike
07:36
created
src/Services/Blocks/Block.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -204,7 +204,7 @@  discard block
 block discarded – undo
204 204
         $this->isNewFormat = $this->isNewFormat($contents);
205 205
         $this->contents = $contents;
206 206
 
207
-        $this->parseMixedProperty('titleField', $contents, $this->name, function ($value, $options) {
207
+        $this->parseMixedProperty('titleField', $contents, $this->name, function($value, $options) {
208 208
             $this->titleField = $value;
209 209
             $this->hideTitlePrefix = (boolean) ($options['hidePrefix'] ?? false);
210 210
         });
@@ -311,14 +311,14 @@  discard block
 block discarded – undo
311 311
             return $value;
312 312
         }
313 313
 
314
-        if ($configBlock = collect(config("twill.block_editor.blocks"))->filter(function ($block) use ($blockName) {
314
+        if ($configBlock = collect(config("twill.block_editor.blocks"))->filter(function($block) use ($blockName) {
315 315
             return Str::contains($block['component'], $blockName);
316 316
         })->first()) {
317 317
             if ($value = ($configBlock[$property] ?? null)) {
318 318
                 return $value;
319 319
             }
320 320
         }
321
-        if ($configRepeater = collect(config("twill.block_editor.repeaters"))->filter(function ($repeater) use ($blockName) {
321
+        if ($configRepeater = collect(config("twill.block_editor.repeaters"))->filter(function($repeater) use ($blockName) {
322 322
             return Str::contains($repeater['component'], $blockName);
323 323
         })->first()) {
324 324
             if ($value = ($configRepeater[$property] ?? null)) {
Please login to merge, or discard this patch.
src/Commands/Build.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -123,7 +123,7 @@
 block discarded – undo
123 123
 
124 124
             try {
125 125
                 $process->start();
126
-            } catch(\Exception $e) {
126
+            } catch (\Exception $e) {
127 127
                 $this->warn("Could not start the chokidar watcher ({$e->getMessage()})\n");
128 128
             }
129 129
         } else {
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 = "admin.errors.$statusCode";
Please login to merge, or discard this patch.