@@ -129,7 +129,7 @@ |
||
| 129 | 129 | * |
| 130 | 130 | * @param SharingFrame $frame |
| 131 | 131 | * @param Circle $circle |
| 132 | - * @param $broadcast |
|
| 132 | + * @param string|null $broadcast |
|
| 133 | 133 | */ |
| 134 | 134 | private function generateHeaders(SharingFrame $frame, Circle $circle, $broadcast) { |
| 135 | 135 | |
@@ -189,7 +189,7 @@ discard block |
||
| 189 | 189 | * @return bool |
| 190 | 190 | * @throws Exception |
| 191 | 191 | */ |
| 192 | - public function receiveFrame($token, $uniqueId, SharingFrame &$frame) { |
|
| 192 | + public function receiveFrame($token, $uniqueId, SharingFrame & $frame) { |
|
| 193 | 193 | try { |
| 194 | 194 | $link = $this->circlesRequest->getLinkFromToken((string)$token, (string)$uniqueId); |
| 195 | 195 | } catch (Exception $e) { |
@@ -251,7 +251,7 @@ discard block |
||
| 251 | 251 | * @return string |
| 252 | 252 | */ |
| 253 | 253 | private function generatePayloadDeliveryURL($remote) { |
| 254 | - return $this->configService->generateRemoteHost($remote) . Application::REMOTE_URL_PAYLOAD; |
|
| 254 | + return $this->configService->generateRemoteHost($remote).Application::REMOTE_URL_PAYLOAD; |
|
| 255 | 255 | } |
| 256 | 256 | |
| 257 | 257 | |
@@ -325,7 +325,7 @@ discard block |
||
| 325 | 325 | |
| 326 | 326 | } catch (Exception $e) { |
| 327 | 327 | $this->miscService->log( |
| 328 | - 'fail to send frame to ' . $link->getAddress() . ' - ' . $e->getMessage() |
|
| 328 | + 'fail to send frame to '.$link->getAddress().' - '.$e->getMessage() |
|
| 329 | 329 | ); |
| 330 | 330 | } |
| 331 | 331 | } |
@@ -294,7 +294,7 @@ discard block |
||
| 294 | 294 | * @return string |
| 295 | 295 | */ |
| 296 | 296 | private function generateLinkRemoteURL($remote) { |
| 297 | - return $this->configService->generateRemoteHost($remote) . Application::REMOTE_URL_LINK; |
|
| 297 | + return $this->configService->generateRemoteHost($remote).Application::REMOTE_URL_LINK; |
|
| 298 | 298 | } |
| 299 | 299 | |
| 300 | 300 | |
@@ -308,7 +308,7 @@ discard block |
||
| 308 | 308 | * @return boolean |
| 309 | 309 | * @throws Exception |
| 310 | 310 | */ |
| 311 | - private function requestLink(Circle $circle, FederatedLink &$link) { |
|
| 311 | + private function requestLink(Circle $circle, FederatedLink & $link) { |
|
| 312 | 312 | $args = [ |
| 313 | 313 | 'apiVersion' => Circles::version(), |
| 314 | 314 | 'token' => $link->getToken(true), |
@@ -565,7 +565,7 @@ discard block |
||
| 565 | 565 | * @return bool |
| 566 | 566 | * @throws Exception |
| 567 | 567 | */ |
| 568 | - public function updateLinkRemote(FederatedLink &$link) { |
|
| 568 | + public function updateLinkRemote(FederatedLink & $link) { |
|
| 569 | 569 | $args = [ |
| 570 | 570 | 'apiVersion' => Circles::version(), |
| 571 | 571 | 'token' => $link->getToken(true), |
@@ -603,7 +603,7 @@ discard block |
||
| 603 | 603 | * |
| 604 | 604 | * @throws Exception |
| 605 | 605 | */ |
| 606 | - public function initiateLink(Circle $circle, FederatedLink &$link) { |
|
| 606 | + public function initiateLink(Circle $circle, FederatedLink & $link) { |
|
| 607 | 607 | |
| 608 | 608 | try { |
| 609 | 609 | $this->checkLinkRequestValidity($circle, $link); |
@@ -184,7 +184,7 @@ |
||
| 184 | 184 | if ((!$this->isNonSSLLinksAllowed() || strpos($remote, 'http://') !== 0) |
| 185 | 185 | && strpos($remote, 'https://') !== 0 |
| 186 | 186 | ) { |
| 187 | - $remote = 'https://' . $remote; |
|
| 187 | + $remote = 'https://'.$remote; |
|
| 188 | 188 | } |
| 189 | 189 | |
| 190 | 190 | return rtrim($remote, '/'); |