We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
@@ -47,8 +47,8 @@ |
||
47 | 47 | ->filter(fn ($item) => isset($item[$macro])); |
48 | 48 | |
49 | 49 | $subfieldsWithMacros->each( |
50 | - function ($item) use ($subfieldsWithMacros, $macro) { |
|
51 | - $config = ! is_array($item[$macro]) ? [] : $item[$macro]; |
|
50 | + function($item) use ($subfieldsWithMacros, $macro) { |
|
51 | + $config = !is_array($item[$macro]) ? [] : $item[$macro]; |
|
52 | 52 | if ($subfieldsWithMacros->last() === $item) { |
53 | 53 | $this->{$macro}($config, $item); |
54 | 54 | } else { |
@@ -14,7 +14,7 @@ |
||
14 | 14 | $value = $value ?? CRUD::getRequest()->get($this->getName()); |
15 | 15 | $previousImage = $this->getPreviousFiles($entry); |
16 | 16 | |
17 | - if (! $value && $previousImage) { |
|
17 | + if (!$value && $previousImage) { |
|
18 | 18 | Storage::disk($this->getDisk())->delete($previousImage); |
19 | 19 | |
20 | 20 | return null; |
@@ -10,7 +10,7 @@ discard block |
||
10 | 10 | |
11 | 11 | class MultipleFiles extends Uploader |
12 | 12 | { |
13 | - public static function for(array $field, $configuration): UploaderInterface |
|
13 | + public static function for (array $field, $configuration): UploaderInterface |
|
14 | 14 | { |
15 | 15 | return (new self($field, $configuration))->multiple(); |
16 | 16 | } |
@@ -21,7 +21,7 @@ discard block |
||
21 | 21 | $value = $value ?? CRUD::getRequest()->file($this->getName()); |
22 | 22 | $previousFiles = $this->getPreviousFiles($entry) ?? []; |
23 | 23 | |
24 | - if (! is_array($previousFiles) && is_string($previousFiles)) { |
|
24 | + if (!is_array($previousFiles) && is_string($previousFiles)) { |
|
25 | 25 | $previousFiles = json_decode($previousFiles, true); |
26 | 26 | } |
27 | 27 | |
@@ -30,7 +30,7 @@ discard block |
||
30 | 30 | if (in_array($previousFile, $filesToDelete)) { |
31 | 31 | Storage::disk($this->getDisk())->delete($previousFile); |
32 | 32 | |
33 | - $previousFiles = Arr::where($previousFiles, function ($value, $key) use ($previousFile) { |
|
33 | + $previousFiles = Arr::where($previousFiles, function($value, $key) use ($previousFile) { |
|
34 | 34 | return $value != $previousFile; |
35 | 35 | }); |
36 | 36 | } |
@@ -23,7 +23,7 @@ |
||
23 | 23 | /** |
24 | 24 | * Get the view / contents that represent the component. |
25 | 25 | */ |
26 | - public function render(): View|Closure|string |
|
26 | + public function render(): View | Closure | string |
|
27 | 27 | { |
28 | 28 | return backpack_view('components.menu-dropdown'); |
29 | 29 | } |
@@ -21,7 +21,7 @@ |
||
21 | 21 | /** |
22 | 22 | * Get the view / contents that represent the component. |
23 | 23 | */ |
24 | - public function render(): View|Closure|string |
|
24 | + public function render(): View | Closure | string |
|
25 | 25 | { |
26 | 26 | return backpack_view('components.menu-item'); |
27 | 27 | } |
@@ -21,7 +21,7 @@ |
||
21 | 21 | /** |
22 | 22 | * Get the view / contents that represent the component. |
23 | 23 | */ |
24 | - public function render(): View|Closure|string |
|
24 | + public function render(): View | Closure | string |
|
25 | 25 | { |
26 | 26 | return backpack_view('components.menu-dropdown-header'); |
27 | 27 | } |
@@ -19,7 +19,7 @@ |
||
19 | 19 | /** |
20 | 20 | * Get the view / contents that represent the component. |
21 | 21 | */ |
22 | - public function render(): View|Closure|string |
|
22 | + public function render(): View | Closure | string |
|
23 | 23 | { |
24 | 24 | return backpack_view('components.menu-separator'); |
25 | 25 | } |
@@ -21,7 +21,7 @@ |
||
21 | 21 | /** |
22 | 22 | * Get the view / contents that represent the component. |
23 | 23 | */ |
24 | - public function render(): View|Closure|string |
|
24 | + public function render(): View | Closure | string |
|
25 | 25 | { |
26 | 26 | return backpack_view('components.menu-dropdown-item'); |
27 | 27 | } |
@@ -70,13 +70,13 @@ discard block |
||
70 | 70 | ], |
71 | 71 | |
72 | 72 | // CSS files that are loaded in all pages, using Laravel's mix() helper |
73 | - 'mix_styles' => [ // file_path => manifest_directory_path |
|
73 | + 'mix_styles' => [// file_path => manifest_directory_path |
|
74 | 74 | // 'css/app.css' => '', |
75 | 75 | ], |
76 | 76 | |
77 | 77 | // CSS files that are loaded in all pages, using Laravel's @vite() helper |
78 | 78 | // Please note that support for Vite was added in Laravel 9.19. Earlier versions are not able to use this feature. |
79 | - 'vite_styles' => [ // resource file_path |
|
79 | + 'vite_styles' => [// resource file_path |
|
80 | 80 | // 'resources/css/app.css', |
81 | 81 | ], |
82 | 82 | |
@@ -152,12 +152,12 @@ discard block |
||
152 | 152 | ], |
153 | 153 | |
154 | 154 | // JS files that are loaded in all pages, using Laravel's mix() helper |
155 | - 'mix_scripts' => [ // file_path => manifest_directory_path |
|
155 | + 'mix_scripts' => [// file_path => manifest_directory_path |
|
156 | 156 | // 'js/app.js' => '', |
157 | 157 | ], |
158 | 158 | |
159 | 159 | // JS files that are loaded in all pages, using Laravel's @vite() helper |
160 | - 'vite_scripts' => [ // resource file_path |
|
160 | + 'vite_scripts' => [// resource file_path |
|
161 | 161 | // 'resources/js/app.js', |
162 | 162 | ], |
163 | 163 |