Completed
Push — master ( 6d61a8...c1687f )
by Maxence
45s queued 24s
created
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.