Passed
Push — master ( 74e0b5...2dbeb5 )
by Roeland
11:58 queued 11s
created
apps/comments/lib/Search/CommentsSearchProvider.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -94,7 +94,7 @@  discard block
 block discarded – undo
94 94
 	public function search(IUser $user, ISearchQuery $query): SearchResult {
95 95
 		return SearchResult::complete(
96 96
 			$this->l10n->t('Comments'),
97
-			array_map(function (Result $result) {
97
+			array_map(function(Result $result) {
98 98
 				$path = $result->path;
99 99
 				$pathInfo = pathinfo($path);
100 100
 				$isUser = $this->userManager->userExists($result->authorId);
@@ -105,7 +105,7 @@  discard block
 block discarded – undo
105 105
 					$avatarUrl,
106 106
 					$result->name,
107 107
 					$path,
108
-					$this->urlGenerator->linkToRouteAbsolute('files.view.index',[
108
+					$this->urlGenerator->linkToRouteAbsolute('files.view.index', [
109 109
 						'dir' => $pathInfo['dirname'],
110 110
 						'scrollto' => $pathInfo['basename'],
111 111
 					]),
Please login to merge, or discard this patch.
apps/files/lib/Search/FilesSearchProvider.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -104,7 +104,7 @@  discard block
 block discarded – undo
104 104
 
105 105
 		return SearchResult::complete(
106 106
 			$this->l10n->t('Files'),
107
-			array_map(function (FileResult $result) {
107
+			array_map(function(FileResult $result) {
108 108
 				// Generate thumbnail url
109 109
 				$thumbnailUrl = $result->has_preview
110 110
 					? $this->urlGenerator->linkToRouteAbsolute('core.Preview.getPreviewByFileId', ['x' => 32, 'y' => 32, 'fileId' => $result->id])
@@ -129,7 +129,7 @@  discard block
 block discarded – undo
129 129
 	 */
130 130
 	private function formatSubline($result): string {
131 131
 		// Do not show the location if the file is in root
132
-		if ($result->path === '/' . $result->name) {
132
+		if ($result->path === '/'.$result->name) {
133 133
 			return '';
134 134
 		}
135 135
 
Please login to merge, or discard this patch.