@@ -110,7 +110,7 @@ discard block |
||
110 | 110 | return $this->urlGenerator->generate('part_edit', ['id' => $entity->getID()]); |
111 | 111 | } |
112 | 112 | |
113 | - if($entity instanceof AttachmentType) { |
|
113 | + if ($entity instanceof AttachmentType) { |
|
114 | 114 | return $this->urlGenerator->generate('attachment_type_edit', ['id' => $entity->getID()]); |
115 | 115 | } |
116 | 116 | |
@@ -131,7 +131,7 @@ discard block |
||
131 | 131 | return $this->urlGenerator->generate('part_new'); |
132 | 132 | } |
133 | 133 | |
134 | - if($entity instanceof AttachmentType) { |
|
134 | + if ($entity instanceof AttachmentType) { |
|
135 | 135 | return $this->urlGenerator->generate('attachment_type_new'); |
136 | 136 | } |
137 | 137 | |
@@ -173,7 +173,7 @@ discard block |
||
173 | 173 | |
174 | 174 | public function deleteURL($entity) : string |
175 | 175 | { |
176 | - if($entity instanceof AttachmentType) { |
|
176 | + if ($entity instanceof AttachmentType) { |
|
177 | 177 | return $this->urlGenerator->generate('attachment_type_delete', ['id' => $entity->getID()]); |
178 | 178 | } |
179 | 179 |
@@ -106,7 +106,7 @@ |
||
106 | 106 | $parent = $entity->getParent(); |
107 | 107 | |
108 | 108 | //Move all sub entities to the current parent |
109 | - foreach($entity->getSubelements() as $subelement) { |
|
109 | + foreach ($entity->getSubelements() as $subelement) { |
|
110 | 110 | $subelement->setParent($parent); |
111 | 111 | $entityManager->persist($subelement); |
112 | 112 | } |