summaryrefslogtreecommitdiffstats
path: root/lib/search
diff options
context:
space:
mode:
Diffstat (limited to 'lib/search')
-rw-r--r--lib/search/provider.php2
-rw-r--r--lib/search/provider/file.php10
-rw-r--r--lib/search/result.php2
3 files changed, 7 insertions, 7 deletions
diff --git a/lib/search/provider.php b/lib/search/provider.php
index b83c5aa61b6..b617b9c5d94 100644
--- a/lib/search/provider.php
+++ b/lib/search/provider.php
@@ -5,7 +5,7 @@
abstract class OC_Search_Provider {
private $options;
- public function __construct($options){
+ public function __construct($options) {
$this->options=$options;
}
diff --git a/lib/search/provider/file.php b/lib/search/provider/file.php
index 12a535876fe..50e16457672 100644
--- a/lib/search/provider/file.php
+++ b/lib/search/provider/file.php
@@ -1,17 +1,17 @@
<?php
class OC_Search_Provider_File extends OC_Search_Provider{
- function search($query){
+ function search($query) {
$files=OC_FileCache::search($query,true);
$results=array();
- foreach($files as $fileData){
+ foreach($files as $fileData) {
$file=$fileData['path'];
$mime=$fileData['mimetype'];
- if($mime=='httpd/unix-directory'){
+ if($mime=='httpd/unix-directory') {
$results[]=new OC_Search_Result(basename($file),'',OC_Helper::linkTo( 'files', 'index.php', array('dir' => $file)),'Files');
}else{
$mimeBase=$fileData['mimepart'];
- switch($mimeBase){
+ switch($mimeBase) {
case 'audio':
break;
case 'text':
@@ -21,7 +21,7 @@ class OC_Search_Provider_File extends OC_Search_Provider{
$results[]=new OC_Search_Result(basename($file),'',OC_Helper::linkTo( 'files', 'download.php', array('dir' => $file) ),'Images');
break;
default:
- if($mime=='application/xml'){
+ if($mime=='application/xml') {
$results[]=new OC_Search_Result(basename($file),'',OC_Helper::linkTo( 'files', 'download.php', array('dir' => $file) ),'Text');
}else{
$results[]=new OC_Search_Result(basename($file),'',OC_Helper::linkTo( 'files', 'download.php', array('dir' => $file) ),'Files');
diff --git a/lib/search/result.php b/lib/search/result.php
index cd78a5cf253..63b5cfabce6 100644
--- a/lib/search/result.php
+++ b/lib/search/result.php
@@ -15,7 +15,7 @@ class OC_Search_Result{
* @param string $link link for the result
* @param string $type the type of result as human readable string ('File', 'Music', etc)
*/
- public function __construct($name,$text,$link,$type){
+ public function __construct($name,$text,$link,$type) {
$this->name=$name;
$this->text=$text;
$this->link=$link;