Completed
Pull Request — master (#96)
by Robin
01:20
created
appinfo/autoload.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -28,9 +28,9 @@
 block discarded – undo
28 28
 
29 29
 namespace OCA\Files_FullTextSearch\AppInfo;
30 30
 
31
-$composerDir = __DIR__ . '/../vendor/';
31
+$composerDir = __DIR__.'/../vendor/';
32 32
 
33
-if (is_dir($composerDir) && file_exists($composerDir . 'autoload.php')) {
34
-	require_once $composerDir . 'autoload.php';
33
+if (is_dir($composerDir) && file_exists($composerDir.'autoload.php')) {
34
+	require_once $composerDir.'autoload.php';
35 35
 }
36 36
 
Please login to merge, or discard this patch.
appinfo/app.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -28,7 +28,7 @@
 block discarded – undo
28 28
 
29 29
 use OCP\AppFramework\QueryException;
30 30
 
31
-require_once __DIR__ . '/autoload.php';
31
+require_once __DIR__.'/autoload.php';
32 32
 
33 33
 
34 34
 $app = new Application();
Please login to merge, or discard this patch.
lib/Db/CoreRequestBuilder.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -90,8 +90,8 @@  discard block
 block discarded – undo
90 90
 	 */
91 91
 	private function limitToDBField(IQueryBuilder &$qb, string $field, string $value) {
92 92
 		$expr = $qb->expr();
93
-		$pf = ($qb->getType() === QueryBuilder::SELECT) ? $this->defaultSelectAlias . '.' : '';
94
-		$qb->andWhere($expr->eq($pf . $field, $qb->createNamedParameter($value)));
93
+		$pf = ($qb->getType() === QueryBuilder::SELECT) ? $this->defaultSelectAlias.'.' : '';
94
+		$qb->andWhere($expr->eq($pf.$field, $qb->createNamedParameter($value)));
95 95
 	}
96 96
 
97 97
 
@@ -102,8 +102,8 @@  discard block
 block discarded – undo
102 102
 	 */
103 103
 	private function limitToDBFieldInt(IQueryBuilder &$qb, string $field, int $value) {
104 104
 		$expr = $qb->expr();
105
-		$pf = ($qb->getType() === QueryBuilder::SELECT) ? $this->defaultSelectAlias . '.' : '';
106
-		$qb->andWhere($expr->eq($pf . $field, $qb->createNamedParameter($value)));
105
+		$pf = ($qb->getType() === QueryBuilder::SELECT) ? $this->defaultSelectAlias.'.' : '';
106
+		$qb->andWhere($expr->eq($pf.$field, $qb->createNamedParameter($value)));
107 107
 	}
108 108
 
109 109
 
Please login to merge, or discard this patch.
lib/Service/ConfigService.php 2 patches
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -272,9 +272,9 @@
 block discarded – undo
272 272
 
273 273
 
274 274
 	/**
275
-	 * @param $major
276
-	 * @param $sub
277
-	 * @param $minor
275
+	 * @param integer $major
276
+	 * @param integer $sub
277
+	 * @param integer $minor
278 278
 	 *
279 279
 	 * @return bool
280 280
 	 */
Please login to merge, or discard this 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/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/FilesService.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1009,7 +1009,7 @@
 block discarded – undo
1009 1009
 	}
1010 1010
 
1011 1011
 	/**
1012
-	 * @param IIndexDocument $document
1012
+	 * @param FilesDocument $document
1013 1013
 	 * @param Throwable $t
1014 1014
 	 */
1015 1015
 	private function manageContentErrorException(IIndexDocument $document, Throwable $t) {
Please login to merge, or discard this patch.
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -498,7 +498,7 @@  discard block
 block discarded – undo
498 498
 			$document->getIndex()
499 499
 					 ->setStatus(IIndex::INDEX_IGNORE);
500 500
 			$this->miscService->log(
501
-				'Exception while generateDocument: ' . $e->getMessage() . ' - trace: '
501
+				'Exception while generateDocument: '.$e->getMessage().' - trace: '
502 502
 				. json_encode($e->getTrace())
503 503
 			);
504 504
 		}
@@ -687,7 +687,7 @@  discard block
 block discarded – undo
687 687
 
688 688
 		$part = [];
689 689
 		foreach ($comments as $comment) {
690
-			$part[] = '<' . $comment->getActorId() . '> ' . $comment->getMessage();
690
+			$part[] = '<'.$comment->getActorId().'> '.$comment->getMessage();
691 691
 		}
692 692
 
693 693
 		$document->addPart('comments', implode(" \n ", $part));
@@ -722,7 +722,7 @@  discard block
 block discarded – undo
722 722
 
723 723
 			} catch (Exception $e) {
724 724
 				$this->miscService->log(
725
-					'Issue while getting information on documentId:' . $document->getId(), 0
725
+					'Issue while getting information on documentId:'.$document->getId(), 0
726 726
 				);
727 727
 			}
728 728
 		}
@@ -1152,7 +1152,7 @@  discard block
 block discarded – undo
1152 1152
 			$path = '';
1153 1153
 		}
1154 1154
 
1155
-		return (($entrySlash) ? '/' : '') . $path;
1155
+		return (($entrySlash) ? '/' : '').$path;
1156 1156
 	}
1157 1157
 
1158 1158
 }
Please login to merge, or discard this patch.
lib/Service/ExternalFilesService.php 2 patches
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -240,8 +240,8 @@
 block discarded – undo
240 240
 
241 241
 		try {
242 242
 			if($file->getMountPoint()->getMountId() === null){
243
-                             throw new FileIsNotIndexableException('getMountId is null');
244
-                        }
243
+							 throw new FileIsNotIndexableException('getMountId is null');
244
+						}
245 245
 			
246 246
 			return $this->getExternalMountById(
247 247
 				$file->getMountPoint()
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -239,7 +239,7 @@
 block discarded – undo
239 239
 	private function getMountPoint(Node $file): MountPoint {
240 240
 
241 241
 		try {
242
-			if($file->getMountPoint()->getMountId() === null){
242
+			if ($file->getMountPoint()->getMountId() === null) {
243 243
                              throw new FileIsNotIndexableException('getMountId is null');
244 244
                         }
245 245
 			
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
@@ -110,10 +110,10 @@  discard block
 block discarded – undo
110 110
 	 */
111 111
 	private function searchQueryShareNames(ISearchRequest $request) {
112 112
 		$username = $this->miscService->secureUsername($request->getAuthor());
113
-		$request->addField('share_names.' . $username);
113
+		$request->addField('share_names.'.$username);
114 114
 
115 115
 		$request->addWildcardField('title');
116
-		$request->addWildcardField('share_names.' . $username);
116
+		$request->addWildcardField('share_names.'.$username);
117 117
 	}
118 118
 
119 119
 
@@ -131,8 +131,8 @@  discard block
 block discarded – undo
131 131
 		$currentDir = $this->withoutBeginSlash($this->withEndSlash($currentDir));
132 132
 		$request->addRegexFilters(
133 133
 			[
134
-				['share_names.' . $username => $currentDir . '.*'],
135
-				['title' => $currentDir . '.*']
134
+				['share_names.'.$username => $currentDir.'.*'],
135
+				['title' => $currentDir.'.*']
136 136
 			]
137 137
 		);
138 138
 	}
@@ -150,8 +150,8 @@  discard block
 block discarded – undo
150 150
 		$username = $this->miscService->secureUsername($request->getAuthor());
151 151
 		$request->addRegexFilters(
152 152
 			[
153
-				['share_names.' . $username => '.*\.' . $extension],
154
-				['title' => '.*\.' . $extension]
153
+				['share_names.'.$username => '.*\.'.$extension],
154
+				['title' => '.*\.'.$extension]
155 155
 			]
156 156
 		);
157 157
 	}
@@ -185,7 +185,7 @@  discard block
 block discarded – undo
185 185
 
186 186
 		if (in_array('filename', $in)) {
187 187
 			$username = $this->miscService->secureUsername($request->getAuthor());
188
-			$request->addLimitField('share_names.' . $username);
188
+			$request->addLimitField('share_names.'.$username);
189 189
 			$request->addLimitField('title');
190 190
 		}
191 191
 
@@ -224,7 +224,7 @@  discard block
 block discarded – undo
224 224
 				$filesDocuments[] = $filesDocument;
225 225
 			} catch (Exception $e) {
226 226
 				$this->miscService->log(
227
-					'Exception while improving searchresult: ' . $e->getMessage() . ' - trace: '
227
+					'Exception while improving searchresult: '.$e->getMessage().' - trace: '
228 228
 					. json_encode($e->getTrace())
229 229
 				);
230 230
 			}
@@ -352,7 +352,7 @@  discard block
 block discarded – undo
352 352
 	private function getWebdavId(int $fileId): string {
353 353
 		$instanceId = $this->configService->getSystemValue('instanceid');
354 354
 
355
-		return sprintf("%08s", $fileId) . $instanceId;
355
+		return sprintf("%08s", $fileId).$instanceId;
356 356
 	}
357 357
 
358 358
 
Please login to merge, or discard this patch.