Passed
Push — master ( b2aec1...505fc0 )
by Roeland
09:14
created
lib/public/Settings/IManager.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -36,7 +36,7 @@  discard block
 block discarded – undo
36 36
 	/**
37 37
 	 * @since 9.1.0
38 38
 	 */
39
-	const KEY_ADMIN_SECTION  = 'admin-section';
39
+	const KEY_ADMIN_SECTION = 'admin-section';
40 40
 
41 41
 	/**
42 42
 	 * @since 13.0.0
@@ -46,7 +46,7 @@  discard block
 block discarded – undo
46 46
 	/**
47 47
 	 * @since 13.0.0
48 48
 	 */
49
-	const KEY_PERSONAL_SECTION  = 'personal-section';
49
+	const KEY_PERSONAL_SECTION = 'personal-section';
50 50
 
51 51
 	/**
52 52
 	 * @param string $type 'admin' or 'personal'
Please login to merge, or discard this patch.
lib/private/Streamer.php 1 patch
Spacing   +15 added lines, -15 removed lines patch added patch discarded remove patch
@@ -30,7 +30,7 @@  discard block
 block discarded – undo
30 30
 
31 31
 class Streamer {
32 32
 	// array of regexp. Matching user agents will get tar instead of zip
33
-	private $preferTarFor = [ '/macintosh|mac os x/i' ];
33
+	private $preferTarFor = ['/macintosh|mac os x/i'];
34 34
 
35 35
 	// streamer instance
36 36
 	private $streamerInstance;
@@ -43,7 +43,7 @@  discard block
 block discarded – undo
43 43
 	 * @param int $numberOfFiles The number of files (and directories) that will
44 44
 	 *        be included in the streamed file
45 45
 	 */
46
-	public function __construct(IRequest $request, int $size, int $numberOfFiles){
46
+	public function __construct(IRequest $request, int $size, int $numberOfFiles) {
47 47
 
48 48
 		/**
49 49
 		 * zip32 constraints for a basic (without compression, volumes nor
@@ -80,9 +80,9 @@  discard block
 block discarded – undo
80 80
 	 * Send HTTP headers
81 81
 	 * @param string $name 
82 82
 	 */
83
-	public function sendHeaders($name){
83
+	public function sendHeaders($name) {
84 84
 		$extension = $this->streamerInstance instanceof ZipStreamer ? '.zip' : '.tar';
85
-		$fullName = $name . $extension;
85
+		$fullName = $name.$extension;
86 86
 		$this->streamerInstance->sendHeaders($fullName);
87 87
 	}
88 88
 	
@@ -91,27 +91,27 @@  discard block
 block discarded – undo
91 91
 	 * @param string $dir
92 92
 	 * @param string $internalDir
93 93
 	 */
94
-	public function addDirRecursive($dir, $internalDir='') {
94
+	public function addDirRecursive($dir, $internalDir = '') {
95 95
 		$dirname = basename($dir);
96
-		$rootDir = $internalDir . $dirname;
96
+		$rootDir = $internalDir.$dirname;
97 97
 		if (!empty($rootDir)) {
98 98
 			$this->streamerInstance->addEmptyDir($rootDir);
99 99
 		}
100
-		$internalDir .= $dirname . '/';
100
+		$internalDir .= $dirname.'/';
101 101
 		// prevent absolute dirs
102 102
 		$internalDir = ltrim($internalDir, '/');
103 103
 
104
-		$files= \OC\Files\Filesystem::getDirectoryContent($dir);
105
-		foreach($files as $file) {
104
+		$files = \OC\Files\Filesystem::getDirectoryContent($dir);
105
+		foreach ($files as $file) {
106 106
 			$filename = $file['name'];
107
-			$file = $dir . '/' . $filename;
108
-			if(\OC\Files\Filesystem::is_file($file)) {
107
+			$file = $dir.'/'.$filename;
108
+			if (\OC\Files\Filesystem::is_file($file)) {
109 109
 				$filesize = \OC\Files\Filesystem::filesize($file);
110 110
 				$fileTime = \OC\Files\Filesystem::filemtime($file);
111 111
 				$fh = \OC\Files\Filesystem::fopen($file, 'r');
112
-				$this->addFileFromStream($fh, $internalDir . $filename, $filesize, $fileTime);
112
+				$this->addFileFromStream($fh, $internalDir.$filename, $filesize, $fileTime);
113 113
 				fclose($fh);
114
-			}elseif(\OC\Files\Filesystem::is_dir($file)) {
114
+			}elseif (\OC\Files\Filesystem::is_dir($file)) {
115 115
 				$this->addDirRecursive($file, $internalDir);
116 116
 			}
117 117
 		}
@@ -147,7 +147,7 @@  discard block
 block discarded – undo
147 147
 	 * @param string $dirName Directory Path and name to be added to the archive.
148 148
 	 * @return bool $success
149 149
 	 */
150
-	public function addEmptyDir($dirName){
150
+	public function addEmptyDir($dirName) {
151 151
 		return $this->streamerInstance->addEmptyDir($dirName);
152 152
 	}
153 153
 
@@ -157,7 +157,7 @@  discard block
 block discarded – undo
157 157
 	 * closing, the file is completely written to the output stream.
158 158
 	 * @return bool $success
159 159
 	 */
160
-	public function finalize(){
160
+	public function finalize() {
161 161
 		return $this->streamerInstance->finalize();
162 162
 	}
163 163
 }
Please login to merge, or discard this patch.
apps/dav/lib/Files/FileSearchBackend.php 1 patch
Spacing   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -158,7 +158,7 @@  discard block
 block discarded – undo
158 158
 		$results = $folder->search($query);
159 159
 
160 160
 		/** @var SearchResult[] $nodes */
161
-		$nodes = array_map(function (Node $node) {
161
+		$nodes = array_map(function(Node $node) {
162 162
 			if ($node instanceof Folder) {
163 163
 				$davNode = new \OCA\DAV\Connector\Sabre\Directory($this->view, $node, $this->tree, $this->shareManager);
164 164
 			} else {
@@ -170,7 +170,7 @@  discard block
 block discarded – undo
170 170
 		}, $results);
171 171
 
172 172
 		// Sort again, since the result from multiple storages is appended and not sorted
173
-		usort($nodes, function (SearchResult $a, SearchResult $b) use ($search) {
173
+		usort($nodes, function(SearchResult $a, SearchResult $b) use ($search) {
174 174
 			return $this->sort($a, $b, $search->orderBy);
175 175
 		});
176 176
 
@@ -259,8 +259,8 @@  discard block
 block discarded – undo
259 259
 	 * @return string
260 260
 	 */
261 261
 	private function getHrefForNode(Node $node) {
262
-		$base = '/files/' . $this->user->getUID();
263
-		return $base . $this->view->getRelativePath($node->getPath());
262
+		$base = '/files/'.$this->user->getUID();
263
+		return $base.$this->view->getRelativePath($node->getPath());
264 264
 	}
265 265
 
266 266
 	/**
@@ -271,7 +271,7 @@  discard block
 block discarded – undo
271 271
 		// TODO offset
272 272
 		$limit = $query->limit;
273 273
 		$orders = array_map([$this, 'mapSearchOrder'], $query->orderBy);
274
-		return new SearchQuery($this->transformSearchOperation($query->where), (int)$limit->maxResults, 0, $orders, $this->user);
274
+		return new SearchQuery($this->transformSearchOperation($query->where), (int) $limit->maxResults, 0, $orders, $this->user);
275 275
 	}
276 276
 
277 277
 	/**
@@ -301,19 +301,19 @@  discard block
 block discarded – undo
301 301
 			case Operator::OPERATION_LESS_THAN:
302 302
 			case Operator::OPERATION_IS_LIKE:
303 303
 				if (count($operator->arguments) !== 2) {
304
-					throw new \InvalidArgumentException('Invalid number of arguments for ' . $trimmedType . ' operation');
304
+					throw new \InvalidArgumentException('Invalid number of arguments for '.$trimmedType.' operation');
305 305
 				}
306 306
 				if (!($operator->arguments[0] instanceof SearchPropertyDefinition)) {
307
-					throw new \InvalidArgumentException('Invalid argument 1 for ' . $trimmedType . ' operation, expected property');
307
+					throw new \InvalidArgumentException('Invalid argument 1 for '.$trimmedType.' operation, expected property');
308 308
 				}
309 309
 				if (!($operator->arguments[1] instanceof Literal)) {
310
-					throw new \InvalidArgumentException('Invalid argument 2 for ' . $trimmedType . ' operation, expected literal');
310
+					throw new \InvalidArgumentException('Invalid argument 2 for '.$trimmedType.' operation, expected literal');
311 311
 				}
312 312
 				return new SearchComparison($trimmedType, $this->mapPropertyNameToColumn($operator->arguments[0]), $this->castValue($operator->arguments[0], $operator->arguments[1]->value));
313 313
 			case Operator::OPERATION_IS_COLLECTION:
314 314
 				return new SearchComparison('eq', 'mimetype', ICacheEntry::DIRECTORY_MIMETYPE);
315 315
 			default:
316
-				throw new \InvalidArgumentException('Unsupported operation ' . $trimmedType . ' (' . $operator->type . ')');
316
+				throw new \InvalidArgumentException('Unsupported operation '.$trimmedType.' ('.$operator->type.')');
317 317
 		}
318 318
 	}
319 319
 
@@ -338,7 +338,7 @@  discard block
 block discarded – undo
338 338
 			case FilesPlugin::INTERNAL_FILEID_PROPERTYNAME:
339 339
 				return 'fileid';
340 340
 			default:
341
-				throw new \InvalidArgumentException('Unsupported property for search or order: ' . $property->name);
341
+				throw new \InvalidArgumentException('Unsupported property for search or order: '.$property->name);
342 342
 		}
343 343
 	}
344 344
 
Please login to merge, or discard this patch.
lib/public/AppFramework/Http/Template/SimpleMenuAction.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -164,7 +164,7 @@
 block discarded – undo
164 164
 	 * @since 14.0.0
165 165
 	 */
166 166
 	public function render(): string {
167
-		$detailContent = ($this->detail !== '') ? '&nbsp;<span class="download-size">(' . Util::sanitizeHTML($this->detail) . ')</span>' : '';
167
+		$detailContent = ($this->detail !== '') ? '&nbsp;<span class="download-size">('.Util::sanitizeHTML($this->detail).')</span>' : '';
168 168
 		return sprintf(
169 169
 			'<li id="%s"><a href="%s"><span class="icon %s"></span>%s %s</a></li>',
170 170
 			Util::sanitizeHTML($this->id), Util::sanitizeHTML($this->link), Util::sanitizeHTML($this->icon), Util::sanitizeHTML($this->label), $detailContent
Please login to merge, or discard this patch.
lib/private/Collaboration/Collaborators/GroupPlugin.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -57,17 +57,17 @@
 block discarded – undo
57 57
 		$result = ['wide' => [], 'exact' => []];
58 58
 
59 59
 		$groups = $this->groupManager->search($search, $limit, $offset);
60
-		$groupIds = array_map(function (IGroup $group) { return $group->getGID(); }, $groups);
60
+		$groupIds = array_map(function(IGroup $group) { return $group->getGID(); }, $groups);
61 61
 
62 62
 		if (!$this->shareeEnumeration || count($groups) < $limit) {
63 63
 			$hasMoreResults = true;
64 64
 		}
65 65
 
66
-		$userGroups =  [];
66
+		$userGroups = [];
67 67
 		if (!empty($groups) && $this->shareWithGroupOnly) {
68 68
 			// Intersect all the groups that match with the groups this user is a member of
69 69
 			$userGroups = $this->groupManager->getUserGroups($this->userSession->getUser());
70
-			$userGroups = array_map(function (IGroup $group) { return $group->getGID(); }, $userGroups);
70
+			$userGroups = array_map(function(IGroup $group) { return $group->getGID(); }, $userGroups);
71 71
 			$groupIds = array_intersect($groupIds, $userGroups);
72 72
 		}
73 73
 
Please login to merge, or discard this patch.
core/Command/Config/System/DeleteConfig.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -66,7 +66,7 @@  discard block
 block discarded – undo
66 66
 
67 67
 		if (count($configNames) > 1) {
68 68
 			if ($input->hasParameterOption('--error-if-not-exists') && !in_array($configName, $this->systemConfig->getKeys())) {
69
-				$output->writeln('<error>System config ' . implode(' => ', $configNames) . ' could not be deleted because it did not exist</error>');
69
+				$output->writeln('<error>System config '.implode(' => ', $configNames).' could not be deleted because it did not exist</error>');
70 70
 				return 1;
71 71
 			}
72 72
 
@@ -76,21 +76,21 @@  discard block
 block discarded – undo
76 76
 				$value = $this->removeSubValue(array_slice($configNames, 1), $value, $input->hasParameterOption('--error-if-not-exists'));
77 77
 			}
78 78
 			catch (\UnexpectedValueException $e) {
79
-				$output->writeln('<error>System config ' . implode(' => ', $configNames) . ' could not be deleted because it did not exist</error>');
79
+				$output->writeln('<error>System config '.implode(' => ', $configNames).' could not be deleted because it did not exist</error>');
80 80
 				return 1;
81 81
 			}
82 82
 
83 83
 			$this->systemConfig->setValue($configName, $value);
84
-			$output->writeln('<info>System config value ' . implode(' => ', $configNames) . ' deleted</info>');
84
+			$output->writeln('<info>System config value '.implode(' => ', $configNames).' deleted</info>');
85 85
 			return 0;
86 86
 		} else {
87 87
 			if ($input->hasParameterOption('--error-if-not-exists') && !in_array($configName, $this->systemConfig->getKeys())) {
88
-				$output->writeln('<error>System config ' . $configName . ' could not be deleted because it did not exist</error>');
88
+				$output->writeln('<error>System config '.$configName.' could not be deleted because it did not exist</error>');
89 89
 				return 1;
90 90
 			}
91 91
 
92 92
 			$this->systemConfig->deleteValue($configName);
93
-			$output->writeln('<info>System config value ' . $configName . ' deleted</info>');
93
+			$output->writeln('<info>System config value '.$configName.' deleted</info>');
94 94
 			return 0;
95 95
 		}
96 96
 	}
Please login to merge, or discard this patch.
core/Command/L10n/CreateJs.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -63,10 +63,10 @@  discard block
 block discarded – undo
63 63
 		}
64 64
 		$languages = $lang;
65 65
 		if (empty($lang)) {
66
-			$languages= $this->getAllLanguages($path);
66
+			$languages = $this->getAllLanguages($path);
67 67
 		}
68 68
 
69
-		foreach($languages as $lang) {
69
+		foreach ($languages as $lang) {
70 70
 			$this->writeFiles($app, $path, $lang, $output);
71 71
 		}
72 72
 	}
@@ -74,16 +74,16 @@  discard block
 block discarded – undo
74 74
 	private function getAllLanguages($path) {
75 75
 		$result = array();
76 76
 		foreach (new DirectoryIterator("$path/l10n") as $fileInfo) {
77
-			if($fileInfo->isDot()) {
77
+			if ($fileInfo->isDot()) {
78 78
 				continue;
79 79
 			}
80
-			if($fileInfo->isDir()) {
80
+			if ($fileInfo->isDir()) {
81 81
 				continue;
82 82
 			}
83
-			if($fileInfo->getExtension() !== 'php') {
83
+			if ($fileInfo->getExtension() !== 'php') {
84 84
 				continue;
85 85
 			}
86
-			$result[]= substr($fileInfo->getBasename(), 0, -4);
86
+			$result[] = substr($fileInfo->getBasename(), 0, -4);
87 87
 		}
88 88
 
89 89
 		return $result;
@@ -105,7 +105,7 @@  discard block
 block discarded – undo
105 105
 		$jsTrans = array();
106 106
 		foreach ($translations as $id => $val) {
107 107
 			if (is_array($val)) {
108
-				$val = '[ ' . implode(',', $val) . ']';
108
+				$val = '[ '.implode(',', $val).']';
109 109
 			}
110 110
 			$jsTrans[] = "\"$id\" : \"$val\"";
111 111
 		}
Please login to merge, or discard this patch.
apps/encryption/lib/Crypto/Crypt.php 1 patch
Spacing   +19 added lines, -19 removed lines patch added patch discarded remove patch
@@ -118,7 +118,7 @@  discard block
 block discarded – undo
118 118
 				['app' => 'encryption']);
119 119
 
120 120
 			if (openssl_error_string()) {
121
-				$log->error('Encryption library openssl_pkey_new() fails: ' . openssl_error_string(),
121
+				$log->error('Encryption library openssl_pkey_new() fails: '.openssl_error_string(),
122 122
 					['app' => 'encryption']);
123 123
 			}
124 124
 		} elseif (openssl_pkey_export($res,
@@ -133,10 +133,10 @@  discard block
 block discarded – undo
133 133
 				'privateKey' => $privateKey
134 134
 			];
135 135
 		}
136
-		$log->error('Encryption library couldn\'t export users private key, please check your servers OpenSSL configuration.' . $this->user,
136
+		$log->error('Encryption library couldn\'t export users private key, please check your servers OpenSSL configuration.'.$this->user,
137 137
 			['app' => 'encryption']);
138 138
 		if (openssl_error_string()) {
139
-			$log->error('Encryption Library:' . openssl_error_string(),
139
+			$log->error('Encryption Library:'.openssl_error_string(),
140 140
 				['app' => 'encryption']);
141 141
 		}
142 142
 
@@ -209,15 +209,15 @@  discard block
 block discarded – undo
209 209
 	public function generateHeader($keyFormat = 'hash') {
210 210
 
211 211
 		if (in_array($keyFormat, $this->supportedKeyFormats, true) === false) {
212
-			throw new \InvalidArgumentException('key format "' . $keyFormat . '" is not supported');
212
+			throw new \InvalidArgumentException('key format "'.$keyFormat.'" is not supported');
213 213
 		}
214 214
 
215 215
 		$cipher = $this->getCipher();
216 216
 
217 217
 		$header = self::HEADER_START
218
-			. ':cipher:' . $cipher
219
-			. ':keyFormat:' . $keyFormat
220
-			. ':' . self::HEADER_END;
218
+			. ':cipher:'.$cipher
219
+			. ':keyFormat:'.$keyFormat
220
+			. ':'.self::HEADER_END;
221 221
 
222 222
 		return $header;
223 223
 	}
@@ -239,7 +239,7 @@  discard block
 block discarded – undo
239 239
 
240 240
 		if (!$encryptedContent) {
241 241
 			$error = 'Encryption (symmetric) of content failed';
242
-			$this->logger->error($error . openssl_error_string(),
242
+			$this->logger->error($error.openssl_error_string(),
243 243
 				['app' => 'encryption']);
244 244
 			throw new EncryptionFailedException($error);
245 245
 		}
@@ -267,8 +267,8 @@  discard block
 block discarded – undo
267 267
 		}
268 268
 
269 269
 		// Workaround for OpenSSL 0.9.8. Fallback to an old cipher that should work.
270
-		if(OPENSSL_VERSION_NUMBER < 0x1000101f) {
271
-			if($cipher === 'AES-256-CTR' || $cipher === 'AES-128-CTR') {
270
+		if (OPENSSL_VERSION_NUMBER < 0x1000101f) {
271
+			if ($cipher === 'AES-256-CTR' || $cipher === 'AES-128-CTR') {
272 272
 				$cipher = self::LEGACY_CIPHER;
273 273
 			}
274 274
 		}
@@ -284,7 +284,7 @@  discard block
 block discarded – undo
284 284
 	 * @throws \InvalidArgumentException
285 285
 	 */
286 286
 	protected function getKeySize($cipher) {
287
-		if(isset($this->supportedCiphersAndKeySize[$cipher])) {
287
+		if (isset($this->supportedCiphersAndKeySize[$cipher])) {
288 288
 			return $this->supportedCiphersAndKeySize[$cipher];
289 289
 		}
290 290
 
@@ -311,7 +311,7 @@  discard block
 block discarded – undo
311 311
 	 * @return string
312 312
 	 */
313 313
 	private function concatIV($encryptedContent, $iv) {
314
-		return $encryptedContent . '00iv00' . $iv;
314
+		return $encryptedContent.'00iv00'.$iv;
315 315
 	}
316 316
 
317 317
 	/**
@@ -320,7 +320,7 @@  discard block
 block discarded – undo
320 320
 	 * @return string
321 321
 	 */
322 322
 	private function concatSig($encryptedContent, $signature) {
323
-		return $encryptedContent . '00sig00' . $signature;
323
+		return $encryptedContent.'00sig00'.$signature;
324 324
 	}
325 325
 
326 326
 	/**
@@ -332,7 +332,7 @@  discard block
 block discarded – undo
332 332
 	 * @return string
333 333
 	 */
334 334
 	private function addPadding($data) {
335
-		return $data . 'xxx';
335
+		return $data.'xxx';
336 336
 	}
337 337
 
338 338
 	/**
@@ -346,7 +346,7 @@  discard block
 block discarded – undo
346 346
 	protected function generatePasswordHash($password, $cipher, $uid = '') {
347 347
 		$instanceId = $this->config->getSystemValue('instanceid');
348 348
 		$instanceSecret = $this->config->getSystemValue('secret');
349
-		$salt = hash('sha256', $uid . $instanceId . $instanceSecret, true);
349
+		$salt = hash('sha256', $uid.$instanceId.$instanceSecret, true);
350 350
 		$keySize = $this->getKeySize($cipher);
351 351
 
352 352
 		$hash = hash_pbkdf2(
@@ -492,7 +492,7 @@  discard block
 block discarded – undo
492 492
 	 * @return string
493 493
 	 */
494 494
 	private function createSignature($data, $passPhrase) {
495
-		$passPhrase = hash('sha512', $passPhrase . 'a', true);
495
+		$passPhrase = hash('sha512', $passPhrase.'a', true);
496 496
 		return hash_hmac('sha256', $data, $passPhrase);
497 497
 	}
498 498
 
@@ -583,7 +583,7 @@  discard block
 block discarded – undo
583 583
 		if ($plainContent) {
584 584
 			return $plainContent;
585 585
 		} else {
586
-			throw new DecryptionFailedException('Encryption library: Decryption (symmetric) of content failed: ' . openssl_error_string());
586
+			throw new DecryptionFailedException('Encryption library: Decryption (symmetric) of content failed: '.openssl_error_string());
587 587
 		}
588 588
 	}
589 589
 
@@ -649,7 +649,7 @@  discard block
 block discarded – undo
649 649
 		if (openssl_open($encKeyFile, $plainContent, $shareKey, $privateKey)) {
650 650
 			return $plainContent;
651 651
 		} else {
652
-			throw new MultiKeyDecryptException('multikeydecrypt with share key failed:' . openssl_error_string());
652
+			throw new MultiKeyDecryptException('multikeydecrypt with share key failed:'.openssl_error_string());
653 653
 		}
654 654
 	}
655 655
 
@@ -685,7 +685,7 @@  discard block
 block discarded – undo
685 685
 				'data' => $sealed
686 686
 			];
687 687
 		} else {
688
-			throw new MultiKeyEncryptException('multikeyencryption failed ' . openssl_error_string());
688
+			throw new MultiKeyEncryptException('multikeyencryption failed '.openssl_error_string());
689 689
 		}
690 690
 	}
691 691
 }
Please login to merge, or discard this patch.
apps/comments/lib/Activity/Listener.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -84,7 +84,7 @@  discard block
 block discarded – undo
84 84
 
85 85
 		// Get all mount point owners
86 86
 		$cache = $this->mountCollection->getMountCache();
87
-		$mounts = $cache->getMountsForFileId((int)$event->getComment()->getObjectId());
87
+		$mounts = $cache->getMountsForFileId((int) $event->getComment()->getObjectId());
88 88
 		if (empty($mounts)) {
89 89
 			return;
90 90
 		}
@@ -93,7 +93,7 @@  discard block
 block discarded – undo
93 93
 		foreach ($mounts as $mount) {
94 94
 			$owner = $mount->getUser()->getUID();
95 95
 			$ownerFolder = $this->rootFolder->getUserFolder($owner);
96
-			$nodes = $ownerFolder->getById((int)$event->getComment()->getObjectId());
96
+			$nodes = $ownerFolder->getById((int) $event->getComment()->getObjectId());
97 97
 			if (!empty($nodes)) {
98 98
 				/** @var Node $node */
99 99
 				$node = array_shift($nodes);
@@ -121,7 +121,7 @@  discard block
 block discarded – undo
121 121
 		foreach ($users as $user => $path) {
122 122
 			// numerical user ids end up as integers from array keys, but string
123 123
 			// is required
124
-			$activity->setAffectedUser((string)$user);
124
+			$activity->setAffectedUser((string) $user);
125 125
 
126 126
 			$activity->setSubject('add_comment_subject', [
127 127
 				'actor' => $actor,
Please login to merge, or discard this patch.