@@ -38,7 +38,7 @@ |
||
| 38 | 38 | |
| 39 | 39 | return $pagerFactory->createRepresentation( |
| 40 | 40 | $pager, |
| 41 | - new Route($request->attributes->get('_route'), ['limit' => $limit, 'page' => $page]) |
|
| 41 | + new Route($request->attributes->get('_route'), [ 'limit' => $limit, 'page' => $page ]) |
|
| 42 | 42 | ); |
| 43 | 43 | } |
| 44 | 44 | } |
@@ -197,7 +197,7 @@ |
||
| 197 | 197 | $em->flush(); |
| 198 | 198 | |
| 199 | 199 | $response = new Response($this->get('serializer')->serialize($tip, $request->getRequestFormat())); |
| 200 | - $response->headers->set('Location', $this->generateUrl('api_get_tip', ['tip' => $tip->getId()])); |
|
| 200 | + $response->headers->set('Location', $this->generateUrl('api_get_tip', [ 'tip' => $tip->getId() ])); |
|
| 201 | 201 | |
| 202 | 202 | return $response; |
| 203 | 203 | } |
@@ -20,9 +20,9 @@ discard block |
||
| 20 | 20 | self::$client->request( |
| 21 | 21 | 'POST', |
| 22 | 22 | '/api/tips.json', |
| 23 | - [], |
|
| 24 | - [], |
|
| 25 | - ['CONTENT_TYPE' => 'application/json'], |
|
| 23 | + [ ], |
|
| 24 | + [ ], |
|
| 25 | + [ 'CONTENT_TYPE' => 'application/json' ], |
|
| 26 | 26 | '{"tip": {"day":"3"}}' |
| 27 | 27 | ); |
| 28 | 28 | |
@@ -40,9 +40,9 @@ discard block |
||
| 40 | 40 | self::$client->request( |
| 41 | 41 | 'POST', |
| 42 | 42 | '/api/tips.json', |
| 43 | - [], |
|
| 44 | - [], |
|
| 45 | - ['CONTENT_TYPE' => 'application/json'], |
|
| 43 | + [ ], |
|
| 44 | + [ ], |
|
| 45 | + [ 'CONTENT_TYPE' => 'application/json' ], |
|
| 46 | 46 | sprintf('{"tip": %s}', $content) |
| 47 | 47 | ); |
| 48 | 48 | |
@@ -135,9 +135,9 @@ discard block |
||
| 135 | 135 | self::$client->request( |
| 136 | 136 | 'POST', |
| 137 | 137 | '/api/tips/1/update.json', |
| 138 | - [], |
|
| 139 | - [], |
|
| 140 | - ['CONTENT_TYPE' => 'application/json'], |
|
| 138 | + [ ], |
|
| 139 | + [ ], |
|
| 140 | + [ 'CONTENT_TYPE' => 'application/json' ], |
|
| 141 | 141 | sprintf('{"tip": %s}', $content) |
| 142 | 142 | ); |
| 143 | 143 | |
@@ -71,7 +71,7 @@ |
||
| 71 | 71 | */ |
| 72 | 72 | protected function getDataFixtures() |
| 73 | 73 | { |
| 74 | - return []; |
|
| 74 | + return [ ]; |
|
| 75 | 75 | } |
| 76 | 76 | |
| 77 | 77 | /** |