Skip to content

Commit 1ce2b01

Browse files
fix phpcs issue
1 parent d5a8b29 commit 1ce2b01

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

src/Denormalizer/AttributesPropertyDenormalizer.php

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -56,10 +56,8 @@ public function denormalize($data, $type, $format = null, array $context = []):
5656
if (!empty($data)) {
5757
foreach ($data as $key => $item) {
5858
if (is_object($item)) {
59-
// $data came from the EntityNormalizer.
60-
$flatten[$item->name] = $item->value ?? NULL;
61-
}
62-
else {
59+
$flatten[$item->name] = $item->value ?? null;
60+
} else {
6361
$flatten[$key] = $item;
6462
}
6563
}

0 commit comments

Comments
 (0)