Passed
Push — master ( 0ecef7...7d2f5a )
by Blizzz
13:12 queued 11s
created
core/Command/App/Disable.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -72,13 +72,13 @@
 block discarded – undo
72 72
 
73 73
 	private function disableApp(string $appId, OutputInterface $output): void {
74 74
 		if ($this->appManager->isInstalled($appId) === false) {
75
-			$output->writeln('No such app enabled: ' . $appId);
75
+			$output->writeln('No such app enabled: '.$appId);
76 76
 			return;
77 77
 		}
78 78
 
79 79
 		try {
80 80
 			$this->appManager->disableApp($appId);
81
-			$output->writeln($appId . ' disabled');
81
+			$output->writeln($appId.' disabled');
82 82
 		} catch (\Exception $e) {
83 83
 			$output->writeln($e->getMessage());
84 84
 			$this->exitCode = 2;
Please login to merge, or discard this patch.
core/Service/LoginFlowV2Service.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -211,7 +211,7 @@  discard block
 block discarded – undo
211 211
 
212 212
 	private function hashToken(string $token): string {
213 213
 		$secret = $this->config->getSystemValue('secret');
214
-		return hash('sha512', $token . $secret);
214
+		return hash('sha512', $token.$secret);
215 215
 	}
216 216
 
217 217
 	private function getKeyPair(): array {
@@ -241,7 +241,7 @@  discard block
 block discarded – undo
241 241
 		while ($error = openssl_error_string()) {
242 242
 			$errors[] = $error;
243 243
 		}
244
-		$this->logger->critical('Something is wrong with your openssl setup: ' . implode(', ', $errors));
244
+		$this->logger->critical('Something is wrong with your openssl setup: '.implode(', ', $errors));
245 245
 	}
246 246
 
247 247
 	private function encryptPassword(string $password, string $publicKey): string {
Please login to merge, or discard this patch.
lib/private/FullTextSearch/Model/IndexDocument.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -389,7 +389,7 @@
 block discarded – undo
389 389
 		foreach ($ak as $source) {
390 390
 			$tags = $this->subTags[$source];
391 391
 			foreach ($tags as $tag) {
392
-				$subTags[] = $source . '_' . $tag;
392
+				$subTags[] = $source.'_'.$tag;
393 393
 			}
394 394
 		}
395 395
 
Please login to merge, or discard this patch.
apps/twofactor_backupcodes/lib/Listener/ProviderDisabled.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -53,7 +53,7 @@
 block discarded – undo
53 53
 		$providers = $this->registry->getProviderStates($event->getUser());
54 54
 
55 55
 		// Loop over all providers. If all are disabled we remove the job
56
-		$state = array_reduce($providers, function (bool $carry, bool $enabled) {
56
+		$state = array_reduce($providers, function(bool $carry, bool $enabled) {
57 57
 			return $carry || $enabled;
58 58
 		}, false);
59 59
 
Please login to merge, or discard this patch.
lib/private/DB/QueryBuilder/ExpressionBuilder/PgSqlExpressionBuilder.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -39,9 +39,9 @@
 block discarded – undo
39 39
 	public function castColumn($column, $type) {
40 40
 		switch ($type) {
41 41
 			case IQueryBuilder::PARAM_INT:
42
-				return new QueryFunction('CAST(' . $this->helper->quoteColumnName($column) . ' AS INT)');
42
+				return new QueryFunction('CAST('.$this->helper->quoteColumnName($column).' AS INT)');
43 43
 			case IQueryBuilder::PARAM_STR:
44
-				return new QueryFunction('CAST(' . $this->helper->quoteColumnName($column) . ' AS TEXT)');
44
+				return new QueryFunction('CAST('.$this->helper->quoteColumnName($column).' AS TEXT)');
45 45
 			default:
46 46
 				return parent::castColumn($column, $type);
47 47
 		}
Please login to merge, or discard this patch.
apps/files_external/lib/Command/Notify.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -128,7 +128,7 @@  discard block
 block discarded – undo
128 128
 			return 1;
129 129
 		}
130 130
 		if (!$storage instanceof INotifyStorage) {
131
-			$output->writeln('<error>Mount of type "' . $mount->getBackend()->getText() . '" does not support active update notifications</error>');
131
+			$output->writeln('<error>Mount of type "'.$mount->getBackend()->getText().'" does not support active update notifications</error>');
132 132
 			return 1;
133 133
 		}
134 134
 
@@ -137,7 +137,7 @@  discard block
 block discarded – undo
137 137
 		$path = trim($input->getOption('path'), '/');
138 138
 		$notifyHandler = $storage->notify($path);
139 139
 		$this->selfTest($storage, $notifyHandler, $verbose, $output);
140
-		$notifyHandler->listen(function (IChange $change) use ($mount, $verbose, $output) {
140
+		$notifyHandler->listen(function(IChange $change) use ($mount, $verbose, $output) {
141 141
 			if ($verbose) {
142 142
 				$this->logUpdate($change, $output);
143 143
 			}
@@ -168,14 +168,14 @@  discard block
 block discarded – undo
168 168
 			$storageIds = $this->getStorageIds($mountId);
169 169
 		}
170 170
 		if (count($storageIds) === 0) {
171
-			throw new StorageNotAvailableException('No storages found by mount ID ' . $mountId);
171
+			throw new StorageNotAvailableException('No storages found by mount ID '.$mountId);
172 172
 		}
173 173
 		$storageIds = array_map('intval', $storageIds);
174 174
 
175 175
 		$result = $this->updateParent($storageIds, $parent);
176 176
 		if ($result === 0) {
177 177
 			//TODO: Find existing parent further up the tree in the database and register that folder instead.
178
-			$this->logger->info('Failed updating parent for "' . $path . '" while trying to register change. It may not exist in the filecache.');
178
+			$this->logger->info('Failed updating parent for "'.$path.'" while trying to register change. It may not exist in the filecache.');
179 179
 		}
180 180
 	}
181 181
 
@@ -197,9 +197,9 @@  discard block
 block discarded – undo
197 197
 				return;
198 198
 		}
199 199
 
200
-		$text .= ' ' . $change->getPath();
200
+		$text .= ' '.$change->getPath();
201 201
 		if ($change instanceof IRenameChange) {
202
-			$text .= ' to ' . $change->getTargetPath();
202
+			$text .= ' to '.$change->getTargetPath();
203 203
 		}
204 204
 
205 205
 		$output->writeln($text);
Please login to merge, or discard this patch.
lib/private/Collaboration/Resources/Manager.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -144,7 +144,7 @@  discard block
 block discarded – undo
144 144
 			->setFirstResult($start);
145 145
 
146 146
 		if ($filter !== '') {
147
-			$query->where($query->expr()->iLike('c.name', $query->createNamedParameter('%' . $this->connection->escapeLikeParameter($filter) . '%')));
147
+			$query->where($query->expr()->iLike('c.name', $query->createNamedParameter('%'.$this->connection->escapeLikeParameter($filter).'%')));
148 148
 		}
149 149
 
150 150
 		$result = $query->execute();
@@ -154,7 +154,7 @@  discard block
 block discarded – undo
154 154
 		while ($row = $result->fetch()) {
155 155
 			$foundResults++;
156 156
 			$access = $row['access'] === null ? null : (bool) $row['access'];
157
-			$collection = new Collection($this, $this->connection, (int)$row['id'], (string)$row['name'], $user, $access);
157
+			$collection = new Collection($this, $this->connection, (int) $row['id'], (string) $row['name'], $user, $access);
158 158
 			if ($collection->canAccess($user)) {
159 159
 				$collections[] = $collection;
160 160
 			}
Please login to merge, or discard this patch.
lib/public/AppFramework/Http/OCSResponse.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -57,8 +57,8 @@
 block discarded – undo
57 57
 	 * @deprecated 9.2.0 To implement an OCS endpoint extend the OCSController
58 58
 	 */
59 59
 	public function __construct($format, $statuscode, $message,
60
-								$data=[], $itemscount='',
61
-								$itemsperpage='') {
60
+								$data = [], $itemscount = '',
61
+								$itemsperpage = '') {
62 62
 		parent::__construct();
63 63
 
64 64
 		$this->format = $format;
Please login to merge, or discard this patch.
lib/public/AppFramework/Http/FileDisplayResponse.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -43,14 +43,14 @@  discard block
 block discarded – undo
43 43
 	 * @param array $headers
44 44
 	 * @since 11.0.0
45 45
 	 */
46
-	public function __construct($file, $statusCode=Http::STATUS_OK,
47
-								$headers=[]) {
46
+	public function __construct($file, $statusCode = Http::STATUS_OK,
47
+								$headers = []) {
48 48
 		parent::__construct();
49 49
 
50 50
 		$this->file = $file;
51 51
 		$this->setStatus($statusCode);
52 52
 		$this->setHeaders(array_merge($this->getHeaders(), $headers));
53
-		$this->addHeader('Content-Disposition', 'inline; filename="' . rawurldecode($file->getName()) . '"');
53
+		$this->addHeader('Content-Disposition', 'inline; filename="'.rawurldecode($file->getName()).'"');
54 54
 
55 55
 		$this->setETag($file->getEtag());
56 56
 		$lastModified = new \DateTime();
@@ -64,7 +64,7 @@  discard block
 block discarded – undo
64 64
 	 */
65 65
 	public function callback(IOutput $output) {
66 66
 		if ($output->getHttpResponseCode() !== Http::STATUS_NOT_MODIFIED) {
67
-			$output->setHeader('Content-Length: ' . $this->file->getSize());
67
+			$output->setHeader('Content-Length: '.$this->file->getSize());
68 68
 			$output->setOutput($this->file->getContent());
69 69
 		}
70 70
 	}
Please login to merge, or discard this patch.