@@ -204,7 +204,7 @@ discard block |
||
| 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 |
||
| 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)) { |
@@ -123,7 +123,7 @@ |
||
| 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 { |
@@ -54,7 +54,7 @@ |
||
| 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"; |