Completed
Push — master ( 18c8b9...7dc823 )
by Maxence
16s queued 12s
created
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/ExtensionService.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -87,7 +87,7 @@  discard block
 block discarded – undo
87 87
 	 * @param FilesDocument $document
88 88
 	 * @param Node $file
89 89
 	 */
90
-	public function fileIndexing(FilesDocument &$document, Node $file) {
90
+	public function fileIndexing(FilesDocument & $document, Node $file) {
91 91
 		$this->dispatch('Files_FullTextSearch.onFileIndexing', ['file' => $file, 'document' => &$document]);
92 92
 	}
93 93
 
@@ -95,7 +95,7 @@  discard block
 block discarded – undo
95 95
 	/**
96 96
 	 * @param ISearchRequest $request
97 97
 	 */
98
-	public function searchRequest(ISearchRequest &$request) {
98
+	public function searchRequest(ISearchRequest & $request) {
99 99
 		$this->dispatch('Files_FullTextSearch.onSearchRequest', ['request' => &$request]);
100 100
 	}
101 101
 
@@ -103,7 +103,7 @@  discard block
 block discarded – undo
103 103
 	/**
104 104
 	 * @param ISearchResult $result
105 105
 	 */
106
-	public function searchResult(ISearchResult &$result) {
106
+	public function searchResult(ISearchResult & $result) {
107 107
 		$this->dispatch('Files_FullTextSearch.onSearchResult', ['result' => &$result]);
108 108
 	}
109 109
 
@@ -111,7 +111,7 @@  discard block
 block discarded – undo
111 111
 	/**
112 112
 	 * @param IIndexDocument $document
113 113
 	 */
114
-	public function indexComparing(IIndexDocument &$document) {
114
+	public function indexComparing(IIndexDocument & $document) {
115 115
 		$this->dispatch('Files_FullTextSearch.onIndexComparing', ['document' => &$document]);
116 116
 	}
117 117
 
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/Service/GroupFoldersService.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -159,7 +159,7 @@  discard block
 block discarded – undo
159 159
 	 * @param FilesDocument $document
160 160
 	 * @param Node $file
161 161
 	 */
162
-	public function updateDocumentAccess(FilesDocument &$document, Node $file) {
162
+	public function updateDocumentAccess(FilesDocument & $document, Node $file) {
163 163
 		if ($document->getSource() !== ConfigService::FILES_GROUP_FOLDERS) {
164 164
 			return;
165 165
 		}
@@ -222,7 +222,7 @@  discard block
 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/SearchService.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -122,10 +122,10 @@  discard block
 block discarded – undo
122 122
 	 */
123 123
 	private function searchQueryShareNames(ISearchRequest $request) {
124 124
 		$username = $this->miscService->secureUsername($request->getAuthor());
125
-		$request->addField('share_names.' . $username);
125
+		$request->addField('share_names.'.$username);
126 126
 
127 127
 		$request->addWildcardField('title');
128
-		$request->addWildcardField('share_names.' . $username);
128
+		$request->addWildcardField('share_names.'.$username);
129 129
 	}
130 130
 
131 131
 
@@ -142,8 +142,8 @@  discard block
 block discarded – undo
142 142
 		$currentDir = $this->withoutBeginSlash($this->withEndSlash($currentDir));
143 143
 		$request->addRegexFilters(
144 144
 			[
145
-				['share_names.' . $username => $currentDir . '.*'],
146
-				['title' => $currentDir . '.*']
145
+				['share_names.'.$username => $currentDir.'.*'],
146
+				['title' => $currentDir.'.*']
147 147
 			]
148 148
 		);
149 149
 	}
@@ -161,8 +161,8 @@  discard block
 block discarded – undo
161 161
 		$username = $this->miscService->secureUsername($request->getAuthor());
162 162
 		$request->addRegexFilters(
163 163
 			[
164
-				['share_names.' . $username => '.*\.' . $extension],
165
-				['title' => '.*\.' . $extension]
164
+				['share_names.'.$username => '.*\.'.$extension],
165
+				['title' => '.*\.'.$extension]
166 166
 			]
167 167
 		);
168 168
 	}
@@ -195,7 +195,7 @@  discard block
 block discarded – undo
195 195
 
196 196
 		if (in_array('filename', $in)) {
197 197
 			$username = $this->miscService->secureUsername($request->getAuthor());
198
-			$request->addLimitField('share_names.' . $username);
198
+			$request->addLimitField('share_names.'.$username);
199 199
 			$request->addLimitField('title');
200 200
 		}
201 201
 
@@ -247,7 +247,7 @@  discard block
 block discarded – undo
247 247
 				$filesDocuments[] = $filesDocument;
248 248
 			} catch (Exception $e) {
249 249
 				$this->miscService->log(
250
-					'Exception while improving searchresult: ' . $e->getMessage() . ' - trace: '
250
+					'Exception while improving searchresult: '.$e->getMessage().' - trace: '
251 251
 					. json_encode($e->getTrace())
252 252
 				);
253 253
 			}
@@ -365,6 +365,6 @@  discard block
 block discarded – undo
365 365
 	private function getWebdavId(int $fileId): string {
366 366
 		$instanceId = $this->configService->getSystemValue('instanceid');
367 367
 
368
-		return sprintf("%08s", $fileId) . $instanceId;
368
+		return sprintf("%08s", $fileId).$instanceId;
369 369
 	}
370 370
 }
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/FilesService.php 1 patch
Spacing   +12 added lines, -12 removed lines patch added patch discarded remove patch
@@ -232,7 +232,7 @@  discard block
 block discarded – undo
232 232
 		} catch (NotFoundException $e) {
233 233
 			return [];
234 234
 		} catch (Throwable $e) {
235
-			$this->log(2, 'Issue while retrieving rootFolder for ' . $userId);
235
+			$this->log(2, 'Issue while retrieving rootFolder for '.$userId);
236 236
 
237 237
 			return [];
238 238
 		}
@@ -482,7 +482,7 @@  discard block
 block discarded – undo
482 482
 		$tagIds = $this->systemTagObjectMapper->getTagIdsForObjects([$file->getId()], 'files');
483 483
 		if (array_key_exists($file->getId(), $tagIds)) {
484 484
 			$tags = array_values(
485
-				array_map(function (ISystemTag $tag): string {
485
+				array_map(function(ISystemTag $tag): string {
486 486
 					return $tag->getName();
487 487
 				}, $this->systemTagManager->getTagsByIds($tagIds[$file->getId()]))
488 488
 			);
@@ -500,7 +500,7 @@  discard block
 block discarded – undo
500 500
 				]
501 501
 			);
502 502
 		} else {
503
-			$this->log(2, 'stat() on File #' . $file->getId() . ' is not an array: ' . json_encode($stat));
503
+			$this->log(2, 'stat() on File #'.$file->getId().' is not an array: '.json_encode($stat));
504 504
 		}
505 505
 
506 506
 		return $document;
@@ -617,8 +617,8 @@  discard block
 block discarded – undo
617 617
 			$document->getIndex()
618 618
 					 ->setStatus(IIndex::INDEX_IGNORE);
619 619
 			$this->miscService->log(
620
-				'Exception while generateDocument: ' . $e->getMessage() . ' (' . get_class($e) . ') at '
621
-				. $e->getFile() . ' line ' . $e->getLine()
620
+				'Exception while generateDocument: '.$e->getMessage().' ('.get_class($e).') at '
621
+				. $e->getFile().' line '.$e->getLine()
622 622
 			);
623 623
 		}
624 624
 	}
@@ -821,7 +821,7 @@  discard block
 block discarded – undo
821 821
 
822 822
 		$part = [];
823 823
 		foreach ($comments as $comment) {
824
-			$part[] = '<' . $comment->getActorId() . '> ' . $comment->getMessage();
824
+			$part[] = '<'.$comment->getActorId().'> '.$comment->getMessage();
825 825
 		}
826 826
 
827 827
 		$document->addPart('comments', implode(" \n ", $part));
@@ -856,7 +856,7 @@  discard block
 block discarded – undo
856 856
 					(!is_string($path)) ? $path = '' : $path;
857 857
 			} catch (Throwable $e) {
858 858
 				$this->miscService->log(
859
-					'Issue while getting information on documentId:' . $document->getId(), 0
859
+					'Issue while getting information on documentId:'.$document->getId(), 0
860 860
 				);
861 861
 			}
862 862
 		}
@@ -1074,7 +1074,7 @@  discard block
 block discarded – undo
1074 1074
 
1075 1075
 					// Construct XML
1076 1076
 					$diagram_xml = simplexml_load_string($diagram_str);
1077
-					$content = $content . ' ' . $this->readDrawioXmlValue($diagram_xml);
1077
+					$content = $content.' '.$this->readDrawioXmlValue($diagram_xml);
1078 1078
 				}
1079 1079
 			} catch (\Throwable $t) {
1080 1080
 			}
@@ -1106,15 +1106,15 @@  discard block
 block discarded – undo
1106 1106
 	private function readDrawioXmlValue(\SimpleXMLElement $element) {
1107 1107
 		$str = '';
1108 1108
 		if ($element['value'] !== null && trim(strval($element['value'])) !== '') {
1109
-			$str = $str . " " . trim(strval($element['value']));
1109
+			$str = $str." ".trim(strval($element['value']));
1110 1110
 		}
1111 1111
 		if ($element !== null && trim(strval($element)) !== '') {
1112
-			$str = $str . " " . trim(strval($element));
1112
+			$str = $str." ".trim(strval($element));
1113 1113
 		}
1114 1114
 
1115 1115
 		try {
1116 1116
 			foreach ($element->children() as $child) {
1117
-				$str = $str . " " . $this->readDrawioXmlValue($child);
1117
+				$str = $str." ".$this->readDrawioXmlValue($child);
1118 1118
 			}
1119 1119
 		} finally {
1120 1120
 		}
@@ -1373,7 +1373,7 @@  discard block
 block discarded – undo
1373 1373
 			$path = '';
1374 1374
 		}
1375 1375
 
1376
-		$result = (($entrySlash) ? '/' : '') . $path;
1376
+		$result = (($entrySlash) ? '/' : '').$path;
1377 1377
 		$this->debug(
1378 1378
 			'getPathFromRoot', [
1379 1379
 				'path' => $path,
Please login to merge, or discard this patch.