Passed
Push — master ( bbb39c...5026d2 )
by Christoph
27:34 queued 12:27
created
lib/private/Mail/Mailer.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -245,7 +245,7 @@  discard block
 block discarded – undo
245 245
 		}
246 246
 
247 247
 		[$name, $domain] = explode('@', $email, 2);
248
-		$domain = idn_to_ascii($domain, 0,INTL_IDNA_VARIANT_UTS46);
248
+		$domain = idn_to_ascii($domain, 0, INTL_IDNA_VARIANT_UTS46);
249 249
 		return $name.'@'.$domain;
250 250
 	}
251 251
 
@@ -324,6 +324,6 @@  discard block
 block discarded – undo
324 324
 				break;
325 325
 		}
326 326
 
327
-		return new \Swift_SendmailTransport($binaryPath . $binaryParam);
327
+		return new \Swift_SendmailTransport($binaryPath.$binaryParam);
328 328
 	}
329 329
 }
Please login to merge, or discard this patch.
lib/private/DB/QueryBuilder/QuoteHelper.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -71,12 +71,12 @@
 block discarded – undo
71 71
 			[$alias, $columnName] = explode('.', $string, 2);
72 72
 
73 73
 			if ($columnName === '*') {
74
-				return '`' . $alias . '`.*';
74
+				return '`'.$alias.'`.*';
75 75
 			}
76 76
 
77
-			return '`' . $alias . '`.`' . $columnName . '`';
77
+			return '`'.$alias.'`.`'.$columnName.'`';
78 78
 		}
79 79
 
80
-		return '`' . $string . '`';
80
+		return '`'.$string.'`';
81 81
 	}
82 82
 }
Please login to merge, or discard this patch.
lib/private/Share20/Manager.php 1 patch
Spacing   +23 added lines, -23 removed lines patch added patch discarded remove patch
@@ -301,14 +301,14 @@  discard block
 block discarded – undo
301 301
 		$permissions = 0;
302 302
 
303 303
 		if (!$isFederatedShare && $share->getNode()->getOwner() && $share->getNode()->getOwner()->getUID() !== $share->getSharedBy()) {
304
-			$userMounts = array_filter($userFolder->getById($share->getNode()->getId()), function ($mount) {
304
+			$userMounts = array_filter($userFolder->getById($share->getNode()->getId()), function($mount) {
305 305
 				// We need to filter since there might be other mountpoints that contain the file
306 306
 				// e.g. if the user has access to the same external storage that the file is originating from
307 307
 				return $mount->getStorage()->instanceOfStorage(ISharedStorage::class);
308 308
 			});
309 309
 			$userMount = array_shift($userMounts);
310 310
 			if ($userMount === null) {
311
-				throw new GenericShareException('Could not get proper share mount for ' . $share->getNode()->getId() . '. Failing since else the next calls are called with null');
311
+				throw new GenericShareException('Could not get proper share mount for '.$share->getNode()->getId().'. Failing since else the next calls are called with null');
312 312
 			}
313 313
 			$mount = $userMount->getMountPoint();
314 314
 			// When it's a reshare use the parent share permissions as maximum
@@ -317,7 +317,7 @@  discard block
 block discarded – undo
317 317
 			$userMountPoint = array_shift($userMountPoints);
318 318
 
319 319
 			if ($userMountPoint === null) {
320
-				throw new GenericShareException('Could not get proper user mount for ' . $userMountPointId . '. Failing since else the next calls are called with null');
320
+				throw new GenericShareException('Could not get proper user mount for '.$userMountPointId.'. Failing since else the next calls are called with null');
321 321
 			}
322 322
 
323 323
 			/* Check if this is an incoming share */
@@ -407,9 +407,9 @@  discard block
 block discarded – undo
407 407
 
408 408
 		if ($fullId === null && $expirationDate === null && $this->shareApiInternalDefaultExpireDate()) {
409 409
 			$expirationDate = new \DateTime();
410
-			$expirationDate->setTime(0,0,0);
410
+			$expirationDate->setTime(0, 0, 0);
411 411
 
412
-			$days = (int)$this->config->getAppValue('core', 'internal_defaultExpDays', (string)$this->shareApiInternalDefaultExpireDays());
412
+			$days = (int) $this->config->getAppValue('core', 'internal_defaultExpDays', (string) $this->shareApiInternalDefaultExpireDays());
413 413
 			if ($days > $this->shareApiInternalDefaultExpireDays()) {
414 414
 				$days = $this->shareApiInternalDefaultExpireDays();
415 415
 			}
@@ -424,7 +424,7 @@  discard block
 block discarded – undo
424 424
 
425 425
 			$date = new \DateTime();
426 426
 			$date->setTime(0, 0, 0);
427
-			$date->add(new \DateInterval('P' . $this->shareApiInternalDefaultExpireDays() . 'D'));
427
+			$date->add(new \DateInterval('P'.$this->shareApiInternalDefaultExpireDays().'D'));
428 428
 			if ($date < $expirationDate) {
429 429
 				$message = $this->l->t('Can’t set expiration date more than %s days in the future', [$this->shareApiInternalDefaultExpireDays()]);
430 430
 				throw new GenericShareException($message, $message, 404);
@@ -483,9 +483,9 @@  discard block
 block discarded – undo
483 483
 
484 484
 		if ($fullId === null && $expirationDate === null && $this->shareApiLinkDefaultExpireDate()) {
485 485
 			$expirationDate = new \DateTime();
486
-			$expirationDate->setTime(0,0,0);
486
+			$expirationDate->setTime(0, 0, 0);
487 487
 
488
-			$days = (int)$this->config->getAppValue('core', 'link_defaultExpDays', $this->shareApiLinkDefaultExpireDays());
488
+			$days = (int) $this->config->getAppValue('core', 'link_defaultExpDays', $this->shareApiLinkDefaultExpireDays());
489 489
 			if ($days > $this->shareApiLinkDefaultExpireDays()) {
490 490
 				$days = $this->shareApiLinkDefaultExpireDays();
491 491
 			}
@@ -500,7 +500,7 @@  discard block
 block discarded – undo
500 500
 
501 501
 			$date = new \DateTime();
502 502
 			$date->setTime(0, 0, 0);
503
-			$date->add(new \DateInterval('P' . $this->shareApiLinkDefaultExpireDays() . 'D'));
503
+			$date->add(new \DateInterval('P'.$this->shareApiLinkDefaultExpireDays().'D'));
504 504
 			if ($date < $expirationDate) {
505 505
 				$message = $this->l->t('Can’t set expiration date more than %s days in the future', [$this->shareApiLinkDefaultExpireDays()]);
506 506
 				throw new GenericShareException($message, $message, 404);
@@ -786,7 +786,7 @@  discard block
 block discarded – undo
786 786
 		}
787 787
 
788 788
 		// Generate the target
789
-		$target = $this->config->getSystemValue('share_folder', '/') .'/'. $share->getNode()->getName();
789
+		$target = $this->config->getSystemValue('share_folder', '/').'/'.$share->getNode()->getName();
790 790
 		$target = \OC\Files\Filesystem::normalizePath($target);
791 791
 		$share->setTarget($target);
792 792
 
@@ -832,12 +832,12 @@  discard block
 block discarded – undo
832 832
 							$emailAddress,
833 833
 							$share->getExpirationDate()
834 834
 						);
835
-						$this->logger->debug('Sent share notification to ' . $emailAddress . ' for share with ID ' . $share->getId(), ['app' => 'share']);
835
+						$this->logger->debug('Sent share notification to '.$emailAddress.' for share with ID '.$share->getId(), ['app' => 'share']);
836 836
 					} else {
837
-						$this->logger->debug('Share notification not sent to ' . $share->getSharedWith() . ' because email address is not set.', ['app' => 'share']);
837
+						$this->logger->debug('Share notification not sent to '.$share->getSharedWith().' because email address is not set.', ['app' => 'share']);
838 838
 					}
839 839
 				} else {
840
-					$this->logger->debug('Share notification not sent to ' . $share->getSharedWith() . ' because user could not be found.', ['app' => 'share']);
840
+					$this->logger->debug('Share notification not sent to '.$share->getSharedWith().' because user could not be found.', ['app' => 'share']);
841 841
 				}
842 842
 			} else {
843 843
 				$this->logger->debug('Share notification not sent because mailsend is false.', ['app' => 'share']);
@@ -884,7 +884,7 @@  discard block
 block discarded – undo
884 884
 		$text = $l->t('%1$s shared »%2$s« with you.', [$initiatorDisplayName, $filename]);
885 885
 
886 886
 		$emailTemplate->addBodyText(
887
-			htmlspecialchars($text . ' ' . $l->t('Click the button below to open it.')),
887
+			htmlspecialchars($text.' '.$l->t('Click the button below to open it.')),
888 888
 			$text
889 889
 		);
890 890
 		$emailTemplate->addBodyButton(
@@ -910,7 +910,7 @@  discard block
 block discarded – undo
910 910
 		$initiatorEmail = $initiatorUser->getEMailAddress();
911 911
 		if ($initiatorEmail !== null) {
912 912
 			$message->setReplyTo([$initiatorEmail => $initiatorDisplayName]);
913
-			$emailTemplate->addFooter($instanceName . ($this->defaults->getSlogan($l->getLanguageCode()) !== '' ? ' - ' . $this->defaults->getSlogan($l->getLanguageCode()) : ''));
913
+			$emailTemplate->addFooter($instanceName.($this->defaults->getSlogan($l->getLanguageCode()) !== '' ? ' - '.$this->defaults->getSlogan($l->getLanguageCode()) : ''));
914 914
 		} else {
915 915
 			$emailTemplate->addFooter('', $l->getLanguageCode());
916 916
 		}
@@ -919,7 +919,7 @@  discard block
 block discarded – undo
919 919
 		try {
920 920
 			$failedRecipients = $this->mailer->send($message);
921 921
 			if (!empty($failedRecipients)) {
922
-				$this->logger->error('Share notification mail could not be sent to: ' . implode(', ', $failedRecipients));
922
+				$this->logger->error('Share notification mail could not be sent to: '.implode(', ', $failedRecipients));
923 923
 				return;
924 924
 			}
925 925
 		} catch (\Exception $e) {
@@ -1221,7 +1221,7 @@  discard block
 block discarded – undo
1221 1221
 		if ($share->getShareType() === IShare::TYPE_GROUP) {
1222 1222
 			$sharedWith = $this->groupManager->get($share->getSharedWith());
1223 1223
 			if (is_null($sharedWith)) {
1224
-				throw new \InvalidArgumentException('Group "' . $share->getSharedWith() . '" does not exist');
1224
+				throw new \InvalidArgumentException('Group "'.$share->getSharedWith().'" does not exist');
1225 1225
 			}
1226 1226
 			$recipient = $this->userManager->get($recipientId);
1227 1227
 			if (!$sharedWith->inGroup($recipient)) {
@@ -1238,7 +1238,7 @@  discard block
 block discarded – undo
1238 1238
 	public function getSharesInFolder($userId, Folder $node, $reshares = false) {
1239 1239
 		$providers = $this->factory->getAllProviders();
1240 1240
 
1241
-		return array_reduce($providers, function ($shares, IShareProvider $provider) use ($userId, $node, $reshares) {
1241
+		return array_reduce($providers, function($shares, IShareProvider $provider) use ($userId, $node, $reshares) {
1242 1242
 			$newShares = $provider->getSharesInFolder($userId, $node, $reshares);
1243 1243
 			foreach ($newShares as $fid => $data) {
1244 1244
 				if (!isset($shares[$fid])) {
@@ -1355,12 +1355,12 @@  discard block
 block discarded – undo
1355 1355
 		$shares = $this->getSharedWith($userId, $shareType, $node, $limit, $offset);
1356 1356
 
1357 1357
 		// Only get deleted shares
1358
-		$shares = array_filter($shares, function (IShare $share) {
1358
+		$shares = array_filter($shares, function(IShare $share) {
1359 1359
 			return $share->getPermissions() === 0;
1360 1360
 		});
1361 1361
 
1362 1362
 		// Only get shares where the owner still exists
1363
-		$shares = array_filter($shares, function (IShare $share) {
1363
+		$shares = array_filter($shares, function(IShare $share) {
1364 1364
 			return $this->userManager->userExists($share->getShareOwner());
1365 1365
 		});
1366 1366
 
@@ -1657,7 +1657,7 @@  discard block
 block discarded – undo
1657 1657
 			}
1658 1658
 			$al['users'][$owner] = [
1659 1659
 				'node_id' => $path->getId(),
1660
-				'node_path' => '/' . $ownerPath,
1660
+				'node_path' => '/'.$ownerPath,
1661 1661
 			];
1662 1662
 		} else {
1663 1663
 			$al['users'][] = $owner;
@@ -1758,7 +1758,7 @@  discard block
 block discarded – undo
1758 1758
 	 * @return int
1759 1759
 	 */
1760 1760
 	public function shareApiLinkDefaultExpireDays() {
1761
-		return (int)$this->config->getAppValue('core', 'shareapi_expire_after_n_days', '7');
1761
+		return (int) $this->config->getAppValue('core', 'shareapi_expire_after_n_days', '7');
1762 1762
 	}
1763 1763
 
1764 1764
 	/**
@@ -1786,7 +1786,7 @@  discard block
 block discarded – undo
1786 1786
 	 * @return int
1787 1787
 	 */
1788 1788
 	public function shareApiInternalDefaultExpireDays(): int {
1789
-		return (int)$this->config->getAppValue('core', 'shareapi_internal_expire_after_n_days', '7');
1789
+		return (int) $this->config->getAppValue('core', 'shareapi_internal_expire_after_n_days', '7');
1790 1790
 	}
1791 1791
 
1792 1792
 	/**
Please login to merge, or discard this patch.
lib/private/Avatar/Avatar.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -95,7 +95,7 @@  discard block
 block discarded – undo
95 95
 		if (empty($displayName) === true) {
96 96
 			return '?';
97 97
 		}
98
-		$firstTwoLetters = array_map(function ($namePart) {
98
+		$firstTwoLetters = array_map(function($namePart) {
99 99
 			return mb_strtoupper(mb_substr($namePart, 0, 1), 'UTF-8');
100 100
 		}, explode(' ', $displayName, 2));
101 101
 		return implode('', $firstTwoLetters);
@@ -149,7 +149,7 @@  discard block
 block discarded – undo
149 149
 			return false;
150 150
 		}
151 151
 		try {
152
-			$font = __DIR__ . '/../../core/fonts/NotoSans-Regular.ttf';
152
+			$font = __DIR__.'/../../core/fonts/NotoSans-Regular.ttf';
153 153
 			$svg = $this->getAvatarVector($size);
154 154
 			$avatar = new Imagick();
155 155
 			$avatar->setFont($font);
@@ -184,11 +184,11 @@  discard block
 block discarded – undo
184 184
 		$white = imagecolorallocate($im, 255, 255, 255);
185 185
 		imagefilledrectangle($im, 0, 0, $size, $size, $background);
186 186
 
187
-		$font = __DIR__ . '/../../../core/fonts/NotoSans-Regular.ttf';
187
+		$font = __DIR__.'/../../../core/fonts/NotoSans-Regular.ttf';
188 188
 
189 189
 		$fontSize = $size * 0.4;
190 190
 		[$x, $y] = $this->imageTTFCenter(
191
-			$im, $text, $font, (int)$fontSize
191
+			$im, $text, $font, (int) $fontSize
192 192
 		);
193 193
 
194 194
 		imagettftext($im, $fontSize, 0, $x, $y, $white, $font, $text);
Please login to merge, or discard this patch.
apps/comments/lib/Notification/Notifier.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -123,14 +123,14 @@  discard block
 block discarded – undo
123 123
 					throw new \InvalidArgumentException('Unsupported comment object');
124 124
 				}
125 125
 				$userFolder = $this->rootFolder->getUserFolder($notification->getUser());
126
-				$nodes = $userFolder->getById((int)$parameters[1]);
126
+				$nodes = $userFolder->getById((int) $parameters[1]);
127 127
 				if (empty($nodes)) {
128 128
 					throw new AlreadyProcessedException();
129 129
 				}
130 130
 				$node = $nodes[0];
131 131
 
132 132
 				$path = rtrim($node->getPath(), '/');
133
-				if (strpos($path, '/' . $notification->getUser() . '/files/') === 0) {
133
+				if (strpos($path, '/'.$notification->getUser().'/files/') === 0) {
134 134
 					// Remove /user/files/...
135 135
 					$fullPath = $path;
136 136
 					[,,, $path] = explode('/', $fullPath, 4);
@@ -194,10 +194,10 @@  discard block
 block discarded – undo
194 194
 			// the mention parameter ID does not include the mention ID (which
195 195
 			// could contain characters like '@' for user IDs) but a one-based
196 196
 			// index of the mentions of that type.
197
-			$mentionParameterId = 'mention-' . $mention['type'] . $mentionTypeCount[$mention['type']];
198
-			$message = str_replace('@"' . $mention['id'] . '"', '{' . $mentionParameterId . '}', $message);
197
+			$mentionParameterId = 'mention-'.$mention['type'].$mentionTypeCount[$mention['type']];
198
+			$message = str_replace('@"'.$mention['id'].'"', '{'.$mentionParameterId.'}', $message);
199 199
 			if (strpos($mention['id'], ' ') === false && strpos($mention['id'], 'guest/') !== 0) {
200
-				$message = str_replace('@' . $mention['id'], '{' . $mentionParameterId . '}', $message);
200
+				$message = str_replace('@'.$mention['id'], '{'.$mentionParameterId.'}', $message);
201 201
 			}
202 202
 
203 203
 			try {
@@ -219,9 +219,9 @@  discard block
 block discarded – undo
219 219
 	public function richToParsed(string $message, array $parameters): string {
220 220
 		$placeholders = $replacements = [];
221 221
 		foreach ($parameters as $placeholder => $parameter) {
222
-			$placeholders[] = '{' . $placeholder . '}';
222
+			$placeholders[] = '{'.$placeholder.'}';
223 223
 			if ($parameter['type'] === 'user') {
224
-				$replacements[] = '@' . $parameter['name'];
224
+				$replacements[] = '@'.$parameter['name'];
225 225
 			} elseif ($parameter['type'] === 'file') {
226 226
 				$replacements[] = $parameter['path'];
227 227
 			} else {
Please login to merge, or discard this patch.
apps/files_external/lib/Command/Create.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -130,32 +130,32 @@  discard block
 block discarded – undo
130 130
 		$authBackend = $this->backendService->getAuthMechanism($authIdentifier);
131 131
 
132 132
 		if (!Filesystem::isValidPath($mountPoint)) {
133
-			$output->writeln('<error>Invalid mountpoint "' . $mountPoint . '"</error>');
133
+			$output->writeln('<error>Invalid mountpoint "'.$mountPoint.'"</error>');
134 134
 			return 1;
135 135
 		}
136 136
 		if (is_null($storageBackend)) {
137
-			$output->writeln('<error>Storage backend with identifier "' . $storageIdentifier . '" not found (see `occ files_external:backends` for possible values)</error>');
137
+			$output->writeln('<error>Storage backend with identifier "'.$storageIdentifier.'" not found (see `occ files_external:backends` for possible values)</error>');
138 138
 			return 404;
139 139
 		}
140 140
 		if (is_null($authBackend)) {
141
-			$output->writeln('<error>Authentication backend with identifier "' . $authIdentifier . '" not found (see `occ files_external:backends` for possible values)</error>');
141
+			$output->writeln('<error>Authentication backend with identifier "'.$authIdentifier.'" not found (see `occ files_external:backends` for possible values)</error>');
142 142
 			return 404;
143 143
 		}
144 144
 		$supportedSchemes = array_keys($storageBackend->getAuthSchemes());
145 145
 		if (!in_array($authBackend->getScheme(), $supportedSchemes)) {
146
-			$output->writeln('<error>Authentication backend "' . $authIdentifier . '" not valid for storage backend "' . $storageIdentifier . '" (see `occ files_external:backends storage ' . $storageIdentifier . '` for possible values)</error>');
146
+			$output->writeln('<error>Authentication backend "'.$authIdentifier.'" not valid for storage backend "'.$storageIdentifier.'" (see `occ files_external:backends storage '.$storageIdentifier.'` for possible values)</error>');
147 147
 			return 1;
148 148
 		}
149 149
 
150 150
 		$config = [];
151 151
 		foreach ($configInput as $configOption) {
152 152
 			if (!strpos($configOption, '=')) {
153
-				$output->writeln('<error>Invalid mount configuration option "' . $configOption . '"</error>');
153
+				$output->writeln('<error>Invalid mount configuration option "'.$configOption.'"</error>');
154 154
 				return 1;
155 155
 			}
156 156
 			[$key, $value] = explode('=', $configOption, 2);
157 157
 			if (!$this->validateParam($key, $value, $storageBackend, $authBackend)) {
158
-				$output->writeln('<error>Unknown configuration for backends "' . $key . '"</error>');
158
+				$output->writeln('<error>Unknown configuration for backends "'.$key.'"</error>');
159 159
 				return 1;
160 160
 			}
161 161
 			$config[$key] = $value;
@@ -169,7 +169,7 @@  discard block
 block discarded – undo
169 169
 
170 170
 		if ($user) {
171 171
 			if (!$this->userManager->userExists($user)) {
172
-				$output->writeln('<error>User "' . $user . '" not found</error>');
172
+				$output->writeln('<error>User "'.$user.'" not found</error>');
173 173
 				return 1;
174 174
 			}
175 175
 			$mount->setApplicableUsers([$user]);
@@ -180,9 +180,9 @@  discard block
 block discarded – undo
180 180
 		} else {
181 181
 			$this->getStorageService($user)->addStorage($mount);
182 182
 			if ($input->getOption('output') === self::OUTPUT_FORMAT_PLAIN) {
183
-				$output->writeln('<info>Storage created with id ' . $mount->getId() . '</info>');
183
+				$output->writeln('<info>Storage created with id '.$mount->getId().'</info>');
184 184
 			} else {
185
-				$output->writeln((string)$mount->getId());
185
+				$output->writeln((string) $mount->getId());
186 186
 			}
187 187
 		}
188 188
 		return 0;
Please login to merge, or discard this patch.
apps/files_external/lib/Command/Verify.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -73,7 +73,7 @@  discard block
 block discarded – undo
73 73
 		try {
74 74
 			$mount = $this->globalService->getStorage($mountId);
75 75
 		} catch (NotFoundException $e) {
76
-			$output->writeln('<error>Mount with id "' . $mountId . ' not found, check "occ files_external:list" to get available mounts"</error>');
76
+			$output->writeln('<error>Mount with id "'.$mountId.' not found, check "occ files_external:list" to get available mounts"</error>');
77 77
 			return 404;
78 78
 		}
79 79
 
@@ -108,7 +108,7 @@  discard block
 block discarded – undo
108 108
 
109 109
 			foreach ($configInput as $configOption) {
110 110
 				if (!strpos($configOption, '=')) {
111
-					$output->writeln('<error>Invalid mount configuration option "' . $configOption . '"</error>');
111
+					$output->writeln('<error>Invalid mount configuration option "'.$configOption.'"</error>');
112 112
 					return;
113 113
 				}
114 114
 				[$key, $value] = explode('=', $configOption, 2);
@@ -140,7 +140,7 @@  discard block
 block discarded – undo
140 140
 			// FIXME: convert storage exceptions to StorageNotAvailableException
141 141
 			$storage->setStatus(
142 142
 				StorageNotAvailableException::STATUS_ERROR,
143
-				get_class($e) . ': ' . $e->getMessage()
143
+				get_class($e).': '.$e->getMessage()
144 144
 			);
145 145
 		}
146 146
 	}
Please login to merge, or discard this patch.
apps/files/lib/Command/Scan.php 1 patch
Spacing   +13 added lines, -13 removed lines patch added patch discarded remove patch
@@ -112,7 +112,7 @@  discard block
 block discarded – undo
112 112
 		$path = basename($fullPath);
113 113
 
114 114
 		if ($normalizedPath !== $path) {
115
-			$output->writeln("\t<error>Entry \"" . $fullPath . '" will not be accessible due to incompatible encoding</error>');
115
+			$output->writeln("\t<error>Entry \"".$fullPath.'" will not be accessible due to incompatible encoding</error>');
116 116
 		}
117 117
 	}
118 118
 
@@ -127,27 +127,27 @@  discard block
 block discarded – undo
127 127
 
128 128
 		# check on each file/folder if there was a user interrupt (ctrl-c) and throw an exception
129 129
 
130
-		$scanner->listen('\OC\Files\Utils\Scanner', 'scanFile', function ($path) use ($output) {
130
+		$scanner->listen('\OC\Files\Utils\Scanner', 'scanFile', function($path) use ($output) {
131 131
 			$output->writeln("\tFile\t<info>$path</info>", OutputInterface::VERBOSITY_VERBOSE);
132 132
 			++$this->filesCounter;
133 133
 			$this->abortIfInterrupted();
134 134
 		});
135 135
 
136
-		$scanner->listen('\OC\Files\Utils\Scanner', 'scanFolder', function ($path) use ($output) {
136
+		$scanner->listen('\OC\Files\Utils\Scanner', 'scanFolder', function($path) use ($output) {
137 137
 			$output->writeln("\tFolder\t<info>$path</info>", OutputInterface::VERBOSITY_VERBOSE);
138 138
 			++$this->foldersCounter;
139 139
 			$this->abortIfInterrupted();
140 140
 		});
141 141
 
142
-		$scanner->listen('\OC\Files\Utils\Scanner', 'StorageNotAvailable', function (StorageNotAvailableException $e) use ($output) {
143
-			$output->writeln('Error while scanning, storage not available (' . $e->getMessage() . ')', OutputInterface::VERBOSITY_VERBOSE);
142
+		$scanner->listen('\OC\Files\Utils\Scanner', 'StorageNotAvailable', function(StorageNotAvailableException $e) use ($output) {
143
+			$output->writeln('Error while scanning, storage not available ('.$e->getMessage().')', OutputInterface::VERBOSITY_VERBOSE);
144 144
 		});
145 145
 
146
-		$scanner->listen('\OC\Files\Utils\Scanner', 'scanFile', function ($path) use ($output) {
146
+		$scanner->listen('\OC\Files\Utils\Scanner', 'scanFile', function($path) use ($output) {
147 147
 			$this->checkScanWarning($path, $output);
148 148
 		});
149 149
 
150
-		$scanner->listen('\OC\Files\Utils\Scanner', 'scanFolder', function ($path) use ($output) {
150
+		$scanner->listen('\OC\Files\Utils\Scanner', 'scanFolder', function($path) use ($output) {
151 151
 			$this->checkScanWarning($path, $output);
152 152
 		});
153 153
 
@@ -164,10 +164,10 @@  discard block
 block discarded – undo
164 164
 			# exit the function if ctrl-c has been pressed
165 165
 			$output->writeln('Interrupted by user');
166 166
 		} catch (NotFoundException $e) {
167
-			$output->writeln('<error>Path not found: ' . $e->getMessage() . '</error>');
167
+			$output->writeln('<error>Path not found: '.$e->getMessage().'</error>');
168 168
 		} catch (\Exception $e) {
169
-			$output->writeln('<error>Exception during scan: ' . $e->getMessage() . '</error>');
170
-			$output->writeln('<error>' . $e->getTraceAsString() . '</error>');
169
+			$output->writeln('<error>Exception during scan: '.$e->getMessage().'</error>');
170
+			$output->writeln('<error>'.$e->getTraceAsString().'</error>');
171 171
 		}
172 172
 	}
173 173
 
@@ -179,8 +179,8 @@  discard block
 block discarded – undo
179 179
 	protected function execute(InputInterface $input, OutputInterface $output): int {
180 180
 		$inputPath = $input->getOption('path');
181 181
 		if ($inputPath) {
182
-			$inputPath = '/' . trim($inputPath, '/');
183
-			[, $user,] = explode('/', $inputPath, 3);
182
+			$inputPath = '/'.trim($inputPath, '/');
183
+			[, $user, ] = explode('/', $inputPath, 3);
184 184
 			$users = [$user];
185 185
 		} elseif ($input->getOption('all')) {
186 186
 			$users = $this->userManager->search('');
@@ -207,7 +207,7 @@  discard block
 block discarded – undo
207 207
 			if (is_object($user)) {
208 208
 				$user = $user->getUID();
209 209
 			}
210
-			$path = $inputPath ? $inputPath : '/' . $user;
210
+			$path = $inputPath ? $inputPath : '/'.$user;
211 211
 			++$user_count;
212 212
 			if ($this->userManager->userExists($user)) {
213 213
 				$output->writeln("Starting scan for user $user_count out of $users_total ($user)");
Please login to merge, or discard this patch.
apps/systemtags/lib/Activity/Provider.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -319,7 +319,7 @@
 block discarded – undo
319 319
 		if ($tagData === null) {
320 320
 			[$name, $status] = explode('|||', substr($parameter, 3, -3));
321 321
 			$tagData = [
322
-				'id' => 0,// No way to recover the ID
322
+				'id' => 0, // No way to recover the ID
323 323
 				'name' => $name,
324 324
 				'assignable' => $status === 'assignable',
325 325
 				'visible' => $status !== 'invisible',
Please login to merge, or discard this patch.