@@ -114,6 +114,9 @@ discard block  | 
                                                    ||
| 114 | 114 | return array_merge(parent::options($actionID), ['updateFiles', 'skipFrameworkRequirements']);  | 
                                                        
| 115 | 115 | }  | 
                                                        
| 116 | 116 | |
| 117 | + /**  | 
                                                        |
| 118 | + * @param string|null $root  | 
                                                        |
| 119 | + */  | 
                                                        |
| 117 | 120 | protected function findFiles($root, $needsInclude = true)  | 
                                                        
| 118 | 121 |      { | 
                                                        
| 119 | 122 | $except = [];  | 
                                                        
@@ -237,6 +240,9 @@ discard block  | 
                                                    ||
| 237 | 240 | return FileHelper::findFiles($root, $options);  | 
                                                        
| 238 | 241 | }  | 
                                                        
| 239 | 242 | |
| 243 | + /**  | 
                                                        |
| 244 | + * @param string $extensionPath  | 
                                                        |
| 245 | + */  | 
                                                        |
| 240 | 246 | private function setUpExtensionAliases($extensionPath)  | 
                                                        
| 241 | 247 |      { | 
                                                        
| 242 | 248 |          foreach (scandir($extensionPath) as $extension) { | 
                                                        
@@ -344,6 +350,9 @@ discard block  | 
                                                    ||
| 344 | 350 | }  | 
                                                        
| 345 | 351 | }  | 
                                                        
| 346 | 352 | |
| 353 | + /**  | 
                                                        |
| 354 | + * @param string $line  | 
                                                        |
| 355 | + */  | 
                                                        |
| 347 | 356 | protected function fixParamTypes($line)  | 
                                                        
| 348 | 357 |      { | 
                                                        
| 349 | 358 |          return preg_replace_callback('~@(param|return) ([\w\\|]+)~i', function($matches) { | 
                                                        
@@ -477,6 +486,10 @@ discard block  | 
                                                    ||
| 477 | 486 | // TODO  | 
                                                        
| 478 | 487 | }  | 
                                                        
| 479 | 488 | |
| 489 | + /**  | 
                                                        |
| 490 | + * @param null|string $className  | 
                                                        |
| 491 | + * @param string $propertyDoc  | 
                                                        |
| 492 | + */  | 
                                                        |
| 480 | 493 | protected function updateClassPropertyDocs($file, $className, $propertyDoc)  | 
                                                        
| 481 | 494 |      { | 
                                                        
| 482 | 495 | $ref = new \ReflectionClass($className);  | 
                                                        
@@ -552,7 +565,7 @@ discard block  | 
                                                    ||
| 552 | 565 | /**  | 
                                                        
| 553 | 566 | * remove multi empty lines and trim trailing whitespace  | 
                                                        
| 554 | 567 | *  | 
                                                        
| 555 | - * @param $doc  | 
                                                        |
| 568 | + * @param string $doc  | 
                                                        |
| 556 | 569 | * @return string  | 
                                                        
| 557 | 570 | */  | 
                                                        
| 558 | 571 | protected function cleanDocComment($doc)  | 
                                                        
@@ -571,7 +584,7 @@ discard block  | 
                                                    ||
| 571 | 584 | |
| 572 | 585 | /**  | 
                                                        
| 573 | 586 | * Replace property annotations in doc comment  | 
                                                        
| 574 | - * @param $doc  | 
                                                        |
| 587 | + * @param string $doc  | 
                                                        |
| 575 | 588 | * @param $properties  | 
                                                        
| 576 | 589 | * @return string  | 
                                                        
| 577 | 590 | */  | 
                                                        
@@ -739,6 +752,9 @@ discard block  | 
                                                    ||
| 739 | 752 | return [$className, $phpdoc];  | 
                                                        
| 740 | 753 | }  | 
                                                        
| 741 | 754 | |
| 755 | + /**  | 
                                                        |
| 756 | + * @param string $pattern  | 
                                                        |
| 757 | + */  | 
                                                        |
| 742 | 758 | protected function match($pattern, $subject, $split = false)  | 
                                                        
| 743 | 759 |      { | 
                                                        
| 744 | 760 | $sets = [];  | 
                                                        
@@ -760,6 +776,9 @@ discard block  | 
                                                    ||
| 760 | 776 | return $sets;  | 
                                                        
| 761 | 777 | }  | 
                                                        
| 762 | 778 | |
| 779 | + /**  | 
                                                        |
| 780 | + * @param string $str  | 
                                                        |
| 781 | + */  | 
                                                        |
| 763 | 782 | protected function fixSentence($str)  | 
                                                        
| 764 | 783 |      { | 
                                                        
| 765 | 784 | // TODO fix word wrap  | 
                                                        
@@ -768,6 +787,9 @@ discard block  | 
                                                    ||
| 768 | 787 | return strtoupper(substr($str, 0, 1)) . substr($str, 1) . ($str[strlen($str) - 1] != '.' ? '.' : '');  | 
                                                        
| 769 | 788 | }  | 
                                                        
| 770 | 789 | |
| 790 | + /**  | 
                                                        |
| 791 | + * @param string $param  | 
                                                        |
| 792 | + */  | 
                                                        |
| 771 | 793 | protected function getPropParam($prop, $param)  | 
                                                        
| 772 | 794 |      { | 
                                                        
| 773 | 795 | return isset($prop['property']) ? $prop['property'][$param] : (isset($prop['get']) ? $prop['get'][$param] : $prop['set'][$param]);  | 
                                                        
@@ -129,7 +129,7 @@  | 
                                                    ||
| 129 | 129 | * This method is called by [[evaluateAttributes()]]. Its return value will be assigned  | 
                                                        
| 130 | 130 | * to the attributes corresponding to the triggering event.  | 
                                                        
| 131 | 131 | * @param Event $event the event that triggers the current attribute updating.  | 
                                                        
| 132 | - * @return mixed the attribute value  | 
                                                        |
| 132 | + * @return string the attribute value  | 
                                                        |
| 133 | 133 | */  | 
                                                        
| 134 | 134 | protected function getValue($event)  | 
                                                        
| 135 | 135 |      { | 
                                                        
@@ -144,7 +144,7 @@  | 
                                                    ||
| 144 | 144 | /**  | 
                                                        
| 145 | 145 | * Generates a hash code that can be used for client side validation.  | 
                                                        
| 146 | 146 | * @param string $code the CAPTCHA code  | 
                                                        
| 147 | - * @return string a hash code generated from the CAPTCHA code  | 
                                                        |
| 147 | + * @return integer a hash code generated from the CAPTCHA code  | 
                                                        |
| 148 | 148 | */  | 
                                                        
| 149 | 149 | public function generateValidationHash($code)  | 
                                                        
| 150 | 150 |      { | 
                                                        
@@ -392,7 +392,7 @@  | 
                                                    ||
| 392 | 392 | * @param boolean|array $eagerLoading whether to eager load the relations specified in `$with`.  | 
                                                        
| 393 | 393 | * When this is a boolean, it applies to all relations specified in `$with`. Use an array  | 
                                                        
| 394 | 394 | * to explicitly list which relations in `$with` need to be eagerly loaded. Defaults to `true`.  | 
                                                        
| 395 | - * @param string|array $joinType the join type of the relations specified in `$with`.  | 
                                                        |
| 395 | + * @param string $joinType the join type of the relations specified in `$with`.  | 
                                                        |
| 396 | 396 | * When this is a string, it applies to all relations specified in `$with`. Use an array  | 
                                                        
| 397 | 397 | * in the format of `relationName => joinType` to specify different join types for different relations.  | 
                                                        
| 398 | 398 | * @return $this the query object itself  | 
                                                        
@@ -323,7 +323,7 @@  | 
                                                    ||
| 323 | 323 | /**  | 
                                                        
| 324 | 324 | * Returns the list of all attribute names of the model.  | 
                                                        
| 325 | 325 | * The default implementation will return all column names of the table associated with this AR class.  | 
                                                        
| 326 | - * @return array list of attribute names.  | 
                                                        |
| 326 | + * @return integer[] list of attribute names.  | 
                                                        |
| 327 | 327 | */  | 
                                                        
| 328 | 328 | public function attributes()  | 
                                                        
| 329 | 329 |      { | 
                                                        
@@ -187,7 +187,7 @@ discard block  | 
                                                    ||
| 187 | 187 | * Finds the related records and populates them into the primary models.  | 
                                                        
| 188 | 188 | * @param string $name the relation name  | 
                                                        
| 189 | 189 | * @param array $primaryModels primary models  | 
                                                        
| 190 | - * @return array the related models  | 
                                                        |
| 190 | + * @return ActiveRecordInterface[] the related models  | 
                                                        |
| 191 | 191 | * @throws InvalidConfigException if [[link]] is invalid  | 
                                                        
| 192 | 192 | */  | 
                                                        
| 193 | 193 | public function populateRelation($name, &$primaryModels)  | 
                                                        
@@ -343,7 +343,7 @@ discard block  | 
                                                    ||
| 343 | 343 | }  | 
                                                        
| 344 | 344 | |
| 345 | 345 | /**  | 
                                                        
| 346 | - * @param array $models  | 
                                                        |
| 346 | + * @param ActiveRecordInterface[] $models  | 
                                                        |
| 347 | 347 | * @param array $link  | 
                                                        
| 348 | 348 | * @param array $viaModels  | 
                                                        
| 349 | 349 | * @param array $viaLink  | 
                                                        
@@ -114,7 +114,7 @@  | 
                                                    ||
| 114 | 114 | /**  | 
                                                        
| 115 | 115 | * Returns a single column from the next row of a result set.  | 
                                                        
| 116 | 116 | * @param integer $columnIndex zero-based column index  | 
                                                        
| 117 | - * @return mixed the column of the current row, false if no more rows available  | 
                                                        |
| 117 | + * @return string the column of the current row, false if no more rows available  | 
                                                        |
| 118 | 118 | */  | 
                                                        
| 119 | 119 | public function readColumn($columnIndex)  | 
                                                        
| 120 | 120 |      { | 
                                                        
@@ -54,6 +54,7 @@  | 
                                                    ||
| 54 | 54 | |
| 55 | 55 | /**  | 
                                                        
| 56 | 56 | * @inheritdoc  | 
                                                        
| 57 | + * @param string $name  | 
                                                        |
| 57 | 58 | */  | 
                                                        
| 58 | 59 | public function quoteSimpleTableName($name)  | 
                                                        
| 59 | 60 |      { | 
                                                        
@@ -842,7 +842,7 @@  | 
                                                    ||
| 842 | 842 | |
| 843 | 843 | /**  | 
                                                        
| 844 | 844 | * Appends a SQL statement using UNION operator.  | 
                                                        
| 845 | - * @param string|Query $sql the SQL statement to be appended using UNION  | 
                                                        |
| 845 | + * @param Query $sql the SQL statement to be appended using UNION  | 
                                                        |
| 846 | 846 | * @param boolean $all TRUE if using UNION ALL and FALSE if using UNION  | 
                                                        
| 847 | 847 | * @return $this the query object itself  | 
                                                        
| 848 | 848 | */  |