Completed
Push — master ( 72cd9a...7c43fe )
by Jan
03:05
created
src/Services/EntityURLGenerator.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -110,7 +110,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 
Please login to merge, or discard this patch.
src/Controller/AttachmentTypeController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -106,7 +106,7 @@
 block discarded – undo
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
             }
Please login to merge, or discard this patch.