@@ -217,7 +217,7 @@ discard block |
||
| 217 | 217 | * @return string |
| 218 | 218 | */ |
| 219 | 219 | public function generateLinkRemoteURL($remote) { |
| 220 | - return $this->configService->generateRemoteHost($remote) . self::REMOTE_URL_LINK; |
|
| 220 | + return $this->configService->generateRemoteHost($remote).self::REMOTE_URL_LINK; |
|
| 221 | 221 | } |
| 222 | 222 | |
| 223 | 223 | |
@@ -322,7 +322,7 @@ discard block |
||
| 322 | 322 | * @return bool |
| 323 | 323 | * @throws Exception |
| 324 | 324 | */ |
| 325 | - private function updateLinkRemote(FederatedLink &$link) { |
|
| 325 | + private function updateLinkRemote(FederatedLink & $link) { |
|
| 326 | 326 | |
| 327 | 327 | try { |
| 328 | 328 | $client = $this->clientService->newClient(); |
@@ -378,7 +378,7 @@ discard block |
||
| 378 | 378 | * @param Circle $circle |
| 379 | 379 | * @param FederatedLink $link |
| 380 | 380 | */ |
| 381 | - private function checkUpdateLinkFromRemoteLinkRequestSent(Circle $circle, FederatedLink &$link) { |
|
| 381 | + private function checkUpdateLinkFromRemoteLinkRequestSent(Circle $circle, FederatedLink & $link) { |
|
| 382 | 382 | |
| 383 | 383 | if ($link->getStatus() !== FederatedLink::STATUS_REQUEST_SENT) { |
| 384 | 384 | return; |
@@ -393,7 +393,7 @@ discard block |
||
| 393 | 393 | * @param Circle $circle |
| 394 | 394 | * @param FederatedLink $link |
| 395 | 395 | */ |
| 396 | - private function checkUpdateLinkFromRemoteLinkRequested(Circle $circle, FederatedLink &$link) { |
|
| 396 | + private function checkUpdateLinkFromRemoteLinkRequested(Circle $circle, FederatedLink & $link) { |
|
| 397 | 397 | |
| 398 | 398 | if ($link->getStatus() !== FederatedLink::STATUS_LINK_REQUESTED) { |
| 399 | 399 | return; |
@@ -408,7 +408,7 @@ discard block |
||
| 408 | 408 | * @param Circle $circle |
| 409 | 409 | * @param FederatedLink $link |
| 410 | 410 | */ |
| 411 | - private function checkUpdateLinkFromRemoteLinkDown(Circle $circle, FederatedLink &$link) { |
|
| 411 | + private function checkUpdateLinkFromRemoteLinkDown(Circle $circle, FederatedLink & $link) { |
|
| 412 | 412 | |
| 413 | 413 | if ($link->getStatus() < FederatedLink::STATUS_LINK_DOWN) { |
| 414 | 414 | return; |
@@ -164,7 +164,7 @@ discard block |
||
| 164 | 164 | * |
| 165 | 165 | * @throws Exception |
| 166 | 166 | */ |
| 167 | - public function requestedLinkFromRemoteCircle(Circle $circle, FederatedLink &$link) { |
|
| 167 | + public function requestedLinkFromRemoteCircle(Circle $circle, FederatedLink & $link) { |
|
| 168 | 168 | |
| 169 | 169 | try { |
| 170 | 170 | $this->checkLinkRequestValidity($circle, $link); |
@@ -282,7 +282,7 @@ discard block |
||
| 282 | 282 | * @return boolean |
| 283 | 283 | * @throws Exception |
| 284 | 284 | */ |
| 285 | - private function forceRequestNewLink(Circle $circle, FederatedLink &$link) { |
|
| 285 | + private function forceRequestNewLink(Circle $circle, FederatedLink & $link) { |
|
| 286 | 286 | try { |
| 287 | 287 | $client = $this->clientService->newClient(); |
| 288 | 288 | $args = ['sourceName' => $circle->getName()]; |
@@ -317,7 +317,7 @@ discard block |
||
| 317 | 317 | * |
| 318 | 318 | * @throws Exception |
| 319 | 319 | */ |
| 320 | - private function eventOnRequestLink(Circle $circle, FederatedLink &$link, $status, $reason) { |
|
| 320 | + private function eventOnRequestLink(Circle $circle, FederatedLink & $link, $status, $reason) { |
|
| 321 | 321 | |
| 322 | 322 | switch ($status) { |
| 323 | 323 | case FederatedLink::STATUS_LINK_UP: |