Add @return tags to comments

This commit is contained in:
Splashsky 2021-07-16 04:43:30 -05:00
parent c45aed8ec8
commit 9a04c906a7

View File

@ -34,6 +34,7 @@ class Router
*
* @param string $route
* @param callable $action
* @return Router
*/
public static function get(string $route, callable $action)
{
@ -45,6 +46,7 @@ class Router
*
* @param string $route
* @param callable $action
* @return Router
*/
public static function post(string $route, callable $action)
{
@ -65,6 +67,7 @@ class Router
* Defines an action to be called when a path isn't found - i.e. a 404
*
* @param callable $action
* @return void
*/
public static function pathNotFound(callable $action)
{
@ -75,6 +78,7 @@ class Router
* Defines an action to be called with a method isn't allowed on a route - i.e. a 405
*
* @param callable $action
* @return void
*/
public static function methodNotAllowed(callable $action)
{
@ -149,6 +153,7 @@ class Router
*
* @param string $basePath
* @param boolean $multimatch
* @return void
*/
public static function run(string $basePath = '', bool $multimatch = false)
{