We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
@@ -76,7 +76,7 @@ discard block |
||
| 76 | 76 | foreach (app('UploadersRepository')->getRepeatableUploadersFor($this->getRepeatableContainerName()) as $uploader) { |
| 77 | 77 | $uploadedValues = $uploader->uploadRepeatableFiles($values->pluck($uploader->getName())->toArray(), $this->getPreviousRepeatableValues($entry, $uploader)); |
| 78 | 78 | |
| 79 | - $values = $values->map(function ($item, $key) use ($uploadedValues, $uploader) { |
|
| 79 | + $values = $values->map(function($item, $key) use ($uploadedValues, $uploader) { |
|
| 80 | 80 | $item[$uploader->getName()] = $uploadedValues[$key] ?? null; |
| 81 | 81 | |
| 82 | 82 | return $item; |
@@ -105,12 +105,12 @@ discard block |
||
| 105 | 105 | |
| 106 | 106 | $repeatableValues = collect($entry->{$this->getName()}); |
| 107 | 107 | foreach (app('UploadersRepository')->getRepeatableUploadersFor($this->getRepeatableContainerName()) as $upload) { |
| 108 | - if (! $upload->shouldDeleteFiles()) { |
|
| 108 | + if (!$upload->shouldDeleteFiles()) { |
|
| 109 | 109 | continue; |
| 110 | 110 | } |
| 111 | 111 | $values = $repeatableValues->pluck($upload->getName())->toArray(); |
| 112 | 112 | foreach ($values as $value) { |
| 113 | - if (! $value) { |
|
| 113 | + if (!$value) { |
|
| 114 | 114 | continue; |
| 115 | 115 | } |
| 116 | 116 | |
@@ -132,7 +132,7 @@ discard block |
||
| 132 | 132 | /** |
| 133 | 133 | * Given two multidimensional arrays/collections, merge them recursively. |
| 134 | 134 | */ |
| 135 | - private function mergeValuesRecursive(array|Collection $array1, array|Collection $array2): array|Collection |
|
| 135 | + private function mergeValuesRecursive(array | Collection $array1, array | Collection $array2): array | Collection |
|
| 136 | 136 | { |
| 137 | 137 | $merged = $array1; |
| 138 | 138 | foreach ($array2 as $key => &$value) { |
@@ -154,7 +154,7 @@ discard block |
||
| 154 | 154 | { |
| 155 | 155 | $items = CRUD::getRequest()->input('_order_'.$this->getRepeatableContainerName()) ?? []; |
| 156 | 156 | |
| 157 | - array_walk($items, function (&$key, $value) { |
|
| 157 | + array_walk($items, function(&$key, $value) { |
|
| 158 | 158 | $requestValue = $key[$this->getName()] ?? null; |
| 159 | 159 | $key = $this->handleMultipleFiles ? (is_string($requestValue) ? explode(',', $requestValue) : $requestValue) : $requestValue; |
| 160 | 160 | }); |
@@ -166,7 +166,7 @@ discard block |
||
| 166 | 166 | { |
| 167 | 167 | $previousValues = json_decode($entry->getOriginal($uploader->getRepeatableContainerName()), true); |
| 168 | 168 | |
| 169 | - if (! empty($previousValues)) { |
|
| 169 | + if (!empty($previousValues)) { |
|
| 170 | 170 | $previousValues = array_column($previousValues, $uploader->getName()); |
| 171 | 171 | } |
| 172 | 172 | |