@@ -143,7 +143,6 @@ discard block |
||
143 | 143 | /** |
144 | 144 | * Shortcut to add a GET route. |
145 | 145 | * |
146 | - * @param null|string|array $method as request methods |
|
147 | 146 | * @param null|string|callable $action a callback handler for the route. |
148 | 147 | * |
149 | 148 | * @return class|array as new route(s), class if one added, else array. |
@@ -158,7 +157,6 @@ discard block |
||
158 | 157 | /** |
159 | 158 | * Shortcut to add a POST route. |
160 | 159 | * |
161 | - * @param null|string|array $method as request methods |
|
162 | 160 | * @param null|string|callable $action a callback handler for the route. |
163 | 161 | * |
164 | 162 | * @return class|array as new route(s), class if one added, else array. |
@@ -173,7 +171,6 @@ discard block |
||
173 | 171 | /** |
174 | 172 | * Shortcut to add a PUT route. |
175 | 173 | * |
176 | - * @param null|string|array $method as request methods |
|
177 | 174 | * @param null|string|callable $action a callback handler for the route. |
178 | 175 | * |
179 | 176 | * @return class|array as new route(s), class if one added, else array. |
@@ -188,7 +185,6 @@ discard block |
||
188 | 185 | /** |
189 | 186 | * Shortcut to add a DELETE route. |
190 | 187 | * |
191 | - * @param null|string|array $method as request methods |
|
192 | 188 | * @param null|string|callable $action a callback handler for the route. |
193 | 189 | * |
194 | 190 | * @return class|array as new route(s), class if one added, else array. |
@@ -207,7 +203,7 @@ discard block |
||
207 | 203 | * @param string $rule for this route |
208 | 204 | * @param null|string|callable $action a callback handler for the route. |
209 | 205 | * |
210 | - * @return class|array as new route(s), class if one added, else array. |
|
206 | + * @return Route as new route(s), class if one added, else array. |
|
211 | 207 | */ |
212 | 208 | public function addInternal($rule, $action) |
213 | 209 | { |
@@ -222,7 +218,7 @@ discard block |
||
222 | 218 | /** |
223 | 219 | * Get the route for the last route that was handled. |
224 | 220 | * |
225 | - * @return mixed |
|
221 | + * @return string |
|
226 | 222 | */ |
227 | 223 | public function getLastRoute() |
228 | 224 | { |
@@ -84,9 +84,9 @@ discard block |
||
84 | 84 | * Check if value is matching a certain type of values. |
85 | 85 | * |
86 | 86 | * @param string $value the value to check. |
87 | - * @param array $type the expected type to check against. |
|
87 | + * @param string $type the expected type to check against. |
|
88 | 88 | * |
89 | - * @return boolean |
|
89 | + * @return boolean|null |
|
90 | 90 | */ |
91 | 91 | private function checkPartMatchingType($value, $type) |
92 | 92 | { |
@@ -119,7 +119,7 @@ discard block |
||
119 | 119 | * conversion accordingly. |
120 | 120 | * |
121 | 121 | * @param string $value the value to check. |
122 | - * @param array $type the expected type to check against. |
|
122 | + * @param string $type the expected type to check against. |
|
123 | 123 | * |
124 | 124 | * @return boolean |
125 | 125 | */ |