@@ -85,7 +85,7 @@ discard block |
||
| 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 |
||
| 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 |
||
| 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 |
||
| 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 | |