Completed
Push — federated-circles ( 915d64...66c054 )
by Maxence
03:31
created
lib/Service/FederatedService.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -105,7 +105,7 @@
 block discarded – undo
105 105
 	 * @param int $circleId
106 106
 	 * @param string $link
107 107
 	 *
108
-	 * @return bool
108
+	 * @return integer
109 109
 	 * @throws Exception
110 110
 	 * @throws FederatedCircleLinkFormatException
111 111
 	 * @throws CircleTypeNotValid
Please login to merge, or discard this patch.
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -146,10 +146,10 @@  discard block
 block discarded – undo
146 146
 	 */
147 147
 	private function generateLinkRemoteURL($remote) {
148 148
 		if (strpos($remote, 'http') !== 0) {
149
-			$remote = 'https://' . $remote;
149
+			$remote = 'https://'.$remote;
150 150
 		}
151 151
 
152
-		return rtrim($remote, '/') . '/ocs/v2.php/apps/circles/api/v2/link/';
152
+		return rtrim($remote, '/').'/ocs/v2.php/apps/circles/api/v2/link/';
153 153
 	}
154 154
 
155 155
 
@@ -163,7 +163,7 @@  discard block
 block discarded – undo
163 163
 	 */
164 164
 	private function requestLinkWithCircle(Circle $circle, $remoteAddress, $remoteCircle) {
165 165
 		$this->miscService->log(
166
-			"create link : " . $remoteCircle . ' - ' . $remoteAddress . ' - ' . $circle->getId()
166
+			"create link : ".$remoteCircle.' - '.$remoteAddress.' - '.$circle->getId()
167 167
 		);
168 168
 
169 169
 		$args = ['circleName' => $remoteCircle];
@@ -177,7 +177,7 @@  discard block
 block discarded – undo
177 177
 																'connect_timeout' => 10,
178 178
 															]
179 179
 			);
180
-			$this->miscService->log("RESULT: " . var_export($toto, true));
180
+			$this->miscService->log("RESULT: ".var_export($toto, true));
181 181
 
182 182
 			return 1;
183 183
 		} catch (ClientException $e) {
Please login to merge, or discard this patch.