Skip to content

Commit 3ae59a8

Browse files
author
lalshe
committed
Drop else in favor early return
1 parent f917041 commit 3ae59a8

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/Symfony/Extensions/PropertyNormalizerWrapper.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -94,10 +94,10 @@ protected function setAttributeValue(object $object, string $attribute, $value,
9494
if (true === isset($object->{$attribute}))
9595
{
9696
$object->{$attribute} = $value;
97+
98+
return;
9799
}
98-
else
99-
{
100-
parent::setAttributeValue($object, $attribute, $value, $format, $context);
101-
}
100+
101+
parent::setAttributeValue($object, $attribute, $value, $format, $context);
102102
}
103103
}

0 commit comments

Comments
 (0)