@@ -74,8 +74,9 @@ discard block |
||
| 74 | 74 | * Create a new group of routes |
| 75 | 75 | * |
| 76 | 76 | * @param String $prefix prefix of thes routes |
| 77 | + * @param callable $callback |
|
| 77 | 78 | * |
| 78 | - * @return \CapMousse\ReactRestify\Routing\Group |
|
| 79 | + * @return Routes |
|
| 79 | 80 | */ |
| 80 | 81 | public function addGroup($prefix, $callback) |
| 81 | 82 | { |
@@ -87,8 +88,8 @@ discard block |
||
| 87 | 88 | /** |
| 88 | 89 | * Launch the route parsing |
| 89 | 90 | * |
| 90 | - * @param \React\Http\Request $request |
|
| 91 | - * @param \React\Restify\Response $response |
|
| 91 | + * @param Request $request |
|
| 92 | + * @param Response $response |
|
| 92 | 93 | * |
| 93 | 94 | * @throws \RuntimeException |
| 94 | 95 | * @return Void |
@@ -112,8 +113,8 @@ discard block |
||
| 112 | 113 | * Try to match the current uri with all routes |
| 113 | 114 | * |
| 114 | 115 | * |
| 115 | - * @param \React\Http\Request $request |
|
| 116 | - * @param \React\Restify\Response $response |
|
| 116 | + * @param Request $request |
|
| 117 | + * @param Response $response |
|
| 117 | 118 | * |
| 118 | 119 | * @throws \RuntimeException |
| 119 | 120 | * @return Void |
@@ -51,8 +51,8 @@ |
||
| 51 | 51 | /** |
| 52 | 52 | * Parse request from user |
| 53 | 53 | * |
| 54 | - * @param \React\Http\Request $HttpRequest |
|
| 55 | - * @param \React\Http\Response $HttpResponse |
|
| 54 | + * @param \React\Http\Request $httpRequest |
|
| 55 | + * @param \React\Http\Response $httpResponse |
|
| 56 | 56 | */ |
| 57 | 57 | public function __invoke(HttpRequest $httpRequest, HttpResponse $httpResponse) |
| 58 | 58 | { |
@@ -5,8 +5,8 @@ discard block |
||
| 5 | 5 | trait WaterfallTrait { |
| 6 | 6 | /** |
| 7 | 7 | * Call callback one |
| 8 | - * @param function $fn |
|
| 9 | - * @return function |
|
| 8 | + * @param \Closure $fn |
|
| 9 | + * @return \Closure |
|
| 10 | 10 | */ |
| 11 | 11 | function callOnce ($fn) |
| 12 | 12 | { |
@@ -19,7 +19,7 @@ discard block |
||
| 19 | 19 | |
| 20 | 20 | /** |
| 21 | 21 | * Run tasks in series |
| 22 | - * @param array $tasks |
|
| 22 | + * @param \Closure[] $tasks |
|
| 23 | 23 | * @return void |
| 24 | 24 | */ |
| 25 | 25 | function waterfall (array $tasks) |