Completed
Pull Request — master (#842)
by Joas
40s
created
lib/Command/CirclesMaintenance.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -117,7 +117,7 @@  discard block
 block discarded – undo
117 117
 				'<error>WARNING! You are about to delete all data related to the Circles App!</error>'
118 118
 			);
119 119
 			$question = new ConfirmationQuestion(
120
-				'<comment>Do you really want to ' . $action . ' Circles ?</comment> (y/N) ', false,
120
+				'<comment>Do you really want to '.$action.' Circles ?</comment> (y/N) ', false,
121 121
 				'/^(y|Y)/i'
122 122
 			);
123 123
 
@@ -132,7 +132,7 @@  discard block
 block discarded – undo
132 132
 			$output->writeln('<error>WARNING! This operation is not reversible.</error>');
133 133
 
134 134
 			$question = new Question(
135
-				'<comment>Please confirm this destructive operation by typing \'' . $action
135
+				'<comment>Please confirm this destructive operation by typing \''.$action
136 136
 				. '\'</comment>: ', ''
137 137
 			);
138 138
 
@@ -149,7 +149,7 @@  discard block
 block discarded – undo
149 149
 				$this->coreRequestBuilder->uninstall();
150 150
 			}
151 151
 
152
-			$output->writeln('<info>' . $action . ' done</info>');
152
+			$output->writeln('<info>'.$action.' done</info>');
153 153
 
154 154
 			return 0;
155 155
 		}
Please login to merge, or discard this patch.
lib/Model/Federated/RemoteInstance.php 1 patch
Spacing   +14 added lines, -14 removed lines patch added patch discarded remove patch
@@ -46,11 +46,11 @@  discard block
 block discarded – undo
46 46
 class RemoteInstance extends NC22Signatory implements INC22QueryRow, JsonSerializable {
47 47
 	use TArrayTools;
48 48
 
49
-	public const TYPE_UNKNOWN = 'Unknown';    // not trusted
50
-	public const TYPE_PASSIVE = 'Passive';    // Minimum information about Federated Circles are broadcasted if a member belongs to the circle.
51
-	public const TYPE_EXTERNAL = 'External';  // info about Federated Circles and their members are broadcasted  if a member belongs to the circle.
52
-	public const TYPE_TRUSTED = 'Trusted';    // everything about Federated Circles are broadcasted.
53
-	public const TYPE_GLOBALSCALE = 'GlobalScale';  // every Circle is broadcasted,
49
+	public const TYPE_UNKNOWN = 'Unknown'; // not trusted
50
+	public const TYPE_PASSIVE = 'Passive'; // Minimum information about Federated Circles are broadcasted if a member belongs to the circle.
51
+	public const TYPE_EXTERNAL = 'External'; // info about Federated Circles and their members are broadcasted  if a member belongs to the circle.
52
+	public const TYPE_TRUSTED = 'Trusted'; // everything about Federated Circles are broadcasted.
53
+	public const TYPE_GLOBALSCALE = 'GlobalScale'; // every Circle is broadcasted,
54 54
 
55 55
 	public static $LIST_TYPE = [
56 56
 		self::TYPE_UNKNOWN,
@@ -526,7 +526,7 @@  discard block
 block discarded – undo
526 526
 		];
527 527
 
528 528
 		if ($this->getAuthSigned() !== '') {
529
-			$data[self::AUTH_SIGNED] = $this->getAlgorithm() . ':' . $this->getAuthSigned();
529
+			$data[self::AUTH_SIGNED] = $this->getAlgorithm().':'.$this->getAuthSigned();
530 530
 		}
531 531
 
532 532
 		if (!empty($this->getAliases())) {
@@ -545,17 +545,17 @@  discard block
 block discarded – undo
545 545
 	 * @throws RemoteNotFoundException
546 546
 	 */
547 547
 	public function importFromDatabase(array $data, string $prefix = ''): INC22QueryRow {
548
-		if ($this->getInt($prefix . 'id', $data) === 0) {
548
+		if ($this->getInt($prefix.'id', $data) === 0) {
549 549
 			throw new RemoteNotFoundException();
550 550
 		}
551 551
 
552
-		$this->setDbId($this->getInt($prefix . 'id', $data));
553
-		$this->import($this->getArray($prefix . 'item', $data));
554
-		$this->setOrigData($this->getArray($prefix . 'item', $data));
555
-		$this->setType($this->get($prefix . 'type', $data));
556
-		$this->setInterface($this->getInt($prefix . 'interface', $data));
557
-		$this->setInstance($this->get($prefix . 'instance', $data));
558
-		$this->setId($this->get($prefix . 'href', $data));
552
+		$this->setDbId($this->getInt($prefix.'id', $data));
553
+		$this->import($this->getArray($prefix.'item', $data));
554
+		$this->setOrigData($this->getArray($prefix.'item', $data));
555
+		$this->setType($this->get($prefix.'type', $data));
556
+		$this->setInterface($this->getInt($prefix.'interface', $data));
557
+		$this->setInstance($this->get($prefix.'instance', $data));
558
+		$this->setId($this->get($prefix.'href', $data));
559 559
 
560 560
 		return $this;
561 561
 	}
Please login to merge, or discard this patch.