@@ -83,7 +83,7 @@ discard block |
||
| 83 | 83 | * @return DataResponse |
| 84 | 84 | */ |
| 85 | 85 | public function list($pollId) { |
| 86 | - return $this->response(function () use ($pollId) { |
|
| 86 | + return $this->response(function() use ($pollId) { |
|
| 87 | 87 | return ['shares' => $this->shareService->list($pollId)]; |
| 88 | 88 | }); |
| 89 | 89 | } |
@@ -95,7 +95,7 @@ discard block |
||
| 95 | 95 | * @return DataResponse |
| 96 | 96 | */ |
| 97 | 97 | public function get($token) { |
| 98 | - return $this->response(function () use ($token) { |
|
| 98 | + return $this->response(function() use ($token) { |
|
| 99 | 99 | return ['share' => $this->shareService->get($token)]; |
| 100 | 100 | }); |
| 101 | 101 | } |
@@ -109,7 +109,7 @@ discard block |
||
| 109 | 109 | * @return DataResponse |
| 110 | 110 | */ |
| 111 | 111 | public function add($pollId, $type, $userId = '') { |
| 112 | - return $this->responseCreate(function () use ($pollId, $type, $userId) { |
|
| 112 | + return $this->responseCreate(function() use ($pollId, $type, $userId) { |
|
| 113 | 113 | return ['share' => $this->shareService->add($pollId, $type, $userId)]; |
| 114 | 114 | }); |
| 115 | 115 | } |
@@ -126,7 +126,7 @@ discard block |
||
| 126 | 126 | * @return DataResponse |
| 127 | 127 | */ |
| 128 | 128 | public function setEmailAddress($token, $emailAddress) { |
| 129 | - return $this->response(function () use ($token, $emailAddress) { |
|
| 129 | + return $this->response(function() use ($token, $emailAddress) { |
|
| 130 | 130 | return ['share' => $this->shareService->setEmailAddress($token, $emailAddress)]; |
| 131 | 131 | }); |
| 132 | 132 | } |
@@ -141,7 +141,7 @@ discard block |
||
| 141 | 141 | * @return DataResponse |
| 142 | 142 | */ |
| 143 | 143 | public function personal($token, $userName, $emailAddress = '') { |
| 144 | - return $this->responseCreate(function () use ($token, $userName, $emailAddress) { |
|
| 144 | + return $this->responseCreate(function() use ($token, $userName, $emailAddress) { |
|
| 145 | 145 | return ['share' => $this->shareService->personal($token, $userName, $emailAddress)]; |
| 146 | 146 | }); |
| 147 | 147 | } |
@@ -154,7 +154,7 @@ discard block |
||
| 154 | 154 | */ |
| 155 | 155 | |
| 156 | 156 | public function delete($token) { |
| 157 | - return $this->responseDeleteTolerant(function () use ($token) { |
|
| 157 | + return $this->responseDeleteTolerant(function() use ($token) { |
|
| 158 | 158 | return ['share' => $this->shareService->delete($token)]; |
| 159 | 159 | }); |
| 160 | 160 | } |
@@ -167,7 +167,7 @@ discard block |
||
| 167 | 167 | * @return DataResponse |
| 168 | 168 | */ |
| 169 | 169 | public function sendInvitation($token) { |
| 170 | - return $this->response(function () use ($token) { |
|
| 170 | + return $this->response(function() use ($token) { |
|
| 171 | 171 | $share = $this->shareService->get($token); |
| 172 | 172 | if ($share->getType() === Share::TYPE_USER) { |
| 173 | 173 | $this->notificationService->sendInvitation($share->getPollId(), $share->getUserId()); |
@@ -189,7 +189,7 @@ discard block |
||
| 189 | 189 | * @return DataResponse |
| 190 | 190 | */ |
| 191 | 191 | public function resolveGroup($token) { |
| 192 | - return $this->response(function () use ($token) { |
|
| 192 | + return $this->response(function() use ($token) { |
|
| 193 | 193 | $shares = []; |
| 194 | 194 | $share = $this->shareService->get($token); |
| 195 | 195 | 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 [ |