@@ -228,6 +228,9 @@ discard block |
||
228 | 228 | $this->translatePattern(true); |
229 | 229 | } |
230 | 230 | |
231 | + /** |
|
232 | + * @param boolean $allowAppendSlash |
|
233 | + */ |
|
231 | 234 | private function translatePattern($allowAppendSlash) |
232 | 235 | { |
233 | 236 | $tr = [ |
@@ -413,7 +416,7 @@ discard block |
||
413 | 416 | * @param UrlManager $manager the URL manager |
414 | 417 | * @param string $route the route. It should not have slashes at the beginning or the end. |
415 | 418 | * @param array $params the parameters |
416 | - * @return string|bool the created URL, or `false` if this rule cannot be used for creating this URL. |
|
419 | + * @return false|string the created URL, or `false` if this rule cannot be used for creating this URL. |
|
417 | 420 | */ |
418 | 421 | public function createUrl($manager, $route, $params) |
419 | 422 | { |
@@ -511,7 +514,7 @@ discard block |
||
511 | 514 | * When found - replaces this placeholder key with a appropriate name of matching parameter. |
512 | 515 | * Used in [[parseRequest()]], [[createUrl()]]. |
513 | 516 | * |
514 | - * @param array $matches result of `preg_match()` call |
|
517 | + * @param string[] $matches result of `preg_match()` call |
|
515 | 518 | * @return array input array with replaced placeholder keys |
516 | 519 | * @see placeholders |
517 | 520 | * @since 2.0.7 |