Skip to content

Commit 2a94a86

Browse files
committed
Apply fixes from StyleCI
[ci skip] [skip ci]
1 parent 1569b9a commit 2a94a86

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ private function setupModelEvents(string $model, UploaderInterface $uploader): v
121121
app('crud')->entry = $uploader->retrieveUploadedFiles(app('crud')->entry);
122122
} else {
123123
$model::retrieved(function ($entry) use ($uploader) {
124-
if($entry->translationEnabled()) {
124+
if ($entry->translationEnabled()) {
125125
$locale = request('_locale', \App::getLocale());
126126
if (in_array($locale, array_keys($entry->getAvailableLocales()))) {
127127
$entry->setLocale($locale);

src/app/Library/Uploaders/Uploader.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -269,8 +269,8 @@ private function getOriginalValue(Model $entry, $field = null)
269269
return $previousValue;
270270
}
271271

272-
if($entry->translationEnabled()) {
273-
return $previousValue[$entry->getLocale()] ?? null;
272+
if ($entry->translationEnabled()) {
273+
return $previousValue[$entry->getLocale()] ?? null;
274274
}
275275

276276
return $previousValue;

0 commit comments

Comments
 (0)