Skip to content

Commit 78e8118

Browse files
cklei-carlygithub-actions[bot]
authored andcommitted
Fix styling
1 parent d66a707 commit 78e8118

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/Base/Filament/Concerns/ContentFormTrait.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -236,8 +236,8 @@ public function handlePublishableRecordCreateOrUpdate(array $data, array $publis
236236
$record->setPublishableState($publishableAction);
237237

238238
$this->propertyDataIsDirtyPreCheck(
239-
array_merge($record->getLatestVersionPropertyData(), $record->latestContentVersion?->getVersioningCheckDiffData() ?? []),
240-
array_merge($data['propertyData'] ?? [], $record->contentVersions()->make([... $publishableData, 'publish_state' => $publishableAction])?->getVersioningCheckDiffData() ?? []),
239+
array_merge($record->getLatestVersionPropertyData(), $record->latestContentVersion?->getVersioningCheckDiffData() ?? []),
240+
array_merge($data['propertyData'] ?? [], $record->contentVersions()->make([...$publishableData, 'publish_state' => $publishableAction])?->getVersioningCheckDiffData() ?? []),
241241
);
242242

243243
$this->record = $this->handleRecordUpdate($record, $data);

src/Helpers/DiffHelper.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,13 @@ public static function compareArrays(array $from, array $to): array
88
{
99
$diff = [];
1010
foreach ($from as $key => $value) {
11-
if (!array_key_exists($key, $to) || $to[$key] !== $value) {
11+
if (! array_key_exists($key, $to) || $to[$key] !== $value) {
1212
$diff[$key] = ['from' => $value, 'to' => $to[$key] ?? null];
1313
}
1414
}
1515

1616
foreach ($to as $key => $value) {
17-
if (!array_key_exists($key, $from)) {
17+
if (! array_key_exists($key, $from)) {
1818
$diff[$key] = ['from' => null, 'to' => $value];
1919
}
2020
}

0 commit comments

Comments
 (0)