@@ -148,7 +148,7 @@ |
||
| 148 | 148 | continue; |
| 149 | 149 | } |
| 150 | 150 | |
| 151 | - $level = (int) $row['role'] === 1 ? Member::LEVEL_OWNER : Member::LEVEL_MEMBER; |
|
| 151 | + $level = (int)$row['role'] === 1 ? Member::LEVEL_OWNER : Member::LEVEL_MEMBER; |
|
| 152 | 152 | |
| 153 | 153 | if ($level === Member::LEVEL_OWNER) { |
| 154 | 154 | if (isset($this->circleHasAdmin[$this->circlesById[$row['group_id']]])) { |
@@ -149,8 +149,8 @@ discard block |
||
| 149 | 149 | |
| 150 | 150 | |
| 151 | 151 | /** |
| 152 | - * @param $circleId |
|
| 153 | - * @param $remote |
|
| 152 | + * @param integer $circleId |
|
| 153 | + * @param string $remote |
|
| 154 | 154 | * |
| 155 | 155 | * @return FederatedLink |
| 156 | 156 | * @throws Exception |
@@ -203,7 +203,7 @@ discard block |
||
| 203 | 203 | /** |
| 204 | 204 | * @param FederatedLink $link |
| 205 | 205 | * |
| 206 | - * @return int |
|
| 206 | + * @return boolean |
|
| 207 | 207 | * @throws Exception |
| 208 | 208 | */ |
| 209 | 209 | private function requestLink(FederatedLink &$link) { |
@@ -193,10 +193,10 @@ discard block |
||
| 193 | 193 | */ |
| 194 | 194 | private function generateLinkRemoteURL($remote) { |
| 195 | 195 | if (strpos($remote, 'http') !== 0) { |
| 196 | - $remote = 'https://' . $remote; |
|
| 196 | + $remote = 'https://'.$remote; |
|
| 197 | 197 | } |
| 198 | 198 | |
| 199 | - return rtrim($remote, '/') . '/index.php/apps/circles/circles/link/'; |
|
| 199 | + return rtrim($remote, '/').'/index.php/apps/circles/circles/link/'; |
|
| 200 | 200 | } |
| 201 | 201 | |
| 202 | 202 | |
@@ -206,7 +206,7 @@ discard block |
||
| 206 | 206 | * @return int |
| 207 | 207 | * @throws Exception |
| 208 | 208 | */ |
| 209 | - private function requestLink(FederatedLink &$link) { |
|
| 209 | + private function requestLink(FederatedLink & $link) { |
|
| 210 | 210 | $args = [ |
| 211 | 211 | 'token' => $link->getToken(), |
| 212 | 212 | 'sourceName' => $link->getCircleName(), |
@@ -268,7 +268,7 @@ discard block |
||
| 268 | 268 | * |
| 269 | 269 | * @return bool |
| 270 | 270 | */ |
| 271 | - public function initiateLink(Circle $circle, FederatedLink &$link) { |
|
| 271 | + public function initiateLink(Circle $circle, FederatedLink & $link) { |
|
| 272 | 272 | |
| 273 | 273 | $link->setCircleId($circle->getId()); |
| 274 | 274 | |
@@ -73,7 +73,7 @@ |
||
| 73 | 73 | |
| 74 | 74 | public function delete(FederatedLink $link) { |
| 75 | 75 | |
| 76 | - $this->miscService->log("DELETRE !! " . var_export($link, true)); |
|
| 76 | + $this->miscService->log("DELETRE !! ".var_export($link, true)); |
|
| 77 | 77 | if ($link === null) { |
| 78 | 78 | return; |
| 79 | 79 | } |