@@ -84,7 +84,7 @@ discard block |
||
| 84 | 84 | * @return DataResponse |
| 85 | 85 | */ |
| 86 | 86 | public function list($pollId) { |
| 87 | - return $this->response(function () use ($pollId) { |
|
| 87 | + return $this->response(function() use ($pollId) { |
|
| 88 | 88 | return ['shares' => $this->shareService->list($pollId)]; |
| 89 | 89 | }); |
| 90 | 90 | } |
@@ -96,7 +96,7 @@ discard block |
||
| 96 | 96 | * @return DataResponse |
| 97 | 97 | */ |
| 98 | 98 | public function get($token) { |
| 99 | - return $this->response(function () use ($token) { |
|
| 99 | + return $this->response(function() use ($token) { |
|
| 100 | 100 | return ['share' => $this->shareService->get($token)]; |
| 101 | 101 | }); |
| 102 | 102 | } |
@@ -110,7 +110,7 @@ discard block |
||
| 110 | 110 | * @return DataResponse |
| 111 | 111 | */ |
| 112 | 112 | public function add($pollId, $type, $userId = '') { |
| 113 | - return $this->responseCreate(function () use ($pollId, $type, $userId) { |
|
| 113 | + return $this->responseCreate(function() use ($pollId, $type, $userId) { |
|
| 114 | 114 | return ['share' => $this->shareService->add($pollId, $type, $userId)]; |
| 115 | 115 | }); |
| 116 | 116 | } |
@@ -127,7 +127,7 @@ discard block |
||
| 127 | 127 | * @return DataResponse |
| 128 | 128 | */ |
| 129 | 129 | public function setEmailAddress($token, $emailAddress) { |
| 130 | - return $this->response(function () use ($token, $emailAddress) { |
|
| 130 | + return $this->response(function() use ($token, $emailAddress) { |
|
| 131 | 131 | return ['share' => $this->shareService->setEmailAddress($token, $emailAddress)]; |
| 132 | 132 | }); |
| 133 | 133 | } |
@@ -142,7 +142,7 @@ discard block |
||
| 142 | 142 | * @return DataResponse |
| 143 | 143 | */ |
| 144 | 144 | public function personal($token, $userName, $emailAddress = '') { |
| 145 | - return $this->responseCreate(function () use ($token, $userName, $emailAddress) { |
|
| 145 | + return $this->responseCreate(function() use ($token, $userName, $emailAddress) { |
|
| 146 | 146 | return ['share' => $this->shareService->personal($token, $userName, $emailAddress)]; |
| 147 | 147 | }); |
| 148 | 148 | } |
@@ -155,7 +155,7 @@ discard block |
||
| 155 | 155 | */ |
| 156 | 156 | |
| 157 | 157 | public function delete($token) { |
| 158 | - return $this->responseDeleteTolerant(function () use ($token) { |
|
| 158 | + return $this->responseDeleteTolerant(function() use ($token) { |
|
| 159 | 159 | return ['share' => $this->shareService->delete($token)]; |
| 160 | 160 | }); |
| 161 | 161 | } |
@@ -168,7 +168,7 @@ discard block |
||
| 168 | 168 | * @return DataResponse |
| 169 | 169 | */ |
| 170 | 170 | public function sendInvitation($token) { |
| 171 | - return $this->response(function () use ($token) { |
|
| 171 | + return $this->response(function() use ($token) { |
|
| 172 | 172 | $share = $this->shareService->get($token); |
| 173 | 173 | if ($share->getType() === Share::TYPE_USER) { |
| 174 | 174 | if ($this->notificationService->sendInvitation($share->getPollId(), $share->getUserId())) { |
@@ -192,7 +192,7 @@ discard block |
||
| 192 | 192 | * @return DataResponse |
| 193 | 193 | */ |
| 194 | 194 | public function resolveGroup($token) { |
| 195 | - return $this->response(function () use ($token) { |
|
| 195 | + return $this->response(function() use ($token) { |
|
| 196 | 196 | $shares = []; |
| 197 | 197 | $share = $this->shareService->get($token); |
| 198 | 198 | if ($share->getType() === Share::TYPE_CIRCLE) { |
@@ -70,7 +70,7 @@ discard block |
||
| 70 | 70 | * @return DataResponse |
| 71 | 71 | */ |
| 72 | 72 | public function list($pollId) { |
| 73 | - return $this->response(function () use ($pollId) { |
|
| 73 | + return $this->response(function() use ($pollId) { |
|
| 74 | 74 | return ['shares' => $this->shareService->list($pollId)]; |
| 75 | 75 | }); |
| 76 | 76 | } |
@@ -84,7 +84,7 @@ discard block |
||
| 84 | 84 | * @return DataResponse |
| 85 | 85 | */ |
| 86 | 86 | public function get($token) { |
| 87 | - return $this->response(function () use ($token) { |
|
| 87 | + return $this->response(function() use ($token) { |
|
| 88 | 88 | return ['share' => $this->shareService->get($token)]; |
| 89 | 89 | }); |
| 90 | 90 | } |
@@ -100,7 +100,7 @@ discard block |
||
| 100 | 100 | * @return DataResponse |
| 101 | 101 | */ |
| 102 | 102 | public function add($pollId, $type, $userId = '') { |
| 103 | - return $this->responseCreate(function () use ($pollId, $type, $userId) { |
|
| 103 | + return $this->responseCreate(function() use ($pollId, $type, $userId) { |
|
| 104 | 104 | return ['share' => $this->shareService->add($pollId, $type, $userId)]; |
| 105 | 105 | }); |
| 106 | 106 | } |
@@ -115,7 +115,7 @@ discard block |
||
| 115 | 115 | */ |
| 116 | 116 | |
| 117 | 117 | public function delete($token) { |
| 118 | - return $this->responseDeleteTolerant(function () use ($token) { |
|
| 118 | + return $this->responseDeleteTolerant(function() use ($token) { |
|
| 119 | 119 | return ['share' => $this->shareService->delete($token)]; |
| 120 | 120 | }); |
| 121 | 121 | } |
@@ -129,7 +129,7 @@ discard block |
||
| 129 | 129 | * @return DataResponse |
| 130 | 130 | */ |
| 131 | 131 | public function sendInvitation($token) { |
| 132 | - return $this->response(function () use ($token) { |
|
| 132 | + return $this->response(function() use ($token) { |
|
| 133 | 133 | $sentResult = $this->mailService->sendInvitation($token); |
| 134 | 134 | $share = $this->shareService->get($token); |
| 135 | 135 | return [ |