Skip to content

Commit

Permalink
style change
Browse files Browse the repository at this point in the history
  • Loading branch information
remko48 committed Nov 21, 2024
1 parent 3a835df commit f22a240
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/Service/ObjectService.php
Original file line number Diff line number Diff line change
Expand Up @@ -342,8 +342,7 @@ public function saveObject(int $register, int $schema, array $object): ObjectEnt
if ($objectEntity->getId() && ($schemaObject->getHardValidation() === false || $validationResult->isValid() === true)){
$objectEntity = $this->objectEntityMapper->update($objectEntity);
$this->auditTrailMapper->createAuditTrail(new: $objectEntity, old: $oldObject);
}
else if ($schemaObject->getHardValidation() === false || $validationResult->isValid() === true) {
} else if ($schemaObject->getHardValidation() === false || $validationResult->isValid() === true) {
$objectEntity = $this->objectEntityMapper->insert($objectEntity);
$this->auditTrailMapper->createAuditTrail(new: $objectEntity);
}
Expand Down

0 comments on commit f22a240

Please sign in to comment.