Completed
Push — master ( 3a1193...09a594 )
by Jan
07:54
created
src/Controller/PartController.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -85,7 +85,7 @@  discard block
 block discarded – undo
85 85
             $attachments = $form['attachments'];
86 86
             foreach ($attachments as $attachment) {
87 87
                 /** @var $attachment FormInterface */
88
-                $attachmentHelper->upload( $attachment->getData(), $attachment['file']->getData());
88
+                $attachmentHelper->upload($attachment->getData(), $attachment['file']->getData());
89 89
             }
90 90
 
91 91
 
@@ -94,7 +94,7 @@  discard block
 block discarded – undo
94 94
             $this->addFlash('info', $translator->trans('part.edited_flash'));
95 95
             //Reload form, so the SIUnitType entries use the new part unit
96 96
             $form = $this->createForm(PartBaseType::class, $part);
97
-        } elseif ($form->isSubmitted() && ! $form->isValid()) {
97
+        } elseif ($form->isSubmitted() && !$form->isValid()) {
98 98
             $this->addFlash('error', $translator->trans('part.edited_flash.invalid'));
99 99
         }
100 100
 
@@ -135,7 +135,7 @@  discard block
 block discarded – undo
135 135
             $attachments = $form['attachments'];
136 136
             foreach ($attachments as $attachment) {
137 137
                 /** @var $attachment FormInterface */
138
-                $attachmentHelper->upload( $attachment->getData(), $attachment['file']->getData());
138
+                $attachmentHelper->upload($attachment->getData(), $attachment['file']->getData());
139 139
             }
140 140
 
141 141
             $em->persist($new_part);
@@ -143,7 +143,7 @@  discard block
 block discarded – undo
143 143
             $this->addFlash('success', $translator->trans('part.created_flash'));
144 144
 
145 145
             return $this->redirectToRoute('part_edit', ['id' => $new_part->getID()]);
146
-        } elseif ($form->isSubmitted() && ! $form->isValid()) {
146
+        } elseif ($form->isSubmitted() && !$form->isValid()) {
147 147
             $this->addFlash('error', $translator->trans('part.created_flash.invalid'));
148 148
         }
149 149
 
Please login to merge, or discard this patch.