@@ -186,7 +186,7 @@ discard block |
||
186 | 186 | $this->addFlash('info', 'part.edited_flash'); |
187 | 187 | //Reload form, so the SIUnitType entries use the new part unit |
188 | 188 | $form = $this->createForm(PartBaseType::class, $part); |
189 | - } elseif ($form->isSubmitted() && ! $form->isValid()) { |
|
189 | + } elseif ($form->isSubmitted() && !$form->isValid()) { |
|
190 | 190 | $this->addFlash('error', 'part.edited_flash.invalid'); |
191 | 191 | } |
192 | 192 | |
@@ -231,7 +231,7 @@ discard block |
||
231 | 231 | * @return Response |
232 | 232 | */ |
233 | 233 | public function new(Request $request, EntityManagerInterface $em, TranslatorInterface $translator, |
234 | - AttachmentManager $attachmentHelper, AttachmentSubmitHandler $attachmentSubmitHandler, ?Part $part = null): Response |
|
234 | + AttachmentManager $attachmentHelper, AttachmentSubmitHandler $attachmentSubmitHandler, ?Part $part = null) : Response |
|
235 | 235 | { |
236 | 236 | if (null === $part) { |
237 | 237 | $new_part = new Part(); |
@@ -260,7 +260,7 @@ discard block |
||
260 | 260 | } |
261 | 261 | |
262 | 262 | $store_id = $request->get('storelocation', null); |
263 | - $storelocation = $store_id ? $em->find(Storelocation::class, $store_id): null; |
|
263 | + $storelocation = $store_id ? $em->find(Storelocation::class, $store_id) : null; |
|
264 | 264 | if (null !== $storelocation && $new_part->getPartLots()->isEmpty()) { |
265 | 265 | $partLot = new PartLot(); |
266 | 266 | $partLot->setStorageLocation($storelocation); |
@@ -269,7 +269,7 @@ discard block |
||
269 | 269 | } |
270 | 270 | |
271 | 271 | $supplier_id = $request->get('supplier', null); |
272 | - $supplier = $supplier_id ? $em->find(Supplier::class, $supplier_id): null; |
|
272 | + $supplier = $supplier_id ? $em->find(Supplier::class, $supplier_id) : null; |
|
273 | 273 | if (null !== $supplier && $new_part->getOrderdetails()->isEmpty()) { |
274 | 274 | $orderdetail = new Orderdetail(); |
275 | 275 | $orderdetail->setSupplier($supplier); |
@@ -310,7 +310,7 @@ discard block |
||
310 | 310 | return $this->redirectToRoute('part_edit', ['id' => $new_part->getID()]); |
311 | 311 | } |
312 | 312 | |
313 | - if ($form->isSubmitted() && ! $form->isValid()) { |
|
313 | + if ($form->isSubmitted() && !$form->isValid()) { |
|
314 | 314 | $this->addFlash('error', 'part.created_flash.invalid'); |
315 | 315 | } |
316 | 316 |