@@ -29,9 +29,9 @@ discard block |
||
| 29 | 29 | |
| 30 | 30 | if ($violations->count() > 0) { |
| 31 | 31 | /** @var ConstraintViolation $violation */ |
| 32 | - $violation = $violations[0]; |
|
| 32 | + $violation = $violations[ 0 ]; |
|
| 33 | 33 | |
| 34 | - return new JsonResponse(['status' => 'error', 'message' => $violation->getMessage()]); |
|
| 34 | + return new JsonResponse([ 'status' => 'error', 'message' => $violation->getMessage() ]); |
|
| 35 | 35 | } |
| 36 | 36 | |
| 37 | 37 | $fileName = $fileUploader->upload($uploadedFile); |
@@ -49,7 +49,7 @@ discard block |
||
| 49 | 49 | $em->persist($photo); |
| 50 | 50 | $em->flush(); |
| 51 | 51 | |
| 52 | - return new JsonResponse(['status' => 'ok']); |
|
| 52 | + return new JsonResponse([ 'status' => 'ok' ]); |
|
| 53 | 53 | } |
| 54 | 54 | |
| 55 | 55 | /** |
@@ -80,7 +80,7 @@ discard block |
||
| 80 | 80 | if (!$this->isCsrfTokenValid('delete', $request->request->get('token'))) { |
| 81 | 81 | return $this->redirectToRoute( |
| 82 | 82 | 'admin_photo_edit', |
| 83 | - ['id' => $request->attributes->get('property_id')] |
|
| 83 | + [ 'id' => $request->attributes->get('property_id') ] |
|
| 84 | 84 | ); |
| 85 | 85 | } |
| 86 | 86 | |
@@ -96,7 +96,7 @@ discard block |
||
| 96 | 96 | |
| 97 | 97 | return $this->redirectToRoute( |
| 98 | 98 | 'admin_photo_edit', |
| 99 | - ['id' => $request->attributes->get('property_id')] |
|
| 99 | + [ 'id' => $request->attributes->get('property_id') ] |
|
| 100 | 100 | ); |
| 101 | 101 | } |
| 102 | 102 | } |