Completed
Pull Request — master (#13624)
by Robert
39:43
created
framework/web/UrlRule.php 1 patch
Doc Comments   +5 added lines, -2 removed lines patch added patch discarded remove patch
@@ -228,6 +228,9 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
Please login to merge, or discard this patch.