@@ -19,7 +19,7 @@ discard block |
||
19 | 19 | $options = $this->resolveParams()->resolve($request->query->all()); |
20 | 20 | |
21 | 21 | $orderBy = !empty($options['sort']) ? array_map( |
22 | - function ($r) { |
|
22 | + function($r) { |
|
23 | 23 | return [substr($r, 1) => substr($r, 0, 1) == '+' ? 'ASC' : 'DESC']; |
24 | 24 | }, |
25 | 25 | explode(',', $options['sort']) |
@@ -53,7 +53,7 @@ discard block |
||
53 | 53 | { |
54 | 54 | $manager = $this->get("starkerxp_campagne.manager.template"); |
55 | 55 | |
56 | - return new JsonResponse(["payload" => []]);//400 |
|
56 | + return new JsonResponse(["payload" => []]); //400 |
|
57 | 57 | } |
58 | 58 | |
59 | 59 | public function postAction(Request $request) |
@@ -61,7 +61,7 @@ discard block |
||
61 | 61 | $manager = $this->get("starkerxp_campagne.manager.template"); |
62 | 62 | $options = $manager->getPostOptionResolver()->resolve($request->request->all()); |
63 | 63 | |
64 | - return new JsonResponse(["payload" => ""], 201);//400 |
|
64 | + return new JsonResponse(["payload" => ""], 201); //400 |
|
65 | 65 | } |
66 | 66 | |
67 | 67 | public function putAction(Request $request) |
@@ -56,7 +56,7 @@ |
||
56 | 56 | true, |
57 | 57 | true, |
58 | 58 | [ |
59 | - 'x-message-ttl' => ['I', $this->getDelaiTemporisation() * 1000], // delay in seconds to milliseconds |
|
59 | + 'x-message-ttl' => ['I', $this->getDelaiTemporisation() * 1000], // delay in seconds to milliseconds |
|
60 | 60 | "x-expires" => ["I", $this->getDelaiTemporisation() * 1000 + 1000], |
61 | 61 | 'x-dead-letter-exchange' => ['S', 'exchange_'.$nomChannel] // after message expiration in delay queue, move message to the right.now.queue |
62 | 62 | ] |