@@ -103,7 +103,7 @@ discard block |
||
| 103 | 103 | * |
| 104 | 104 | * @param ServerRequestInterface $request The incoming request. |
| 105 | 105 | * |
| 106 | - * @return Route|false Returns a route object when it finds a match, or |
|
| 106 | + * @return boolean Returns a route object when it finds a match, or |
|
| 107 | 107 | * boolean false if there is no match. |
| 108 | 108 | * |
| 109 | 109 | */ |
@@ -187,7 +187,7 @@ discard block |
||
| 187 | 187 | * |
| 188 | 188 | * @param string $path The request path. |
| 189 | 189 | * |
| 190 | - * @param mixed $rule The rule that failed. |
|
| 190 | + * @param Rule\RuleInterface $rule The rule that failed. |
|
| 191 | 191 | * |
| 192 | 192 | * @param int $score The failure score. |
| 193 | 193 | * |
@@ -8,7 +8,6 @@ |
||
| 8 | 8 | */ |
| 9 | 9 | namespace Aura\Router; |
| 10 | 10 | |
| 11 | -use Aura\Router\Exception; |
|
| 12 | 11 | use Aura\Router\Rule\RuleIterator; |
| 13 | 12 | use Psr\Http\Message\ServerRequestInterface; |
| 14 | 13 | use Psr\Log\LoggerInterface; |
@@ -51,7 +51,7 @@ |
||
| 51 | 51 | * |
| 52 | 52 | * @param array $routeAccepts What the route accepts. |
| 53 | 53 | * |
| 54 | - * @param array $requestAccepts What the request accepts. |
|
| 54 | + * @param string[] $requestAccepts What the request accepts. |
|
| 55 | 55 | * |
| 56 | 56 | * @return bool |
| 57 | 57 | * |
@@ -73,7 +73,7 @@ |
||
| 73 | 73 | * |
| 74 | 74 | * Gets the attributes out of the regex matches. |
| 75 | 75 | * |
| 76 | - * @param array $matches The regex matches. |
|
| 76 | + * @param string[] $matches The regex matches. |
|
| 77 | 77 | * |
| 78 | 78 | * @return array |
| 79 | 79 | * |
@@ -90,7 +90,7 @@ discard block |
||
| 90 | 90 | * |
| 91 | 91 | * Gets the attributes from the path. |
| 92 | 92 | * |
| 93 | - * @param array $matches The array of matches. |
|
| 93 | + * @param string[] $matches The array of matches. |
|
| 94 | 94 | * |
| 95 | 95 | * @param string $wildcard The name of the wildcard attributes. |
| 96 | 96 | * |
@@ -164,7 +164,7 @@ discard block |
||
| 164 | 164 | * |
| 165 | 165 | * Gets the replacement for optional attributes in the regex. |
| 166 | 166 | * |
| 167 | - * @param array $list The optional attributes. |
|
| 167 | + * @param string $list The optional attributes. |
|
| 168 | 168 | * |
| 169 | 169 | * @return string |
| 170 | 170 | * |
@@ -279,7 +279,7 @@ |
||
| 279 | 279 | * |
| 280 | 280 | * @param string $val The value to encode or leave raw. |
| 281 | 281 | * |
| 282 | - * @return mixed |
|
| 282 | + * @return string|null |
|
| 283 | 283 | * |
| 284 | 284 | */ |
| 285 | 285 | protected function encode($val) |
@@ -159,7 +159,7 @@ |
||
| 159 | 159 | /** |
| 160 | 160 | * mapFactory |
| 161 | 161 | * |
| 162 | - * @return mixed |
|
| 162 | + * @return Map |
|
| 163 | 163 | * |
| 164 | 164 | * @access protected |
| 165 | 165 | */ |