Passed
Push — master ( 7ac6ee...bf39ad )
by Roeland
13:54 queued 15s
created
apps/files/lib/Search/FilesSearchProvider.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -105,7 +105,7 @@  discard block
 block discarded – undo
105 105
 
106 106
 		return SearchResult::paginated(
107 107
 			$this->l10n->t('Files'),
108
-			array_map(function (FileResult $result) {
108
+			array_map(function(FileResult $result) {
109 109
 				// Generate thumbnail url
110 110
 				$thumbnailUrl = $result->has_preview
111 111
 					? $this->urlGenerator->linkToRouteAbsolute('core.Preview.getPreviewByFileId', ['x' => 32, 'y' => 32, 'fileId' => $result->id])
@@ -118,10 +118,10 @@  discard block
 block discarded – undo
118 118
 					$this->urlGenerator->getAbsoluteURL($result->link),
119 119
 					$result->type === 'folder' ? 'icon-folder' : $this->mimeTypeDetector->mimeTypeIcon($result->mime_type)
120 120
 				);
121
-				$searchResultEntry->addAttribute('fileId', (string)$result->id);
121
+				$searchResultEntry->addAttribute('fileId', (string) $result->id);
122 122
 				$searchResultEntry->addAttribute('path', $result->path);
123 123
 				return $searchResultEntry;
124
-			}, $this->fileSearch->search($query->getTerm(), $query->getLimit(), (int)$query->getCursor())),
124
+			}, $this->fileSearch->search($query->getTerm(), $query->getLimit(), (int) $query->getCursor())),
125 125
 			$query->getCursor() + $query->getLimit()
126 126
 		);
127 127
 	}
@@ -134,7 +134,7 @@  discard block
 block discarded – undo
134 134
 	 */
135 135
 	private function formatSubline($result): string {
136 136
 		// Do not show the location if the file is in root
137
-		if ($result->path === '/' . $result->name) {
137
+		if ($result->path === '/'.$result->name) {
138 138
 			return '';
139 139
 		}
140 140
 
Please login to merge, or discard this patch.