Completed
Push — federated-circles ( ec0d47...dba84e )
by Maxence
02:42
created
lib/Migration/ImportOwncloudCustomGroups.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -148,7 +148,7 @@
 block discarded – undo
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']]])) {
Please login to merge, or discard this patch.
lib/Service/FederatedService.php 2 patches
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -149,8 +149,8 @@  discard block
 block discarded – undo
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
 block discarded – undo
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) {
Please login to merge, or discard this patch.
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -193,10 +193,10 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 
Please login to merge, or discard this patch.
lib/Db/FederatedLinksRequest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -73,7 +73,7 @@
 block discarded – undo
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
 		}
Please login to merge, or discard this patch.