Skip to content

Commit c494dd1

Browse files
committed
Apply fixes from StyleCI
[ci skip] [skip ci]
1 parent fbe0d70 commit c494dd1

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

src/app/Library/Uploaders/Support/Traits/HandleRepeatableUploads.php

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -188,13 +188,15 @@ private function getPreviousRepeatableValues(Model $entry, UploaderInterface $up
188188
return $previousValues ?? [];
189189
}
190190

191-
private function getValuesWithPathStripped(array|string|null $item, UploaderInterface $upload) {
191+
private function getValuesWithPathStripped(array|string|null $item, UploaderInterface $upload)
192+
{
192193
$uploadedValues = $item[$upload->getName()] ?? null;
193-
if(is_array($uploadedValues)) {
194-
return array_map(function($value) use ($upload) {
194+
if (is_array($uploadedValues)) {
195+
return array_map(function ($value) use ($upload) {
195196
return Str::after($value, $upload->getPath());
196-
},$uploadedValues);
197-
}
197+
}, $uploadedValues);
198+
}
199+
198200
return isset($uploadedValues) ? Str::after($uploadedValues, $upload->getPath()) : null;
199201
}
200202
}

0 commit comments

Comments
 (0)