Completed
Pull Request — master (#87)
by Robin
01:28
created
lib/Service/ConfigService.php 3 patches
Doc Comments   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -277,9 +277,9 @@  discard block
 block discarded – undo
277 277
 
278 278
 
279 279
 	/**
280
-	 * @param $major
281
-	 * @param $sub
282
-	 * @param $minor
280
+	 * @param integer $major
281
+	 * @param integer $sub
282
+	 * @param integer $minor
283 283
 	 *
284 284
 	 * @return bool
285 285
 	 */
@@ -295,7 +295,7 @@  discard block
 block discarded – undo
295 295
 	 * Check if the path is excluded via configuration
296 296
 	 * and therefore the file shouldn't be indexed
297 297
 	 * 
298
-	 * @param $filePath The file to be indexed
298
+	 * @param string $filePath The file to be indexed
299 299
 	 * 
300 300
 	 * @return bool
301 301
 	 */
Please login to merge, or discard this patch.
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -330,7 +330,7 @@
 block discarded – undo
330 330
 		}
331 331
 
332 332
 		// check 'startsWith'
333
-    	if ($len <= strlen($filePath) && substr($filePath, 0, $len) === $excludePath) {
333
+		if ($len <= strlen($filePath) && substr($filePath, 0, $len) === $excludePath) {
334 334
 			return true;
335 335
 		}
336 336
 
Please login to merge, or discard this patch.
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -241,7 +241,7 @@  discard block
 block discarded – undo
241 241
 	 */
242 242
 	public function setDocumentIndexOption(FilesDocument $document, string $option) {
243 243
 		$document->getIndex()
244
-				 ->addOption('_' . $option, (string)$this->getAppValue($option));
244
+				 ->addOption('_'.$option, (string)$this->getAppValue($option));
245 245
 	}
246 246
 
247 247
 
@@ -301,7 +301,7 @@  discard block
 block discarded – undo
301 301
 	 */
302 302
 	public function isPathExcluded($filePath): bool {
303 303
 		$excludedPaths = $this->getExcludedPaths();
304
-		foreach($excludedPaths as $excludedPath) {
304
+		foreach ($excludedPaths as $excludedPath) {
305 305
 			if ($this->isPathMatch($filePath, $excludedPath)) {
306 306
 				return true;
307 307
 			}
@@ -335,7 +335,7 @@  discard block
 block discarded – undo
335 335
 		}
336 336
 
337 337
 		// check regex match
338
-		$regexPattern = '/' . str_replace('/', '\/', $excludePath) . '/';
338
+		$regexPattern = '/'.str_replace('/', '\/', $excludePath).'/';
339 339
 		if (preg_match($regexPattern, $filePath)) {
340 340
 			return true;
341 341
 		}
Please login to merge, or discard this patch.