Passed
Push — master ( 3f88db...32ded8 )
by Christoph
17:12 queued 26s
created
apps/files/lib/Search/FilesSearchProvider.php 1 patch
Spacing   +3 added lines, -3 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])
@@ -117,7 +117,7 @@  discard block
 block discarded – undo
117 117
 					$this->urlGenerator->getAbsoluteURL($result->link),
118 118
 					$result->type === 'folder' ? 'icon-folder' : $this->mimeTypeDetector->mimeTypeIcon($result->mime_type)
119 119
 				);
120
-				$searchResultEntry->addAttribute('fileId', (string)$result->id);
120
+				$searchResultEntry->addAttribute('fileId', (string) $result->id);
121 121
 				$searchResultEntry->addAttribute('path', $result->path);
122 122
 				return $searchResultEntry;
123 123
 			}, $this->fileSearch->search($query->getTerm()))
@@ -132,7 +132,7 @@  discard block
 block discarded – undo
132 132
 	 */
133 133
 	private function formatSubline($result): string {
134 134
 		// Do not show the location if the file is in root
135
-		if ($result->path === '/' . $result->name) {
135
+		if ($result->path === '/'.$result->name) {
136 136
 			return '';
137 137
 		}
138 138
 
Please login to merge, or discard this patch.