Skip to content

Commit

Permalink
Merge pull request #2495 from coreshop/coding-standard/refactor-4.0
Browse files Browse the repository at this point in the history
[CS] Refactor
  • Loading branch information
dpfaffenbauer authored Dec 26, 2023
2 parents 2e9bab9 + 030e9f1 commit a5baa41
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/CoreShop/Bundle/ClassDefinitionPatchBundle/Patcher.php
Original file line number Diff line number Diff line change
Expand Up @@ -120,8 +120,7 @@ protected function patchWithClassUpdate(PatchInterface $patch): ClassUpdate
if ($classUpdater->hasField($field->getFieldName())) {
if ($field->isReplace()) {
$classUpdater->replaceField($field->getFieldName(), $field->getDefinition());
}
else {
} else {
$classUpdater->replaceFieldProperties($field->getFieldName(), $field->getDefinition());
}
} elseif ($field->getBefore()) {
Expand Down

0 comments on commit a5baa41

Please sign in to comment.