diff --git a/src/Element/Schema/Subtype.php b/src/Element/Schema/Subtype.php index 9c4773bb..11b99e0e 100644 --- a/src/Element/Schema/Subtype.php +++ b/src/Element/Schema/Subtype.php @@ -55,6 +55,4 @@ public function getElementSubtype(): string { return $this->elementSubtype; } - - } diff --git a/src/Element/Service/ElementService.php b/src/Element/Service/ElementService.php index d45dbc78..22102b3d 100644 --- a/src/Element/Service/ElementService.php +++ b/src/Element/Service/ElementService.php @@ -112,7 +112,7 @@ public function getElementSubtype(ElementParameters $parameters): Subtype $subtype = new Subtype($parameters->getId(), $parameters->getType(), $this->getSubtypeFromElement($element)); $this->eventDispatcher->dispatch(new ElementSubtypeEvent($subtype), ElementSubtypeEvent::EVENT_NAME); - + return $subtype; } @@ -131,7 +131,7 @@ private function getSubtypeFromElement(ElementInterface $element): string if ($subtype === null) { throw new ApiNotFoundException('Subtype for Element', $element->getId()); } - + return $subtype; } }