Set the @return types correctely
This commit is contained in:
@@ -24,7 +24,7 @@ class Outputhtml extends Output
|
|||||||
* @param array|null $variable PHP variables send to the view and to layout
|
* @param array|null $variable PHP variables send to the view and to layout
|
||||||
* (can be processed by foreach, if...)
|
* (can be processed by foreach, if...)
|
||||||
* @param string|null $module The module name to use if needed
|
* @param string|null $module The module name to use if needed
|
||||||
* @return Exit from PHP at the end of HTML display
|
* @return mixed Exit from PHP at the end of HTML display
|
||||||
*/
|
*/
|
||||||
public function out ($data, $title = FALSE,
|
public function out ($data, $title = FALSE,
|
||||||
$viewClass = FALSE, $viewMethod = FALSE,
|
$viewClass = FALSE, $viewMethod = FALSE,
|
||||||
|
|||||||
@@ -25,7 +25,7 @@ class Outputrest extends Output
|
|||||||
* @param array|null $variable PHP variables send to the view and to layout
|
* @param array|null $variable PHP variables send to the view and to layout
|
||||||
* (can be processed by foreach, if...)
|
* (can be processed by foreach, if...)
|
||||||
* @param string|null $module The module name to use if needed
|
* @param string|null $module The module name to use if needed
|
||||||
* @return Exit from PHP at the end of HTML display
|
* @return mixed Exit from PHP at the end of HTML display
|
||||||
*/
|
*/
|
||||||
public function out ($data, $title = FALSE,
|
public function out ($data, $title = FALSE,
|
||||||
$viewClass = FALSE, $viewMethod = FALSE,
|
$viewClass = FALSE, $viewMethod = FALSE,
|
||||||
|
|||||||
@@ -254,7 +254,7 @@ class Route
|
|||||||
* @param string $destURL Do a redirection of the HTTP page
|
* @param string $destURL Do a redirection of the HTTP page
|
||||||
* @param string|null $module The module name
|
* @param string|null $module The module name
|
||||||
* @param boolean|null $permanent Permanent redirect (false by default)
|
* @param boolean|null $permanent Permanent redirect (false by default)
|
||||||
* @return Exit of the PHP after doing the redirection
|
* @return mixed mixed Exit of the PHP after doing the redirection
|
||||||
*/
|
*/
|
||||||
function redirect ($destURL, $module="", $permanent = false)
|
function redirect ($destURL, $module="", $permanent = false)
|
||||||
{
|
{
|
||||||
@@ -366,7 +366,7 @@ class Route
|
|||||||
* });
|
* });
|
||||||
* @param string $route Route to check with the URL
|
* @param string $route Route to check with the URL
|
||||||
* @param callable $function Function to be executed if the route match
|
* @param callable $function Function to be executed if the route match
|
||||||
* @return Exit of the PHP after displaying the page if match, or return the
|
* @return mixed Exit of the PHP after displaying the page if match, or return the
|
||||||
* route object to chain it whith the next test
|
* route object to chain it whith the next test
|
||||||
*/
|
*/
|
||||||
public function get ($route, $function)
|
public function get ($route, $function)
|
||||||
@@ -391,7 +391,7 @@ class Route
|
|||||||
* });
|
* });
|
||||||
* @param string $route Route to check with the URL
|
* @param string $route Route to check with the URL
|
||||||
* @param callable $function Function to be executed if the route match
|
* @param callable $function Function to be executed if the route match
|
||||||
* @return Exit of the PHP after displaying the page if match, or return the
|
* @return mixed Exit of the PHP after displaying the page if match, or return the
|
||||||
* route object to chain it whith the next test
|
* route object to chain it whith the next test
|
||||||
*/
|
*/
|
||||||
public function post ($route, $function)
|
public function post ($route, $function)
|
||||||
@@ -416,7 +416,7 @@ class Route
|
|||||||
* });
|
* });
|
||||||
* @param string $route Route to check with the URL
|
* @param string $route Route to check with the URL
|
||||||
* @param callable $function Function to be executed if the route match
|
* @param callable $function Function to be executed if the route match
|
||||||
* @return Exit of the PHP after displaying the page if match, or return the
|
* @return mixed Exit of the PHP after displaying the page if match, or return the
|
||||||
* route object to chain it whith the next test
|
* route object to chain it whith the next test
|
||||||
*/
|
*/
|
||||||
public function put ($route, $function)
|
public function put ($route, $function)
|
||||||
@@ -441,7 +441,7 @@ class Route
|
|||||||
* });
|
* });
|
||||||
* @param string $route Route to check with the URL
|
* @param string $route Route to check with the URL
|
||||||
* @param callable $function Function to be executed if the route match
|
* @param callable $function Function to be executed if the route match
|
||||||
* @return Exit of the PHP after displaying the page if match, or return the
|
* @return mixed Exit of the PHP after displaying the page if match, or return the
|
||||||
* route object to chain it whith the next test
|
* route object to chain it whith the next test
|
||||||
*/
|
*/
|
||||||
public function delete ($route, $function)
|
public function delete ($route, $function)
|
||||||
@@ -466,7 +466,7 @@ class Route
|
|||||||
* });
|
* });
|
||||||
* @param string $route Route to check with the URL
|
* @param string $route Route to check with the URL
|
||||||
* @param callable $function Function to be executed if the route match
|
* @param callable $function Function to be executed if the route match
|
||||||
* @return Exit of the PHP after displaying the page if match, or return the
|
* @return mixed Exit of the PHP after displaying the page if match, or return the
|
||||||
* route object to chain it whith the next test
|
* route object to chain it whith the next test
|
||||||
*/
|
*/
|
||||||
public function options ($route, $function)
|
public function options ($route, $function)
|
||||||
@@ -493,7 +493,7 @@ class Route
|
|||||||
* @param string $methods The allowed methods, separated by commas (,)
|
* @param string $methods The allowed methods, separated by commas (,)
|
||||||
* @param string $route Route to check with the URL
|
* @param string $route Route to check with the URL
|
||||||
* @param callable $function Function to be executed if the route match
|
* @param callable $function Function to be executed if the route match
|
||||||
* @return Exit of the PHP after displaying the page if match, or return the
|
* @return mixed Exit of the PHP after displaying the page if match, or return the
|
||||||
* route object to chain it whith the next test
|
* route object to chain it whith the next test
|
||||||
*/
|
*/
|
||||||
public function multi ($methods, $route, $function)
|
public function multi ($methods, $route, $function)
|
||||||
@@ -509,7 +509,7 @@ class Route
|
|||||||
* thereis a match
|
* thereis a match
|
||||||
* @param string $route Route to check with the URL
|
* @param string $route Route to check with the URL
|
||||||
* @param callable $function Function to be executed if the route match
|
* @param callable $function Function to be executed if the route match
|
||||||
* @return Exit of the PHP after displaying the page if match, or return the
|
* @return mixed Exit of the PHP after displaying the page if match, or return the
|
||||||
* route object to chain it whith the next test
|
* route object to chain it whith the next test
|
||||||
*/
|
*/
|
||||||
public function map ($route, $function)
|
public function map ($route, $function)
|
||||||
@@ -718,7 +718,7 @@ class Route
|
|||||||
}
|
}
|
||||||
|
|
||||||
/** Redirect to last valid get page if defined
|
/** Redirect to last valid get page if defined
|
||||||
* @return Exit from PHP after redirect or null if the last valid page is not
|
* @return mixed Exit from PHP after redirect or null if the last valid page is not
|
||||||
* defined
|
* defined
|
||||||
*/
|
*/
|
||||||
public function lastValidGetPageRedirect ()
|
public function lastValidGetPageRedirect ()
|
||||||
|
|||||||
Reference in New Issue
Block a user