@@ -94,7 +94,7 @@ discard block |
||
94 | 94 | $attachments = $form['attachments']; |
95 | 95 | foreach ($attachments as $attachment) { |
96 | 96 | /** @var $attachment FormInterface */ |
97 | - $attachmentHelper->upload( $attachment->getData(), $attachment['file']->getData()); |
|
97 | + $attachmentHelper->upload($attachment->getData(), $attachment['file']->getData()); |
|
98 | 98 | } |
99 | 99 | |
100 | 100 | |
@@ -103,7 +103,7 @@ discard block |
||
103 | 103 | $this->addFlash('info', $translator->trans('part.edited_flash')); |
104 | 104 | //Reload form, so the SIUnitType entries use the new part unit |
105 | 105 | $form = $this->createForm(PartBaseType::class, $part); |
106 | - } elseif ($form->isSubmitted() && ! $form->isValid()) { |
|
106 | + } elseif ($form->isSubmitted() && !$form->isValid()) { |
|
107 | 107 | $this->addFlash('error', $translator->trans('part.edited_flash.invalid')); |
108 | 108 | } |
109 | 109 | |
@@ -125,7 +125,7 @@ discard block |
||
125 | 125 | { |
126 | 126 | $this->denyAccessUnlessGranted('delete', $part); |
127 | 127 | |
128 | - if ($this->isCsrfTokenValid('delete' . $part->getId(), $request->request->get('_token'))) { |
|
128 | + if ($this->isCsrfTokenValid('delete'.$part->getId(), $request->request->get('_token'))) { |
|
129 | 129 | $entityManager = $this->getDoctrine()->getManager(); |
130 | 130 | |
131 | 131 | //Remove part |
@@ -169,7 +169,7 @@ discard block |
||
169 | 169 | $attachments = $form['attachments']; |
170 | 170 | foreach ($attachments as $attachment) { |
171 | 171 | /** @var $attachment FormInterface */ |
172 | - $attachmentHelper->upload( $attachment->getData(), $attachment['file']->getData()); |
|
172 | + $attachmentHelper->upload($attachment->getData(), $attachment['file']->getData()); |
|
173 | 173 | } |
174 | 174 | |
175 | 175 | $em->persist($new_part); |
@@ -177,7 +177,7 @@ discard block |
||
177 | 177 | $this->addFlash('success', $translator->trans('part.created_flash')); |
178 | 178 | |
179 | 179 | return $this->redirectToRoute('part_edit', ['id' => $new_part->getID()]); |
180 | - } elseif ($form->isSubmitted() && ! $form->isValid()) { |
|
180 | + } elseif ($form->isSubmitted() && !$form->isValid()) { |
|
181 | 181 | $this->addFlash('error', $translator->trans('part.created_flash.invalid')); |
182 | 182 | } |
183 | 183 |