Completed
Push — federated-circles ( 2a3998...f4a386 )
by Maxence
02:39
created
lib/Service/FederatedService.php 2 patches
Doc Comments   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -164,8 +164,8 @@  discard block
 block discarded – undo
164 164
 	 * in the database and send a request to the remote circle using requestLink()
165 165
 	 * If any issue, entry is removed from the database.
166 166
 	 *
167
-	 * @param $circleId
168
-	 * @param $remote
167
+	 * @param integer $circleId
168
+	 * @param string $remote
169 169
 	 *
170 170
 	 * @return FederatedLink
171 171
 	 * @throws Exception
@@ -235,7 +235,7 @@  discard block
 block discarded – undo
235 235
 	 * @param Circle $circle
236 236
 	 * @param FederatedLink $link
237 237
 	 *
238
-	 * @return int
238
+	 * @return boolean
239 239
 	 * @throws Exception
240 240
 	 */
241 241
 	private function requestLink(Circle $circle, FederatedLink &$link) {
@@ -328,8 +328,8 @@  discard block
 block discarded – undo
328 328
 
329 329
 
330 330
 	/**
331
-	 * @param $circleId
332
-	 * @param $uniqueId
331
+	 * @param integer $circleId
332
+	 * @param string $uniqueId
333 333
 	 *
334 334
 	 * @return FederatedLink
335 335
 	 */
@@ -339,7 +339,7 @@  discard block
 block discarded – undo
339 339
 
340 340
 
341 341
 	/**
342
-	 * @param $circleId
342
+	 * @param integer $circleId
343 343
 	 *
344 344
 	 * @return FederatedLink[]
345 345
 	 */
@@ -349,7 +349,7 @@  discard block
 block discarded – undo
349 349
 
350 350
 
351 351
 	/**
352
-	 * @param $uniqueId
352
+	 * @param string $uniqueId
353 353
 	 *
354 354
 	 * @return bool
355 355
 	 * @throws Exception
Please login to merge, or discard this patch.
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -208,10 +208,10 @@  discard block
 block discarded – undo
208 208
 	 */
209 209
 	private function generateLinkRemoteURL($remote) {
210 210
 		if (strpos($remote, 'http') !== 0) {
211
-			$remote = 'https://' . $remote;
211
+			$remote = 'https://'.$remote;
212 212
 		}
213 213
 
214
-		return rtrim($remote, '/') . '/index.php/apps/circles/circles/link/';
214
+		return rtrim($remote, '/').'/index.php/apps/circles/circles/link/';
215 215
 	}
216 216
 
217 217
 	/**
@@ -221,10 +221,10 @@  discard block
 block discarded – undo
221 221
 	 */
222 222
 	private function generatePayloadDeliveryURL($remote) {
223 223
 		if (strpos($remote, 'http') !== 0) {
224
-			$remote = 'http://' . $remote;
224
+			$remote = 'http://'.$remote;
225 225
 		}
226 226
 
227
-		return rtrim($remote, '/') . '/index.php/apps/circles/circles/payload/';
227
+		return rtrim($remote, '/').'/index.php/apps/circles/circles/payload/';
228 228
 	}
229 229
 
230 230
 
@@ -238,7 +238,7 @@  discard block
 block discarded – undo
238 238
 	 * @return int
239 239
 	 * @throws Exception
240 240
 	 */
241
-	private function requestLink(Circle $circle, FederatedLink &$link) {
241
+	private function requestLink(Circle $circle, FederatedLink & $link) {
242 242
 		$args = [
243 243
 			'token'      => $link->getToken(),
244 244
 			'uniqueId'   => $circle->getUniqueId(),
@@ -313,7 +313,7 @@  discard block
 block discarded – undo
313 313
 	 *
314 314
 	 * @return bool
315 315
 	 */
316
-	public function initiateLink(Circle $circle, FederatedLink &$link) {
316
+	public function initiateLink(Circle $circle, FederatedLink & $link) {
317 317
 
318 318
 		$link->setCircleId($circle->getId());
319 319
 
@@ -371,7 +371,7 @@  discard block
 block discarded – undo
371 371
 
372 372
 			$result = json_decode($request->getBody(), true);
373 373
 			$this->miscService->log(
374
-				"initiateRemoteShare result: " . $uniqueId . '  ----  ' . var_export($result, true)
374
+				"initiateRemoteShare result: ".$uniqueId.'  ----  '.var_export($result, true)
375 375
 			);
376 376
 
377 377
 			return true;
Please login to merge, or discard this patch.
lib/Controller/FederatedController.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -174,7 +174,7 @@  discard block
 block discarded – undo
174 174
 
175 175
 		$frame = SharingFrame::fromJSON($item);
176 176
 		$this->miscService->log(
177
-			"receiveFederatedDelivery start " . $token . '   ' . $uniqueId . '    ' . $item . '   '
177
+			"receiveFederatedDelivery start ".$token.'   '.$uniqueId.'    '.$item.'   '
178 178
 			. var_export($frame, true)
179 179
 		);
180 180
 
@@ -202,7 +202,7 @@  discard block
 block discarded – undo
202 202
 		ob_start();
203 203
 		echo($result);
204 204
 		$size = ob_get_length();
205
-		header('Content-Length: ' . $size);
205
+		header('Content-Length: '.$size);
206 206
 		ob_end_flush();
207 207
 		flush();
208 208
 	}
Please login to merge, or discard this patch.