Completed
Push — master ( 5bbe84...460a64 )
by
unknown
13s
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   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -139,7 +139,7 @@  discard block
 block discarded – undo
139 139
 		} catch (NotFoundException $e) {
140 140
 			return [];
141 141
 		} catch (Throwable $e) {
142
-			$this->logger->warning('Issue while retrieving rootFolder for ' . $userId, ['exception' => $e]);
142
+			$this->logger->warning('Issue while retrieving rootFolder for '.$userId, ['exception' => $e]);
143 143
 			return [];
144 144
 		}
145 145
 
@@ -388,7 +388,7 @@  discard block
 block discarded – undo
388 388
 		$tagIds = $this->systemTagObjectMapper->getTagIdsForObjects([$file->getId()], 'files');
389 389
 		if (array_key_exists($file->getId(), $tagIds)) {
390 390
 			$tags = array_values(
391
-				array_map(function (ISystemTag $tag): string {
391
+				array_map(function(ISystemTag $tag): string {
392 392
 					return $tag->getName();
393 393
 				}, $this->systemTagManager->getTagsByIds($tagIds[$file->getId()]))
394 394
 			);
@@ -406,7 +406,7 @@  discard block
 block discarded – undo
406 406
 				]
407 407
 			);
408 408
 		} else {
409
-			$this->logger->warning('stat() on File #' . $file->getId() . ' is not an array: ' . json_encode($stat));
409
+			$this->logger->warning('stat() on File #'.$file->getId().' is not an array: '.json_encode($stat));
410 410
 		}
411 411
 
412 412
 		return $document;
@@ -724,7 +724,7 @@  discard block
 block discarded – undo
724 724
 
725 725
 		$part = [];
726 726
 		foreach ($comments as $comment) {
727
-			$part[] = '<' . $comment->getActorId() . '> ' . $comment->getMessage();
727
+			$part[] = '<'.$comment->getActorId().'> '.$comment->getMessage();
728 728
 		}
729 729
 
730 730
 		$document->addPart('comments', implode(" \n ", $part));
@@ -758,7 +758,7 @@  discard block
 block discarded – undo
758 758
 				$shareNames[$this->secureUsername($username)] =
759 759
 					(!is_string($path)) ? $path = '' : $path;
760 760
 			} catch (Throwable $e) {
761
-				$this->logger->warning('Issue while getting information on documentId:' . $document->getId(), ['exception' => $e]);
761
+				$this->logger->warning('Issue while getting information on documentId:'.$document->getId(), ['exception' => $e]);
762 762
 			}
763 763
 		}
764 764
 
@@ -975,7 +975,7 @@  discard block
 block discarded – undo
975 975
 
976 976
 					// Construct XML
977 977
 					$diagram_xml = simplexml_load_string($diagram_str);
978
-					$content = $content . ' ' . $this->readDrawioXmlValue($diagram_xml);
978
+					$content = $content.' '.$this->readDrawioXmlValue($diagram_xml);
979 979
 				}
980 980
 			} catch (\Throwable $t) {
981 981
 			}
@@ -1007,15 +1007,15 @@  discard block
 block discarded – undo
1007 1007
 	private function readDrawioXmlValue(\SimpleXMLElement $element) {
1008 1008
 		$str = '';
1009 1009
 		if ($element['value'] !== null && trim(strval($element['value'])) !== '') {
1010
-			$str = $str . " " . trim(strval($element['value']));
1010
+			$str = $str." ".trim(strval($element['value']));
1011 1011
 		}
1012 1012
 		if ($element !== null && trim(strval($element)) !== '') {
1013
-			$str = $str . " " . trim(strval($element));
1013
+			$str = $str." ".trim(strval($element));
1014 1014
 		}
1015 1015
 
1016 1016
 		try {
1017 1017
 			foreach ($element->children() as $child) {
1018
-				$str = $str . " " . $this->readDrawioXmlValue($child);
1018
+				$str = $str." ".$this->readDrawioXmlValue($child);
1019 1019
 			}
1020 1020
 		} finally {
1021 1021
 		}
@@ -1266,7 +1266,7 @@  discard block
 block discarded – undo
1266 1266
 			$path = '';
1267 1267
 		}
1268 1268
 
1269
-		$result = (($entrySlash) ? '/' : '') . $path;
1269
+		$result = (($entrySlash) ? '/' : '').$path;
1270 1270
 		$this->logger->debug(
1271 1271
 			'getPathFromRoot', [
1272 1272
 				'path' => $path,
Please login to merge, or discard this patch.