@@ -28,8 +28,9 @@ |
||
| 28 | 28 | { |
| 29 | 29 | try { |
| 30 | 30 | $order = $this->entityManager->getRepository(Order::class)->find($id); |
| 31 | - if (!$order) |
|
| 32 | - return new JsonResponse(['error' => 'Order not found'], 404); |
|
| 31 | + if (!$order) { |
|
| 32 | + return new JsonResponse(['error' => 'Order not found'], 404); |
|
| 33 | + } |
|
| 33 | 34 | |
| 34 | 35 | $data = json_decode($request->getContent(), true); |
| 35 | 36 | |