Skip to content

Commit b299410

Browse files
committed
Apply fixes from StyleCI
[ci skip] [skip ci]
1 parent 1ba771b commit b299410

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

src/app/Library/Uploaders/Support/RegisterUploadEvents.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ private function getSubfieldModel(array $subfield, UploaderInterface $uploader)
189189
return $subfield['baseModel'] ?? get_class(app('crud')->getModel());
190190
}
191191

192-
if(in_array($subfield['relation_type'], ['BelongsToMany', 'MorphToMany'])) {
192+
if (in_array($subfield['relation_type'], ['BelongsToMany', 'MorphToMany'])) {
193193
return app('crud')->getModel()->{$subfield['baseEntity']}()->getPivotClass();
194194
}
195195

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,6 +151,7 @@ private function deleteRepeatableFiles(Model $entry): void
151151
{
152152
if ($this->isRelationship) {
153153
$this->deleteRelationshipFiles($entry);
154+
154155
return;
155156
}
156157

@@ -237,7 +238,7 @@ private function getValuesWithPathStripped(array|string|null $item, UploaderInte
237238
return isset($uploadedValues) ? Str::after($uploadedValues, $upload->getPath()) : null;
238239
}
239240

240-
private function deleteRelationshipFiles(Model $entry) : void
241+
private function deleteRelationshipFiles(Model $entry): void
241242
{
242243
if (in_array($this->getRepeatableRelationType(), ['BelongsToMany', 'MorphToMany'])) {
243244
$pivotAttributes = $entry->getAttributes();

0 commit comments

Comments
 (0)