Skip to content

Commit 0e94b83

Browse files
authored
Merge pull request #3 from andrew-demb/fuck-else-stmt
Drop `else` in favor early return
2 parents e531347 + 3ae59a8 commit 0e94b83

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)