aboutsummaryrefslogtreecommitdiffstats
path: root/lib/private/Search/Provider/File.php
diff options
context:
space:
mode:
authorChristoph Wurst <ChristophWurst@users.noreply.github.com>2020-04-10 16:38:23 +0200
committerGitHub <noreply@github.com>2020-04-10 16:38:23 +0200
commit1762a409f954fd9a66e7572704ea9ba7813601b4 (patch)
tree554d8f6bc93f397755d0a7c050041a9973e25396 /lib/private/Search/Provider/File.php
parenteba3726e1e1b7ce0a98df4552cfdecfe05e0d63a (diff)
parentcaff1023ea72bb2ea94130e18a2a6e2ccf819e5f (diff)
downloadnextcloud-server-1762a409f954fd9a66e7572704ea9ba7813601b4.tar.gz
nextcloud-server-1762a409f954fd9a66e7572704ea9ba7813601b4.zip
Merge pull request #20422 from nextcloud/techdebt/format-control-structs-classes-methods
Format control structures, classes, methods and function
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;
}
-
}