@@ -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 | */ |
@@ -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 | { |
@@ -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 | { |
@@ -466,6 +466,7 @@ |
||
466 | 466 | |
467 | 467 | /** |
468 | 468 | * {@inheritdoc} |
469 | + * @param Query $query |
|
469 | 470 | */ |
470 | 471 | public function build($query, $params = []) |
471 | 472 | { |
@@ -73,6 +73,7 @@ |
||
73 | 73 | |
74 | 74 | /** |
75 | 75 | * {@inheritdoc} |
76 | + * @return string |
|
76 | 77 | */ |
77 | 78 | public function formatMessage($message) |
78 | 79 | { |
@@ -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 | */ |
@@ -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]); |
@@ -278,6 +278,7 @@ discard block |
||
278 | 278 | /** |
279 | 279 | * {@inheritdoc} |
280 | 280 | * @since 2.0.8 |
281 | + * @param string $comment |
|
281 | 282 | */ |
282 | 283 | public function addCommentOnColumn($table, $column, $comment) |
283 | 284 | { |
@@ -294,6 +295,7 @@ discard block |
||
294 | 295 | /** |
295 | 296 | * {@inheritdoc} |
296 | 297 | * @since 2.0.8 |
298 | + * @param string $comment |
|
297 | 299 | */ |
298 | 300 | public function addCommentOnTable($table, $comment) |
299 | 301 | { |
@@ -14,7 +14,6 @@ |
||
14 | 14 | use yii\db\Expression; |
15 | 15 | use yii\db\Query; |
16 | 16 | use yii\helpers\StringHelper; |
17 | -use yii\db\ExpressionInterface; |
|
18 | 17 | |
19 | 18 | /** |
20 | 19 | * QueryBuilder is the query builder for Oracle databases. |