Completed
Pull Request — master (#551)
by Maxence
02:09
created
lib/Db/MemberRequest.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -174,8 +174,8 @@
 block discarded – undo
174 174
 			$qb->limitToRemoteInstance($remoteInstance->getInstance(), true);
175 175
 		}
176 176
 
177
-		$qb->orderBy($qb->getDefaultSelectAlias() . '.level', 'desc');
178
-		$qb->addOrderBy($qb->getDefaultSelectAlias() . '.cached_name', 'asc');
177
+		$qb->orderBy($qb->getDefaultSelectAlias().'.level', 'desc');
178
+		$qb->addOrderBy($qb->getDefaultSelectAlias().'.cached_name', 'asc');
179 179
 
180 180
 		return $this->getItemsFromRequest($qb);
181 181
 	}
Please login to merge, or discard this patch.
lib/Command/CirclesConfig.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -182,8 +182,8 @@
 block discarded – undo
182 182
 			$value = array_search(strtoupper($item), $valid);
183 183
 			if (!$value) {
184 184
 				throw new InvalidArgumentException(
185
-					'Invalid config \'' . $item . '\'. Available values: '
186
-					. implode(', ', array_values($valid)) . '. '
185
+					'Invalid config \''.$item.'\'. Available values: '
186
+					. implode(', ', array_values($valid)).'. '
187 187
 					. 'To disable a config, start the value with an underscore'
188 188
 				);
189 189
 			}
Please login to merge, or discard this patch.
lib/FederatedItems/MemberAdd.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -164,15 +164,15 @@  discard block
 block discarded – undo
164 164
 		$initiatorHelper = new MemberHelper($initiator);
165 165
 		$initiatorHelper->mustBeModerator();
166 166
 
167
-		$federatedId = $member->getUserId() . '@' . $member->getInstance();
167
+		$federatedId = $member->getUserId().'@'.$member->getInstance();
168 168
 
169 169
 		try {
170 170
 			$federatedUser =
171 171
 				$this->federatedUserService->getFederatedUser($federatedId, $member->getUserType());
172 172
 		} catch (MemberNotFoundException $e) {
173 173
 			throw new MemberNotFoundException(
174
-				ucfirst(Member::$DEF_TYPE[$member->getUserType()]) . ' %s not found',
175
-				['member' => $member->getUserId() . '@' . $member->getInstance()]
174
+				ucfirst(Member::$DEF_TYPE[$member->getUserType()]).' %s not found',
175
+				['member' => $member->getUserId().'@'.$member->getInstance()]
176 176
 			);
177 177
 		}
178 178
 
@@ -182,8 +182,8 @@  discard block
 block discarded – undo
182 182
 			$knownMember = $this->memberRequest->searchMember($member);
183 183
 			// TODO: maybe member is requesting access
184 184
 			throw new MemberAlreadyExistsException(
185
-				ucfirst(Member::$DEF_TYPE[$member->getUserType()]) . ' %s is already a member',
186
-				['member' => $member->getUserId() . '@' . $member->getInstance()]
185
+				ucfirst(Member::$DEF_TYPE[$member->getUserType()]).' %s is already a member',
186
+				['member' => $member->getUserId().'@'.$member->getInstance()]
187 187
 			);
188 188
 		} catch (MemberNotFoundException $e) {
189 189
 		}
@@ -201,7 +201,7 @@  discard block
 block discarded – undo
201 201
 
202 202
 		// TODO: check if it is a member or a mail or a circle and fix the returned message
203 203
 		$event->setReadingOutcome(
204
-			ucfirst(Member::$DEF_TYPE[$member->getUserType()]) . ' ' . '\'%s\' have been added to Circle',
204
+			ucfirst(Member::$DEF_TYPE[$member->getUserType()]).' '.'\'%s\' have been added to Circle',
205 205
 			['userId' => $member->getUserId()]
206 206
 		);
207 207
 
@@ -501,7 +501,7 @@  discard block
 block discarded – undo
501 501
 			$this->sendMailExistingShares($template, $author, $recipient);
502 502
 			$this->sendPasswordExistingShares($author, $recipient, $password);
503 503
 		} catch (Exception $e) {
504
-			$this->miscService->log('Failed to send mail about existing share ' . $e->getMessage());
504
+			$this->miscService->log('Failed to send mail about existing share '.$e->getMessage());
505 505
 		}
506 506
 	}
507 507
 
@@ -653,7 +653,7 @@  discard block
 block discarded – undo
653 653
 		$authorName = ($authorUser instanceof IUser) ? $authorUser->getDisplayName() : $author;
654 654
 		$authorEmail = ($authorUser instanceof IUser) ? $authorUser->getEMailAddress() : null;
655 655
 
656
-		$this->miscService->log("Sending password mail about existing files to '" . $email . "'", 0);
656
+		$this->miscService->log("Sending password mail about existing files to '".$email."'", 0);
657 657
 
658 658
 		$plainBodyPart = $this->l10n->t(
659 659
 			"%1\$s shared multiple files with you.\nYou should have already received a separate mail with a link to access them.\n",
@@ -695,7 +695,7 @@  discard block
 block discarded – undo
695 695
 		$message->setFrom([\OCP\Util::getDefaultEmailAddress($instanceName) => $senderName]);
696 696
 		if ($authorEmail !== null) {
697 697
 			$message->setReplyTo([$authorEmail => $authorName]);
698
-			$emailTemplate->addFooter($instanceName . ' - ' . $this->defaults->getSlogan());
698
+			$emailTemplate->addFooter($instanceName.' - '.$this->defaults->getSlogan());
699 699
 		} else {
700 700
 			$emailTemplate->addFooter();
701 701
 		}
Please login to merge, or discard this patch.
lib/Service/ConfigService.php 2 patches
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -172,7 +172,7 @@  discard block
 block discarded – undo
172 172
 	/**
173 173
 	 * returns if this type of circle is allowed by the current configuration.
174 174
 	 *
175
-	 * @param $type
175
+	 * @param integer $type
176 176
 	 *
177 177
 	 * @return int
178 178
 	 */
@@ -509,7 +509,7 @@  discard block
 block discarded – undo
509 509
 	/**
510 510
 	 * @param string $type
511 511
 	 *
512
-	 * @return array|bool|mixed
512
+	 * @return string
513 513
 	 * @throws GSStatusException
514 514
 	 */
515 515
 	public function getGSStatus(string $type = '') {
Please login to merge, or discard this patch.
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -254,7 +254,7 @@  discard block
 block discarded – undo
254 254
 		if ((!$this->isNonSSLLinksAllowed() || strpos($remote, 'http://') !== 0)
255 255
 			&& strpos($remote, 'https://') !== 0
256 256
 		) {
257
-			$remote = 'https://' . $remote;
257
+			$remote = 'https://'.$remote;
258 258
 		}
259 259
 
260 260
 		return rtrim($remote, '/');
@@ -524,7 +524,7 @@  discard block
 block discarded – undo
524 524
 
525 525
 			if ($type !== self::GS_MOCKUP) {
526 526
 				throw new GSStatusException(
527
-					'GS and lookup are not configured : ' . $lookup . ', ' . $enabled
527
+					'GS and lookup are not configured : '.$lookup.', '.$enabled
528 528
 				);
529 529
 			}
530 530
 		}
@@ -593,7 +593,7 @@  discard block
 block discarded – undo
593 593
 			}
594 594
 
595 595
 			if (array_key_exists('port', $local)) {
596
-				return $local['host'] . ':' . $local['port'];
596
+				return $local['host'].':'.$local['port'];
597 597
 			} else {
598 598
 				return $local['host'];
599 599
 			}
@@ -615,13 +615,13 @@  discard block
 block discarded – undo
615 615
 	 * @return string
616 616
 	 */
617 617
 	public function getRemotePath(string $route = 'circles.Remote.appService', array $args = []): string {
618
-		$base = $this->getAppValue(self::LOCAL_CLOUD_SCHEME) . '://' . $this->getLocalInstance();
618
+		$base = $this->getAppValue(self::LOCAL_CLOUD_SCHEME).'://'.$this->getLocalInstance();
619 619
 
620 620
 		if ($route === '') {
621 621
 			return $base;
622 622
 		}
623 623
 
624
-		return $base . $this->urlGenerator->linkToRoute($route, $args);
624
+		return $base.$this->urlGenerator->linkToRoute($route, $args);
625 625
 	}
626 626
 
627 627
 	/**
@@ -724,7 +724,7 @@  discard block
 block discarded – undo
724 724
 			$ncBase = substr($ncBase, 0, -strlen($forcedPath));
725 725
 		}
726 726
 
727
-		return rtrim($ncBase, '/') . $link;
727
+		return rtrim($ncBase, '/').$link;
728 728
 	}
729 729
 
730 730
 }
Please login to merge, or discard this patch.
lib/Service/ShareService.php 1 patch
Doc Comments   -1 removed lines patch added patch discarded remove patch
@@ -64,7 +64,6 @@
 block discarded – undo
64 64
 
65 65
 	/**
66 66
 	 * @param Circle $circle
67
-	 * @param string $instance
68 67
 	 */
69 68
 	public function syncRemoteShares(Circle $circle) {
70 69
 		$event = new FederatedEvent(SharedItemsSync::class);
Please login to merge, or discard this patch.