We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
@@ -32,7 +32,7 @@ discard block |
||
| 32 | 32 | */ |
| 33 | 33 | public function markAsHandled(string $objectName): void |
| 34 | 34 | { |
| 35 | - if (! in_array($objectName, $this->handledUploaders)) { |
|
| 35 | + if (!in_array($objectName, $this->handledUploaders)) { |
|
| 36 | 36 | $this->handledUploaders[] = $objectName; |
| 37 | 37 | } |
| 38 | 38 | } |
@@ -82,7 +82,7 @@ discard block |
||
| 82 | 82 | */ |
| 83 | 83 | public function registerRepeatableUploader(string $uploadName, UploaderInterface $uploader): void |
| 84 | 84 | { |
| 85 | - if (! array_key_exists($uploadName, $this->repeatableUploaders) || ! in_array($uploader, $this->repeatableUploaders[$uploadName])) { |
|
| 85 | + if (!array_key_exists($uploadName, $this->repeatableUploaders) || !in_array($uploader, $this->repeatableUploaders[$uploadName])) { |
|
| 86 | 86 | $this->repeatableUploaders[$uploadName][] = $uploader; |
| 87 | 87 | } |
| 88 | 88 | } |
@@ -116,7 +116,7 @@ discard block |
||
| 116 | 116 | */ |
| 117 | 117 | public function getRegisteredUploadNames(string $uploadName): array |
| 118 | 118 | { |
| 119 | - return array_map(function ($uploader) { |
|
| 119 | + return array_map(function($uploader) { |
|
| 120 | 120 | return $uploader->getName(); |
| 121 | 121 | }, $this->getRepeatableUploadersFor($uploadName)); |
| 122 | 122 | } |
@@ -141,7 +141,7 @@ discard block |
||
| 141 | 141 | */ |
| 142 | 142 | public function getUploaderInstance(string $requestInputName, array $crudObject): UploaderInterface |
| 143 | 143 | { |
| 144 | - if (! $this->isValidUploadField($requestInputName)) { |
|
| 144 | + if (!$this->isValidUploadField($requestInputName)) { |
|
| 145 | 145 | abort(500, 'Invalid field for upload.'); |
| 146 | 146 | } |
| 147 | 147 | |
@@ -153,12 +153,12 @@ discard block |
||
| 153 | 153 | dd('here'); |
| 154 | 154 | } |
| 155 | 155 | |
| 156 | - if (! $uploadType = $this->getUploadCrudObjectMacroType($crudObject)) { |
|
| 156 | + if (!$uploadType = $this->getUploadCrudObjectMacroType($crudObject)) { |
|
| 157 | 157 | abort(500, 'There is no uploader defined for the given field type.'); |
| 158 | 158 | } |
| 159 | 159 | |
| 160 | 160 | $uploaderConfiguration = $crudObject[$uploadType] ?? []; |
| 161 | - $uploaderConfiguration = ! is_array($uploaderConfiguration) ? [] : $uploaderConfiguration; |
|
| 161 | + $uploaderConfiguration = !is_array($uploaderConfiguration) ? [] : $uploaderConfiguration; |
|
| 162 | 162 | $uploaderClass = $this->getUploadFor($crudObject['type'], $uploadType); |
| 163 | 163 | |
| 164 | 164 | return new $uploaderClass(['name' => $requestInputName], $uploaderConfiguration); |
@@ -177,11 +177,11 @@ discard block |
||
| 177 | 177 | if (Str::contains($fieldName, '#')) { |
| 178 | 178 | $container = Str::before($fieldName, '#'); |
| 179 | 179 | $fieldName = Str::after($fieldName, '#'); |
| 180 | - $field = array_filter(CRUD::fields()[$container]['subfields'] ?? [], function ($item) use ($fieldName) { |
|
| 180 | + $field = array_filter(CRUD::fields()[$container]['subfields'] ?? [], function($item) use ($fieldName) { |
|
| 181 | 181 | return $item['name'] === $fieldName && in_array($item['type'], $this->getAjaxFieldUploadTypes($fieldName)); |
| 182 | 182 | }); |
| 183 | 183 | |
| 184 | - return ! empty($field); |
|
| 184 | + return !empty($field); |
|
| 185 | 185 | } |
| 186 | 186 | |
| 187 | 187 | return isset(CRUD::fields()[$fieldName]) && in_array(CRUD::fields()[$fieldName]['type'], $this->getAjaxFieldUploadTypes($fieldName)); |