Skip to content

Commit bdc6fc3

Browse files
AzGasimgithub-actions[bot]
authored andcommitted
Fix styling
1 parent 5ac2aa4 commit bdc6fc3

File tree

1 file changed

+13
-13
lines changed

1 file changed

+13
-13
lines changed

packages/core/src/Entities/BaseResource.php

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -382,20 +382,20 @@ public static function getPublishAction(): Action
382382
$livewire->data['translation_status'] = 'published';
383383
$livewire->save();
384384

385-
if (method_exists($livewire->record, 'translateOrNew')) {
386-
$locale = $livewire->lang ?? app()->getLocale();
387-
$translation = $livewire->record->translateOrNew($locale);
388-
$translation->published_at = now();
389-
$translation->publishedBy()->associate(auth()->user());
390-
$translation->to_publish_at = null;
391-
$translation->unpublished_at = null;
392-
$translation->to_unpublish_at = null;
393-
$translation->save();
394-
}
385+
if (method_exists($livewire->record, 'translateOrNew')) {
386+
$locale = $livewire->lang ?? app()->getLocale();
387+
$translation = $livewire->record->translateOrNew($locale);
388+
$translation->published_at = now();
389+
$translation->publishedBy()->associate(auth()->user());
390+
$translation->to_publish_at = null;
391+
$translation->unpublished_at = null;
392+
$translation->to_unpublish_at = null;
393+
$translation->save();
394+
}
395395

396396
$url = static::getUrl('view', ['record' => $livewire->record]);
397397
if (isset($livewire->lang)) {
398-
$url .= '?lang=' . $livewire->lang;
398+
$url .= '?lang='.$livewire->lang;
399399
}
400400
$livewire->redirect($url);
401401
})
@@ -417,10 +417,10 @@ public static function getSaveAndCreateAnotherAction(): Action
417417
->button()
418418
->action(function ($livewire): void {
419419
$livewire instanceof CreateRecord ? $livewire->create() : $livewire->save();
420-
420+
421421
$url = static::getUrl('create');
422422
if (isset($livewire->lang)) {
423-
$url .= '?lang=' . $livewire->lang;
423+
$url .= '?lang='.$livewire->lang;
424424
}
425425
$livewire->redirect($url);
426426
})

0 commit comments

Comments
 (0)