Passed
Push — master ( d4818d...660201 )
by Jan
12:13
created
src/Controller/PartController.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -188,7 +188,7 @@  discard block
 block discarded – undo
188 188
 
189 189
             //Reload form, so the SIUnitType entries use the new part unit
190 190
             $form = $this->createForm(PartBaseType::class, $part);
191
-        } elseif ($form->isSubmitted() && ! $form->isValid()) {
191
+        } elseif ($form->isSubmitted() && !$form->isValid()) {
192 192
             $this->addFlash('error', 'part.edited_flash.invalid');
193 193
         }
194 194
 
@@ -232,7 +232,7 @@  discard block
 block discarded – undo
232 232
      * @return Response
233 233
      */
234 234
     public function new(Request $request, EntityManagerInterface $em, TranslatorInterface $translator,
235
-        AttachmentSubmitHandler $attachmentSubmitHandler, ?Part $part = null): Response
235
+        AttachmentSubmitHandler $attachmentSubmitHandler, ?Part $part = null) : Response
236 236
     {
237 237
         if (null === $part) {
238 238
             $new_part = new Part();
@@ -315,7 +315,7 @@  discard block
 block discarded – undo
315 315
             return $this->redirectToRoute('part_edit', ['id' => $new_part->getID()]);
316 316
         }
317 317
 
318
-        if ($form->isSubmitted() && ! $form->isValid()) {
318
+        if ($form->isSubmitted() && !$form->isValid()) {
319 319
             $this->addFlash('error', 'part.created_flash.invalid');
320 320
         }
321 321
 
Please login to merge, or discard this patch.