summaryrefslogtreecommitdiffstats
path: root/lib/public
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2014-04-17 16:08:15 +0200
committerMorris Jobke <hey@morrisjobke.de>2014-04-17 16:08:15 +0200
commita2a0eb370b9b8473300e4b687b2bf2e176074f94 (patch)
tree043458efab8994a0267bae97b5616ff517b5169d /lib/public
parentfe654ece99adadb1e4e81c31c6afecd038a2f14b (diff)
parentcc8a4511fea5108cd088d49a27cb34a59d7d59e5 (diff)
downloadnextcloud-server-a2a0eb370b9b8473300e4b687b2bf2e176074f94.tar.gz
nextcloud-server-a2a0eb370b9b8473300e4b687b2bf2e176074f94.zip
Merge pull request #8222 from owncloud/type-hinting
Type hinting fixes
Diffstat (limited to 'lib/public')
-rw-r--r--lib/public/route/iroute.php6
-rw-r--r--lib/public/route/irouter.php6
-rw-r--r--lib/public/template.php2
3 files changed, 13 insertions, 1 deletions
diff --git a/lib/public/route/iroute.php b/lib/public/route/iroute.php
index 66fdb841821..d5610e762a8 100644
--- a/lib/public/route/iroute.php
+++ b/lib/public/route/iroute.php
@@ -10,6 +10,7 @@ namespace OCP\Route;
interface IRoute {
/**
* Specify PATCH as the method to use with this route
+ * @return \OCP\Route\IRoute
*/
public function patch();
@@ -26,21 +27,25 @@ interface IRoute {
* it is called directly
*
* @param $file
+ * @return void
*/
public function actionInclude($file);
/**
* Specify GET as the method to use with this route
+ * @return \OCP\Route\IRoute
*/
public function get();
/**
* Specify POST as the method to use with this route
+ * @return \OCP\Route\IRoute
*/
public function post();
/**
* Specify DELETE as the method to use with this route
+ * @return \OCP\Route\IRoute
*/
public function delete();
@@ -74,6 +79,7 @@ interface IRoute {
/**
* Specify PUT as the method to use with this route
+ * @return \OCP\Route\IRoute
*/
public function put();
}
diff --git a/lib/public/route/irouter.php b/lib/public/route/irouter.php
index 125cd29e81b..1c003c7b4b9 100644
--- a/lib/public/route/irouter.php
+++ b/lib/public/route/irouter.php
@@ -17,10 +17,14 @@ interface IRouter {
*/
public function getRoutingFiles();
+ /**
+ * @return string
+ */
public function getCacheKey();
/**
* loads the api routes
+ * @return void
*/
public function loadRoutes($app = null);
@@ -28,6 +32,7 @@ interface IRouter {
* Sets the collection to use for adding routes
*
* @param string $name Name of the collection to use.
+ * @return void
*/
public function useCollection($name);
@@ -47,6 +52,7 @@ interface IRouter {
*
* @param string $url The url to find
* @throws \Exception
+ * @return void
*/
public function match($url);
diff --git a/lib/public/template.php b/lib/public/template.php
index 9a994c1bea8..6cc984b12d5 100644
--- a/lib/public/template.php
+++ b/lib/public/template.php
@@ -67,7 +67,7 @@ function preview_icon( $path ) {
* Returns the path to the preview of the image.
* @param string $path of file
* @param string $token
- * @return link to the preview
+ * @return string link to the preview
*/
function publicPreview_icon ( $path, $token ) {
return(\publicPreview_icon( $path, $token ));