Completed
Pull Request — master (#172)
by Maxence
18s
created
lib/Service/FilesService.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -234,7 +234,7 @@  discard block
 block discarded – undo
234 234
 									  ->get($indexOptions->getOption('path', '/'));
235 235
 		} catch (Throwable $e) {
236 236
 			$this->e($e, ['userId' => $userId, 'options' => $indexOptions]);
237
-			\OC::$server->getLogger()->log(2, 'Issue while retrieving rootFolder for ' . $userId);
237
+			\OC::$server->getLogger()->log(2, 'Issue while retrieving rootFolder for '.$userId);
238 238
 
239 239
 			return [];
240 240
 		}
@@ -485,7 +485,7 @@  discard block
 block discarded – undo
485 485
 		$tagIds = $this->systemTagObjectMapper->getTagIdsForObjects([$file->getId()], 'files');
486 486
 		if (array_key_exists($file->getId(), $tagIds)) {
487 487
 			$tags = array_values(
488
-				array_map(function (ISystemTag $tag): string {
488
+				array_map(function(ISystemTag $tag): string {
489 489
 					return $tag->getName();
490 490
 				}, $this->systemTagManager->getTagsByIds($tagIds[$file->getId()]))
491 491
 			);
@@ -503,7 +503,7 @@  discard block
 block discarded – undo
503 503
 				]
504 504
 			);
505 505
 		} else {
506
-			$this->log(2, 'stat() on File #' . $file->getId() . ' is not an array: ' . json_encode($stat));
506
+			$this->log(2, 'stat() on File #'.$file->getId().' is not an array: '.json_encode($stat));
507 507
 		}
508 508
 
509 509
 		return $document;
@@ -625,8 +625,8 @@  discard block
 block discarded – undo
625 625
 			$document->getIndex()
626 626
 					 ->setStatus(IIndex::INDEX_IGNORE);
627 627
 			$this->miscService->log(
628
-				'Exception while generateDocument: ' . $e->getMessage() . ' (' . get_class($e) . ') at '
629
-				. $e->getFile() . ' line ' . $e->getLine()
628
+				'Exception while generateDocument: '.$e->getMessage().' ('.get_class($e).') at '
629
+				. $e->getFile().' line '.$e->getLine()
630 630
 			);
631 631
 		}
632 632
 	}
@@ -832,7 +832,7 @@  discard block
 block discarded – undo
832 832
 
833 833
 		$part = [];
834 834
 		foreach ($comments as $comment) {
835
-			$part[] = '<' . $comment->getActorId() . '> ' . $comment->getMessage();
835
+			$part[] = '<'.$comment->getActorId().'> '.$comment->getMessage();
836 836
 		}
837 837
 
838 838
 		$document->addPart('comments', implode(" \n ", $part));
@@ -869,7 +869,7 @@  discard block
 block discarded – undo
869 869
 
870 870
 			} catch (Throwable $e) {
871 871
 				$this->miscService->log(
872
-					'Issue while getting information on documentId:' . $document->getId(), 0
872
+					'Issue while getting information on documentId:'.$document->getId(), 0
873 873
 				);
874 874
 			}
875 875
 		}
@@ -1312,7 +1312,7 @@  discard block
 block discarded – undo
1312 1312
 			$path = '';
1313 1313
 		}
1314 1314
 
1315
-		$result = (($entrySlash) ? '/' : '') . $path;
1315
+		$result = (($entrySlash) ? '/' : '').$path;
1316 1316
 		$this->debug(
1317 1317
 			'getPathFromRoot', [
1318 1318
 								 'path' => $path,
Please login to merge, or discard this patch.