aboutsummaryrefslogtreecommitdiffstats
path: root/lib/private/Search
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
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')
-rw-r--r--lib/private/Search/Provider/File.php9
-rw-r--r--lib/private/Search/Result/File.php2
-rw-r--r--lib/private/Search/Result/Folder.php1
3 files changed, 4 insertions, 8 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;
}
-
}
diff --git a/lib/private/Search/Result/File.php b/lib/private/Search/Result/File.php
index cd605c49821..b0f6b3df622 100644
--- a/lib/private/Search/Result/File.php
+++ b/lib/private/Search/Result/File.php
@@ -75,7 +75,6 @@ class File extends \OCP\Search\Result {
* @param FileInfo $data file data given by provider
*/
public function __construct(FileInfo $data) {
-
$path = $this->getRelativePath($data->getPath());
$info = pathinfo($path);
@@ -113,5 +112,4 @@ class File extends \OCP\Search\Result {
}
return self::$userFolderCache->getRelativePath($path);
}
-
}
diff --git a/lib/private/Search/Result/Folder.php b/lib/private/Search/Result/Folder.php
index 0a746221ee0..aa166cff8fc 100644
--- a/lib/private/Search/Result/Folder.php
+++ b/lib/private/Search/Result/Folder.php
@@ -34,5 +34,4 @@ class Folder extends File {
* @var string
*/
public $type = 'folder';
-
}