Completed
Push — master ( 6268cf...e70d91 )
by
unknown
16s
created
lib/Service/GroupFoldersService.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -222,7 +222,7 @@
 block discarded – undo
222 222
 		foreach ($mounts as $path => $mount) {
223 223
 			$mountPoint = new MountPoint();
224 224
 			$mountPoint->setId($this->getInt('id', $mount, -1))
225
-					   ->setPath('/' . $userId . '/files/' . $mount['mount_point'])
225
+					   ->setPath('/'.$userId.'/files/'.$mount['mount_point'])
226 226
 					   ->setGroups(array_keys($mount['groups']));
227 227
 			$mountPoints[] = $mountPoint;
228 228
 		}
Please login to merge, or discard this patch.
lib/Service/ConfigService.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -236,7 +236,7 @@
 block discarded – undo
236 236
 	 */
237 237
 	public function setDocumentIndexOption(FilesDocument $document, string $option) {
238 238
 		$document->getIndex()
239
-				 ->addOption('_' . $option, (string)$this->getAppValue($option));
239
+				 ->addOption('_'.$option, (string)$this->getAppValue($option));
240 240
 	}
241 241
 
242 242
 
Please login to merge, or discard this patch.
lib/Service/ExternalFilesService.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -191,7 +191,7 @@
 block discarded – undo
191 191
 	 *
192 192
 	 * @throws FileIsNotIndexableException
193 193
 	 */
194
-	public function updateDocumentAccess(FilesDocument &$document, Node $file) {
194
+	public function updateDocumentAccess(FilesDocument & $document, Node $file) {
195 195
 		if ($document->getSource() !== ConfigService::FILES_EXTERNAL) {
196 196
 			return;
197 197
 		}
Please login to merge, or discard this patch.
lib/Tools/Traits/TArrayTools.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -404,7 +404,7 @@  discard block
 block discarded – undo
404 404
 		foreach ($keys as $key) {
405 405
 			if (!array_key_exists($key, $arr)) {
406 406
 				throw new MalformedArrayException(
407
-					'source: ' . json_encode($arr) . ' - missing key: ' . $key
407
+					'source: '.json_encode($arr).' - missing key: '.$key
408 408
 				);
409 409
 			}
410 410
 		}
@@ -417,7 +417,7 @@  discard block
 block discarded – undo
417 417
 	protected function cleanArray(array &$arr) {
418 418
 		$arr = array_filter(
419 419
 			$arr,
420
-			function ($v) {
420
+			function($v) {
421 421
 				if (is_string($v)) {
422 422
 					return ($v !== '');
423 423
 				}
Please login to merge, or discard this patch.
lib/AppInfo/Application.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -49,7 +49,7 @@
 block discarded – undo
49 49
 use OCP\Share\Events\ShareDeletedEvent;
50 50
 use Throwable;
51 51
 
52
-require_once __DIR__ . '/../../vendor/autoload.php';
52
+require_once __DIR__.'/../../vendor/autoload.php';
53 53
 
54 54
 
55 55
 /**
Please login to merge, or discard this patch.
lib/Service/LocalFilesService.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -124,7 +124,7 @@
 block discarded – undo
124 124
 
125 125
 		foreach ($shares['users'] ?? [] as $user => $node) {
126 126
 			if (!is_string($user)) {
127
-				$this->logger->warning('malformed access list: ' . json_encode($shares));
127
+				$this->logger->warning('malformed access list: '.json_encode($shares));
128 128
 				continue;
129 129
 			}
130 130
 			if (in_array($user, $users) || $this->userManager->get($user) === null) {
Please login to merge, or discard this patch.
lib/Service/SearchService.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -89,10 +89,10 @@  discard block
 block discarded – undo
89 89
 	 */
90 90
 	private function searchQueryShareNames(ISearchRequest $request) {
91 91
 		$username = $this->filesService->secureUsername($request->getAuthor());
92
-		$request->addField('share_names.' . $username);
92
+		$request->addField('share_names.'.$username);
93 93
 
94 94
 		$request->addWildcardField('title');
95
-		$request->addWildcardField('share_names.' . $username);
95
+		$request->addWildcardField('share_names.'.$username);
96 96
 	}
97 97
 
98 98
 
@@ -109,8 +109,8 @@  discard block
 block discarded – undo
109 109
 		$currentDir = $this->withoutBeginSlash($this->withEndSlash($currentDir));
110 110
 		$request->addRegexFilters(
111 111
 			[
112
-				['share_names.' . $username => $currentDir . '.*'],
113
-				['title' => $currentDir . '.*']
112
+				['share_names.'.$username => $currentDir.'.*'],
113
+				['title' => $currentDir.'.*']
114 114
 			]
115 115
 		);
116 116
 	}
@@ -128,8 +128,8 @@  discard block
 block discarded – undo
128 128
 		$username = $this->filesService->secureUsername($request->getAuthor());
129 129
 		$request->addRegexFilters(
130 130
 			[
131
-				['share_names.' . $username => '.*\.' . $extension],
132
-				['title' => '.*\.' . $extension]
131
+				['share_names.'.$username => '.*\.'.$extension],
132
+				['title' => '.*\.'.$extension]
133 133
 			]
134 134
 		);
135 135
 	}
@@ -162,7 +162,7 @@  discard block
 block discarded – undo
162 162
 
163 163
 		if (in_array('filename', $in)) {
164 164
 			$username = $this->filesService->secureUsername($request->getAuthor());
165
-			$request->addLimitField('share_names.' . $username);
165
+			$request->addLimitField('share_names.'.$username);
166 166
 			$request->addLimitField('title');
167 167
 		}
168 168
 
@@ -337,6 +337,6 @@  discard block
 block discarded – undo
337 337
 	private function getWebdavId(int $fileId): string {
338 338
 		$instanceId = $this->configService->getSystemValue('instanceid');
339 339
 
340
-		return sprintf("%08s", $fileId) . $instanceId;
340
+		return sprintf("%08s", $fileId).$instanceId;
341 341
 	}
342 342
 }
Please login to merge, or discard this patch.
lib/Service/FilesService.php 1 patch
Spacing   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -117,7 +117,7 @@  discard block
 block discarded – undo
117 117
 		} catch (NotFoundException $e) {
118 118
 			return [];
119 119
 		} catch (Throwable $e) {
120
-			$this->logger->warning('Issue while retrieving rootFolder for ' . $userId, ['exception' => $e]);
120
+			$this->logger->warning('Issue while retrieving rootFolder for '.$userId, ['exception' => $e]);
121 121
 			return [];
122 122
 		}
123 123
 
@@ -366,7 +366,7 @@  discard block
 block discarded – undo
366 366
 		$tagIds = $this->systemTagObjectMapper->getTagIdsForObjects([$file->getId()], 'files');
367 367
 		if (array_key_exists($file->getId(), $tagIds)) {
368 368
 			$tags = array_values(
369
-				array_map(function (ISystemTag $tag): string {
369
+				array_map(function(ISystemTag $tag): string {
370 370
 					return $tag->getName();
371 371
 				}, $this->systemTagManager->getTagsByIds($tagIds[$file->getId()]))
372 372
 			);
@@ -384,7 +384,7 @@  discard block
 block discarded – undo
384 384
 				]
385 385
 			);
386 386
 		} else {
387
-			$this->logger->warning('stat() on File #' . $file->getId() . ' is not an array: ' . json_encode($stat));
387
+			$this->logger->warning('stat() on File #'.$file->getId().' is not an array: '.json_encode($stat));
388 388
 		}
389 389
 
390 390
 		return $document;
@@ -440,7 +440,7 @@  discard block
 block discarded – undo
440 440
 		}
441 441
 
442 442
 		if ($this->userManager->get($userId) === null) {
443
-			throw new NoUserException('User does not exist: ' . $userId);
443
+			throw new NoUserException('User does not exist: '.$userId);
444 444
 		}
445 445
 
446 446
 		$files = $this->rootFolder->getUserFolder($userId)
@@ -707,7 +707,7 @@  discard block
 block discarded – undo
707 707
 
708 708
 		$part = [];
709 709
 		foreach ($comments as $comment) {
710
-			$part[] = '<' . $comment->getActorId() . '> ' . $comment->getMessage();
710
+			$part[] = '<'.$comment->getActorId().'> '.$comment->getMessage();
711 711
 		}
712 712
 
713 713
 		$document->addPart('comments', implode(" \n ", $part));
@@ -741,7 +741,7 @@  discard block
 block discarded – undo
741 741
 				$shareNames[$this->secureUsername($username)] =
742 742
 					(!is_string($path)) ? $path = '' : $path;
743 743
 			} catch (Throwable $e) {
744
-				$this->logger->debug('Issue while getting information on documentId:' . $document->getId(), ['exception' => $e]);
744
+				$this->logger->debug('Issue while getting information on documentId:'.$document->getId(), ['exception' => $e]);
745 745
 			}
746 746
 		}
747 747
 
@@ -958,7 +958,7 @@  discard block
 block discarded – undo
958 958
 
959 959
 					// Construct XML
960 960
 					$diagram_xml = simplexml_load_string($diagram_str);
961
-					$content = $content . ' ' . $this->readDrawioXmlValue($diagram_xml);
961
+					$content = $content.' '.$this->readDrawioXmlValue($diagram_xml);
962 962
 				}
963 963
 			} catch (\Throwable $t) {
964 964
 			}
@@ -990,15 +990,15 @@  discard block
 block discarded – undo
990 990
 	private function readDrawioXmlValue(\SimpleXMLElement $element) {
991 991
 		$str = '';
992 992
 		if ($element['value'] !== null && trim(strval($element['value'])) !== '') {
993
-			$str = $str . " " . trim(strval($element['value']));
993
+			$str = $str." ".trim(strval($element['value']));
994 994
 		}
995 995
 		if ($element !== null && trim(strval($element)) !== '') {
996
-			$str = $str . " " . trim(strval($element));
996
+			$str = $str." ".trim(strval($element));
997 997
 		}
998 998
 
999 999
 		try {
1000 1000
 			foreach ($element->children() as $child) {
1001
-				$str = $str . " " . $this->readDrawioXmlValue($child);
1001
+				$str = $str." ".$this->readDrawioXmlValue($child);
1002 1002
 			}
1003 1003
 		} finally {
1004 1004
 		}
@@ -1251,7 +1251,7 @@  discard block
 block discarded – undo
1251 1251
 			$path = '';
1252 1252
 		}
1253 1253
 
1254
-		$result = (($entrySlash) ? '/' : '') . $path;
1254
+		$result = (($entrySlash) ? '/' : '').$path;
1255 1255
 		$this->logger->debug(
1256 1256
 			'getPathFromRoot', [
1257 1257
 				'path' => $path,
Please login to merge, or discard this patch.