@@ -502,6 +502,10 @@ discard block |
||
502 | 502 | // TODO |
503 | 503 | } |
504 | 504 | |
505 | + /** |
|
506 | + * @param null|string $className |
|
507 | + * @param string $propertyDoc |
|
508 | + */ |
|
505 | 509 | protected function updateClassPropertyDocs($file, $className, $propertyDoc) |
506 | 510 | { |
507 | 511 | try { |
@@ -582,7 +586,7 @@ discard block |
||
582 | 586 | /** |
583 | 587 | * remove multi empty lines and trim trailing whitespace. |
584 | 588 | * |
585 | - * @param $doc |
|
589 | + * @param string $doc |
|
586 | 590 | * @return string |
587 | 591 | */ |
588 | 592 | protected function cleanDocComment($doc) |
@@ -601,7 +605,7 @@ discard block |
||
601 | 605 | |
602 | 606 | /** |
603 | 607 | * Replace property annotations in doc comment. |
604 | - * @param $doc |
|
608 | + * @param string $doc |
|
605 | 609 | * @param $properties |
606 | 610 | * @return string |
607 | 611 | */ |
@@ -768,6 +772,9 @@ discard block |
||
768 | 772 | return [$className, $phpdoc]; |
769 | 773 | } |
770 | 774 | |
775 | + /** |
|
776 | + * @param string $pattern |
|
777 | + */ |
|
771 | 778 | protected function match($pattern, $subject, $split = false) |
772 | 779 | { |
773 | 780 | $sets = []; |
@@ -792,6 +799,9 @@ discard block |
||
792 | 799 | return $sets; |
793 | 800 | } |
794 | 801 | |
802 | + /** |
|
803 | + * @param string $str |
|
804 | + */ |
|
795 | 805 | protected function fixSentence($str) |
796 | 806 | { |
797 | 807 | // TODO fix word wrap |
@@ -802,6 +812,9 @@ discard block |
||
802 | 812 | return strtoupper(substr($str, 0, 1)) . substr($str, 1) . ($str[\strlen($str) - 1] != '.' ? '.' : ''); |
803 | 813 | } |
804 | 814 | |
815 | + /** |
|
816 | + * @param string $param |
|
817 | + */ |
|
805 | 818 | protected function getPropParam($prop, $param) |
806 | 819 | { |
807 | 820 | return isset($prop['property']) ? $prop['property'][$param] : (isset($prop['get']) ? $prop['get'][$param] : $prop['set'][$param]); |
@@ -350,7 +350,7 @@ |
||
350 | 350 | /** |
351 | 351 | * Detect attribute type from given validator. |
352 | 352 | * |
353 | - * @param Validator validator from which to detect attribute type. |
|
353 | + * @param Validator Validator from which to detect attribute type. |
|
354 | 354 | * @return string|null detected attribute type. |
355 | 355 | * @since 2.0.14 |
356 | 356 | */ |
@@ -100,7 +100,7 @@ |
||
100 | 100 | |
101 | 101 | /** |
102 | 102 | * {@inheritdoc} |
103 | - * @return static|null ActiveRecord instance matching the condition, or `null` if nothing matches. |
|
103 | + * @return BaseActiveRecord ActiveRecord instance matching the condition, or `null` if nothing matches. |
|
104 | 104 | */ |
105 | 105 | public static function findOne($condition) |
106 | 106 | { |
@@ -8,7 +8,6 @@ |
||
8 | 8 | namespace yii\db\mssql; |
9 | 9 | |
10 | 10 | use yii\base\InvalidParamException; |
11 | -use yii\base\NotSupportedException; |
|
12 | 11 | use yii\db\Expression; |
13 | 12 | |
14 | 13 | /** |
@@ -240,6 +240,7 @@ |
||
240 | 240 | |
241 | 241 | /** |
242 | 242 | * {@inheritdoc} |
243 | + * @param string $name |
|
243 | 244 | */ |
244 | 245 | public function quoteSimpleTableName($name) |
245 | 246 | { |
@@ -8,7 +8,6 @@ |
||
8 | 8 | namespace yii\db\pgsql; |
9 | 9 | |
10 | 10 | use yii\base\InvalidParamException; |
11 | -use yii\db\ExpressionInterface; |
|
12 | 11 | use yii\db\PdoValue; |
13 | 12 | use yii\db\Query; |
14 | 13 | use yii\helpers\StringHelper; |
@@ -949,7 +949,7 @@ discard block |
||
949 | 949 | |
950 | 950 | /** |
951 | 951 | * Sets the GROUP BY part of the query. |
952 | - * @param string|array|ExpressionInterface $columns the columns to be grouped by. |
|
952 | + * @param string $columns the columns to be grouped by. |
|
953 | 953 | * Columns can be specified in either a string (e.g. "id, name") or an array (e.g. ['id', 'name']). |
954 | 954 | * The method will automatically quote the column names unless a column contains some parenthesis |
955 | 955 | * (which means the column contains a DB expression). |
@@ -1154,7 +1154,7 @@ discard block |
||
1154 | 1154 | |
1155 | 1155 | /** |
1156 | 1156 | * Appends a SQL statement using UNION operator. |
1157 | - * @param string|Query $sql the SQL statement to be appended using UNION |
|
1157 | + * @param Query $sql the SQL statement to be appended using UNION |
|
1158 | 1158 | * @param bool $all TRUE if using UNION ALL and FALSE if using UNION |
1159 | 1159 | * @return $this the query object itself |
1160 | 1160 | */ |
@@ -425,6 +425,7 @@ |
||
425 | 425 | |
426 | 426 | /** |
427 | 427 | * {@inheritdoc} |
428 | + * @param Query $query |
|
428 | 429 | */ |
429 | 430 | public function build($query, $params = []) |
430 | 431 | { |
@@ -355,7 +355,7 @@ |
||
355 | 355 | * Safely casts a float to string independent of the current locale. |
356 | 356 | * |
357 | 357 | * The decimal separator will always be `.`. |
358 | - * @param float|int $number a floating point number or integer. |
|
358 | + * @param double $number a floating point number or integer. |
|
359 | 359 | * @return string the string representation of the number. |
360 | 360 | * @since 2.0.13 |
361 | 361 | */ |