@@ -211,10 +211,10 @@ discard block |
||
| 211 | 211 | */ |
| 212 | 212 | private function generateLinkRemoteURL($remote) { |
| 213 | 213 | if (strpos($remote, 'https') !== 0) { |
| 214 | - $remote = 'https://' . $remote; |
|
| 214 | + $remote = 'https://'.$remote; |
|
| 215 | 215 | } |
| 216 | 216 | |
| 217 | - return rtrim($remote, '/') . '/index.php/apps/circles/circles/link/'; |
|
| 217 | + return rtrim($remote, '/').'/index.php/apps/circles/circles/link/'; |
|
| 218 | 218 | } |
| 219 | 219 | |
| 220 | 220 | /** |
@@ -224,10 +224,10 @@ discard block |
||
| 224 | 224 | */ |
| 225 | 225 | private function generatePayloadDeliveryURL($remote) { |
| 226 | 226 | if (strpos($remote, 'https') !== 0) { |
| 227 | - $remote = 'https://' . $remote; |
|
| 227 | + $remote = 'https://'.$remote; |
|
| 228 | 228 | } |
| 229 | 229 | |
| 230 | - return rtrim($remote, '/') . '/index.php/apps/circles/circles/payload/'; |
|
| 230 | + return rtrim($remote, '/').'/index.php/apps/circles/circles/payload/'; |
|
| 231 | 231 | } |
| 232 | 232 | |
| 233 | 233 | |
@@ -241,7 +241,7 @@ discard block |
||
| 241 | 241 | * @return int |
| 242 | 242 | * @throws Exception |
| 243 | 243 | */ |
| 244 | - private function requestLink(Circle $circle, FederatedLink &$link) { |
|
| 244 | + private function requestLink(Circle $circle, FederatedLink & $link) { |
|
| 245 | 245 | $args = [ |
| 246 | 246 | 'token' => $link->getToken(), |
| 247 | 247 | 'uniqueId' => $circle->getUniqueId(), |
@@ -316,7 +316,7 @@ discard block |
||
| 316 | 316 | * |
| 317 | 317 | * @return bool |
| 318 | 318 | */ |
| 319 | - public function initiateLink(Circle $circle, FederatedLink &$link) { |
|
| 319 | + public function initiateLink(Circle $circle, FederatedLink & $link) { |
|
| 320 | 320 | |
| 321 | 321 | $link->setCircleId($circle->getId()); |
| 322 | 322 | |
@@ -338,7 +338,7 @@ discard block |
||
| 338 | 338 | * @return bool |
| 339 | 339 | * @throws Exception |
| 340 | 340 | */ |
| 341 | - public function receiveFrame($token, $uniqueId, SharingFrame &$frame) { |
|
| 341 | + public function receiveFrame($token, $uniqueId, SharingFrame & $frame) { |
|
| 342 | 342 | |
| 343 | 343 | $link = $this->circlesRequest->getLinkFromToken((string)$token, (string)$uniqueId); |
| 344 | 344 | if ($link === null) { |
@@ -413,7 +413,7 @@ discard block |
||
| 413 | 413 | |
| 414 | 414 | $result = json_decode($request->getBody(), true); |
| 415 | 415 | $this->miscService->log( |
| 416 | - "initiateRemoteShare result: " . $uniqueId . ' ---- ' . var_export($result, true) |
|
| 416 | + "initiateRemoteShare result: ".$uniqueId.' ---- '.var_export($result, true) |
|
| 417 | 417 | ); |
| 418 | 418 | |
| 419 | 419 | return true; |
@@ -74,7 +74,7 @@ discard block |
||
| 74 | 74 | FederatedService $federatedService, |
| 75 | 75 | MiscService $miscService |
| 76 | 76 | ) { |
| 77 | - $this->userId = (string) $userId; |
|
| 77 | + $this->userId = (string)$userId; |
|
| 78 | 78 | $this->configService = $configService; |
| 79 | 79 | $this->circlesRequest = $circlesRequest; |
| 80 | 80 | $this->broadcastService = $broadcastService; |
@@ -107,7 +107,7 @@ discard block |
||
| 107 | 107 | $frame->setAuthor($this->userId); |
| 108 | 108 | $frame->setHeader('author', $this->userId); |
| 109 | 109 | $frame->setHeader('circleName', $circle->getName()); |
| 110 | - $frame->setHeader('broadcast', (string) $broadcast); |
|
| 110 | + $frame->setHeader('broadcast', (string)$broadcast); |
|
| 111 | 111 | $frame->generateUniqueId(); |
| 112 | 112 | $frame->setCircleName($circle->getName()); |
| 113 | 113 | |
@@ -132,7 +132,7 @@ discard block |
||
| 132 | 132 | return null; |
| 133 | 133 | } |
| 134 | 134 | |
| 135 | - return $this->circlesRequest->getFrame((int) $circleId, (string) $uniqueId); |
|
| 135 | + return $this->circlesRequest->getFrame((int)$circleId, (string)$uniqueId); |
|
| 136 | 136 | } |
| 137 | 137 | |
| 138 | 138 | |
@@ -63,7 +63,7 @@ discard block |
||
| 63 | 63 | CirclesRequest $circlesRequest, |
| 64 | 64 | MiscService $miscService |
| 65 | 65 | ) { |
| 66 | - $this->userId = (string) $userId; |
|
| 66 | + $this->userId = (string)$userId; |
|
| 67 | 67 | $this->configService = $configService; |
| 68 | 68 | $this->circlesRequest = $circlesRequest; |
| 69 | 69 | $this->miscService = $miscService; |
@@ -86,7 +86,7 @@ discard block |
||
| 86 | 86 | return; |
| 87 | 87 | } |
| 88 | 88 | |
| 89 | - $broadcaster = \OC::$server->query((string) $broadcast); |
|
| 89 | + $broadcaster = \OC::$server->query((string)$broadcast); |
|
| 90 | 90 | if (!($broadcaster instanceof IBroadcaster)) { |
| 91 | 91 | throw new BroadcasterIsNotCompatible(); |
| 92 | 92 | } |