Skip to content

Commit 227864f

Browse files
Don't use negation in ternary.
1 parent e06c3be commit 227864f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

webapp/src/Serializer/Shadowing/EventDenormalizer.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ public function denormalize(
5050

5151
$eventType = EventType::fromString($data['type']);
5252
if ($this->getEventFeedFormat($data, $context) === EventFeedFormat::Format_2022_07) {
53-
$operation = !isset($data['data']) ? Operation::DELETE : Operation::CREATE;
53+
$operation = isset($data['data']) ? Operation::CREATE : Operation::DELETE;
5454
if (!isset($data['data'][0])) {
5555
$data['data'] = [$data['data']];
5656
}

0 commit comments

Comments
 (0)