Completed
Pull Request — master (#866)
by Maxence
01:22
created
lib/Service/ConfigService.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -230,7 +230,7 @@  discard block
 block discarded – undo
230 230
 			return $value;
231 231
 		}
232 232
 
233
-		if (($value = $this->config->getSystemValue(Application::APP_ID . '.' . $key, '')) !== '') {
233
+		if (($value = $this->config->getSystemValue(Application::APP_ID.'.'.$key, '')) !== '') {
234 234
 			return $value;
235 235
 		}
236 236
 
@@ -449,7 +449,7 @@  discard block
 block discarded – undo
449 449
 	 */
450 450
 	public function getTrustedDomains(): array {
451 451
 		return array_map(
452
-			function (string $address) {
452
+			function(string $address) {
453 453
 				return strtolower($address);
454 454
 			}, $this->config->getSystemValue('trusted_domains', [])
455 455
 		);
@@ -485,7 +485,7 @@  discard block
 block discarded – undo
485 485
 		}
486 486
 
487 487
 		if (array_key_exists('port', $loopback)) {
488
-			$loopbackCloudId = $loopback['host'] . ':' . $loopback['port'];
488
+			$loopbackCloudId = $loopback['host'].':'.$loopback['port'];
489 489
 		} else {
490 490
 			$loopbackCloudId = $loopback['host'];
491 491
 		}
@@ -524,13 +524,13 @@  discard block
 block discarded – undo
524 524
 			$path = $this->getAppValue(self::LOOPBACK_CLOUD_PATH);
525 525
 		}
526 526
 
527
-		$base = $scheme . '://' . $instance . $path;
527
+		$base = $scheme.'://'.$instance.$path;
528 528
 
529 529
 		if ($route === '') {
530 530
 			return $base;
531 531
 		}
532 532
 
533
-		return rtrim($base, '/') . $this->linkToRoute($route, $args);
533
+		return rtrim($base, '/').$this->linkToRoute($route, $args);
534 534
 	}
535 535
 
536 536
 
@@ -631,13 +631,13 @@  discard block
 block discarded – undo
631 631
 		$name = ($displayName) ? $federatedUser->getDisplayName() : $federatedUser->getUserId();
632 632
 
633 633
 		if ($federatedUser->getUserType() === Member::TYPE_MAIL) {
634
-			return $name . ' ' . $this->displayInstance(
634
+			return $name.' '.$this->displayInstance(
635 635
 					$federatedUser->getInstance(),
636 636
 					self::DISPLAY_PARENTHESIS
637 637
 				);
638 638
 		}
639 639
 
640
-		return $name . $this->displayInstance($federatedUser->getInstance(), self::DISPLAY_AT);
640
+		return $name.$this->displayInstance($federatedUser->getInstance(), self::DISPLAY_AT);
641 641
 	}
642 642
 
643 643
 	/**
@@ -653,9 +653,9 @@  discard block
 block discarded – undo
653 653
 
654 654
 		switch ($type) {
655 655
 			case self::DISPLAY_AT:
656
-				return '@' . $instance;
656
+				return '@'.$instance;
657 657
 			case self::DISPLAY_PARENTHESIS:
658
-				return '(' . $instance . ')';
658
+				return '('.$instance.')';
659 659
 		}
660 660
 
661 661
 		return $instance;
Please login to merge, or discard this patch.
lib/Model/ShareToken.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -281,17 +281,17 @@
 block discarded – undo
281 281
 	 * @throws ShareTokenNotFoundException
282 282
 	 */
283 283
 	public function importFromDatabase(array $data, string $prefix = ''): INC22QueryRow {
284
-		if ($this->get($prefix . 'token', $data) === '') {
284
+		if ($this->get($prefix.'token', $data) === '') {
285 285
 			throw new ShareTokenNotFoundException();
286 286
 		}
287 287
 
288
-		$this->setShareId($this->getInt($prefix . 'share_id', $data));
289
-		$this->setCircleId($this->get($prefix . 'circle_id', $data));
290
-		$this->setSingleId($this->get($prefix . 'single_id', $data));
291
-		$this->setMemberId($this->get($prefix . 'member_id', $data));
292
-		$this->setToken($this->get($prefix . 'token', $data));
293
-		$this->setPassword($this->get($prefix . 'password', $data));
294
-		$this->setAccepted($this->getInt($prefix . 'accepted', $data, IShare::STATUS_PENDING));
288
+		$this->setShareId($this->getInt($prefix.'share_id', $data));
289
+		$this->setCircleId($this->get($prefix.'circle_id', $data));
290
+		$this->setSingleId($this->get($prefix.'single_id', $data));
291
+		$this->setMemberId($this->get($prefix.'member_id', $data));
292
+		$this->setToken($this->get($prefix.'token', $data));
293
+		$this->setPassword($this->get($prefix.'password', $data));
294
+		$this->setAccepted($this->getInt($prefix.'accepted', $data, IShare::STATUS_PENDING));
295 295
 
296 296
 		return $this;
297 297
 	}
Please login to merge, or discard this patch.
lib/Listeners/Files/CreatingShareSendMail.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -153,7 +153,7 @@
 block discarded – undo
153 153
 
154 154
 					$share->setShareToken($shareToken);
155 155
 				} catch (Exception $e) {
156
-					\OC::$server->getLogger()->log(3, '>>>> e ' . $e->getMessage() . '  ' . get_class($e));
156
+					\OC::$server->getLogger()->log(3, '>>>> e '.$e->getMessage().'  '.get_class($e));
157 157
 					$share = null;
158 158
 				}
159 159
 			}
Please login to merge, or discard this patch.