@@ -76,11 +76,11 @@ |
||
| 76 | 76 | /** |
| 77 | 77 | * Check if value is matching a certain type of values. |
| 78 | 78 | * |
| 79 | - * @param string $rulePart the rule part to check. |
|
| 80 | - * @param string $queryPart the query part to check. |
|
| 81 | 79 | * @param array &$args add argument to args array if matched |
| 80 | + * @param string $value |
|
| 81 | + * @param string $type |
|
| 82 | 82 | * |
| 83 | - * @return boolean |
|
| 83 | + * @return boolean|null |
|
| 84 | 84 | */ |
| 85 | 85 | private function checkPartMatchingType($value, $type) |
| 86 | 86 | { |
@@ -49,7 +49,7 @@ discard block |
||
| 49 | 49 | * @param mixed $action null, string or callable to implement a |
| 50 | 50 | * controller for the route |
| 51 | 51 | * |
| 52 | - * @return class as new route |
|
| 52 | + * @return Route as new route |
|
| 53 | 53 | */ |
| 54 | 54 | public function add($rule, $action = null) |
| 55 | 55 | { |
@@ -65,12 +65,12 @@ discard block |
||
| 65 | 65 | /** |
| 66 | 66 | * Add aroute to the router with specific request method. |
| 67 | 67 | * |
| 68 | - * @param array $method as array of strings of request methods |
|
| 68 | + * @param string[] $method as array of strings of request methods |
|
| 69 | 69 | * @param string $rule for this route |
| 70 | 70 | * @param mixed $action null, string or callable to implement a |
| 71 | 71 | * controller for the route |
| 72 | 72 | * |
| 73 | - * @return class as new route |
|
| 73 | + * @return Route as new route |
|
| 74 | 74 | */ |
| 75 | 75 | public function any($method, $rule, $action = null) |
| 76 | 76 | { |
@@ -90,7 +90,7 @@ discard block |
||
| 90 | 90 | * @param mixed $action null, string or callable to implement a |
| 91 | 91 | * controller for the route |
| 92 | 92 | * |
| 93 | - * @return class as new route |
|
| 93 | + * @return Route as new route |
|
| 94 | 94 | */ |
| 95 | 95 | public function get($rule, $action = null) |
| 96 | 96 | { |
@@ -106,7 +106,7 @@ discard block |
||
| 106 | 106 | * @param mixed $action null, string or callable to implement a |
| 107 | 107 | * controller for the route |
| 108 | 108 | * |
| 109 | - * @return class as new route |
|
| 109 | + * @return Route as new route |
|
| 110 | 110 | */ |
| 111 | 111 | public function post($rule, $action = null) |
| 112 | 112 | { |
@@ -122,7 +122,7 @@ discard block |
||
| 122 | 122 | * @param mixed $action null, string or callable to implement a |
| 123 | 123 | * controller for the route |
| 124 | 124 | * |
| 125 | - * @return class as new route |
|
| 125 | + * @return Route as new route |
|
| 126 | 126 | */ |
| 127 | 127 | public function put($rule, $action = null) |
| 128 | 128 | { |
@@ -138,7 +138,7 @@ discard block |
||
| 138 | 138 | * @param mixed $action null, string or callable to implement a |
| 139 | 139 | * controller for the route |
| 140 | 140 | * |
| 141 | - * @return class as new route |
|
| 141 | + * @return Route as new route |
|
| 142 | 142 | */ |
| 143 | 143 | public function delete($rule, $action = null) |
| 144 | 144 | { |
@@ -153,7 +153,7 @@ discard block |
||
| 153 | 153 | * @param string $rule for this route |
| 154 | 154 | * @param mixed $action null, string or callable to implement a controller for the route |
| 155 | 155 | * |
| 156 | - * @return class as new route |
|
| 156 | + * @return Route as new route |
|
| 157 | 157 | */ |
| 158 | 158 | public function addInternal($rule, $action = null) |
| 159 | 159 | { |
@@ -169,8 +169,6 @@ discard block |
||
| 169 | 169 | * Add an internal (not exposed to url-matching) route to the router. |
| 170 | 170 | * |
| 171 | 171 | * @param string $rule for this route |
| 172 | - * @param mixed $action null, string or callable to implement a |
|
| 173 | - * controller for the route |
|
| 174 | 172 | * |
| 175 | 173 | * @return void |
| 176 | 174 | */ |
@@ -189,7 +187,7 @@ discard block |
||
| 189 | 187 | /** |
| 190 | 188 | * Get the route for the last route that was handled. |
| 191 | 189 | * |
| 192 | - * @return mixed |
|
| 190 | + * @return string |
|
| 193 | 191 | */ |
| 194 | 192 | public function getLastRoute() |
| 195 | 193 | { |