diff options
author | Jörn Friedrich Dreyer <jfd@butonic.de> | 2014-06-05 19:35:24 +0200 |
---|---|---|
committer | Jörn Friedrich Dreyer <jfd@butonic.de> | 2014-06-05 19:49:21 +0200 |
commit | 5034bd1b129b75e7b571cb0ed239d02010c806f7 (patch) | |
tree | f92d4c71fde5c9437eda08fc98c0d14039a5e54a /lib/private/search.php | |
parent | 5dc2e73fe08189833c0398117916b752b0f730d6 (diff) | |
download | nextcloud-server-5034bd1b129b75e7b571cb0ed239d02010c806f7.tar.gz nextcloud-server-5034bd1b129b75e7b571cb0ed239d02010c806f7.zip |
minor phpdoc cleanup and imports
Diffstat (limited to 'lib/private/search.php')
-rw-r--r-- | lib/private/search.php | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/lib/private/search.php b/lib/private/search.php index 966b0570135..8ac9e9fdf33 100644 --- a/lib/private/search.php +++ b/lib/private/search.php @@ -21,6 +21,7 @@ */ namespace OC; +use OC\Search\Provider; /** * Provide an interface to all search providers @@ -32,13 +33,14 @@ class Search { /** * Search all providers for $query - * @param string query + * @param string $query * @return array An array of OC\Search\Result's */ public static function search($query) { self::initProviders(); $results=array(); foreach(self::$providers as $provider) { + /** @var $provider Provider */ $results=array_merge($results, $provider->search($query)); } return $results; @@ -69,7 +71,8 @@ class Search { /** * Register a new search provider to search with - * @param string $provider class name of a OC\Search\Provider + * @param string $class class name of a OC\Search\Provider + * @param array $options optional */ public static function registerProvider($class, $options=array()) { self::$registeredProviders[]=array('class'=>$class, 'options'=>$options); |