]> source.dussan.org Git - nextcloud-server.git/commitdiff
Fix PHPdoc in lib/public
authorBart Visscher <bartv@thisnet.nl>
Tue, 15 Apr 2014 16:00:38 +0000 (18:00 +0200)
committerBart Visscher <bartv@thisnet.nl>
Tue, 15 Apr 2014 20:55:47 +0000 (22:55 +0200)
using scrutinizer patch

lib/public/route/iroute.php
lib/public/route/irouter.php
lib/public/template.php

index 66fdb841821c2a48c80a55d23bcbaeafcd00301b..d5610e762a82f0e94b701834155ce954448d41dc 100644 (file)
@@ -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();
 }
index 125cd29e81b582519f217a8edfca25595fd26b55..1c003c7b4b91c2c7d5a6b126a3ec89309b469767 100644 (file)
@@ -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);
 
index 9a994c1bea806ec8890cc0b0c7ec9d6800d7082a..6cc984b12d5f03ed119877db758553797133a261 100644 (file)
@@ -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 ));