aboutsummaryrefslogtreecommitdiffstats
path: root/lib/private/Search/Provider/File.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/private/Search/Provider/File.php')
-rw-r--r--lib/private/Search/Provider/File.php9
1 files changed, 4 insertions, 5 deletions
diff --git a/lib/private/Search/Provider/File.php b/lib/private/Search/Provider/File.php
index 734878be982..02521460d8c 100644
--- a/lib/private/Search/Provider/File.php
+++ b/lib/private/Search/Provider/File.php
@@ -54,19 +54,19 @@ class File extends \OCP\Search\Provider {
continue;
}
// create audio result
- if($fileData['mimepart'] === 'audio'){
+ if ($fileData['mimepart'] === 'audio') {
$result = new \OC\Search\Result\Audio($fileData);
}
// create image result
- elseif($fileData['mimepart'] === 'image'){
+ elseif ($fileData['mimepart'] === 'image') {
$result = new \OC\Search\Result\Image($fileData);
}
// create folder result
- elseif($fileData['mimetype'] === 'httpd/unix-directory'){
+ elseif ($fileData['mimetype'] === 'httpd/unix-directory') {
$result = new \OC\Search\Result\Folder($fileData);
}
// or create file result
- else{
+ else {
$result = new \OC\Search\Result\File($fileData);
}
// add to results
@@ -75,5 +75,4 @@ class File extends \OCP\Search\Provider {
// return
return $results;
}
-
}