@@ -138,7 +138,7 @@ |
||
138 | 138 | /** |
139 | 139 | * Generates a hash code that can be used for client side validation. |
140 | 140 | * @param string $code the CAPTCHA code |
141 | - * @return string a hash code generated from the CAPTCHA code |
|
141 | + * @return integer a hash code generated from the CAPTCHA code |
|
142 | 142 | */ |
143 | 143 | public function generateValidationHash($code) |
144 | 144 | { |
@@ -225,7 +225,7 @@ |
||
225 | 225 | /** |
226 | 226 | * Prompts user with confirmation if caches should be flushed. |
227 | 227 | * @param array $cachesNames |
228 | - * @return boolean |
|
228 | + * @return boolean|null |
|
229 | 229 | */ |
230 | 230 | private function confirmFlush($cachesNames) |
231 | 231 | { |
@@ -300,7 +300,7 @@ discard block |
||
300 | 300 | * Prompts user with confirmation if fixtures should be loaded. |
301 | 301 | * @param array $fixtures |
302 | 302 | * @param array $except |
303 | - * @return boolean |
|
303 | + * @return boolean|null |
|
304 | 304 | */ |
305 | 305 | private function confirmLoad($fixtures, $except) |
306 | 306 | { |
@@ -329,7 +329,7 @@ discard block |
||
329 | 329 | * Prompts user with confirmation for fixtures that should be unloaded. |
330 | 330 | * @param array $fixtures |
331 | 331 | * @param array $except |
332 | - * @return boolean |
|
332 | + * @return boolean|null |
|
333 | 333 | */ |
334 | 334 | private function confirmUnload($fixtures, $except) |
335 | 335 | { |
@@ -385,7 +385,7 @@ |
||
385 | 385 | * @param boolean|array $eagerLoading whether to eager load the relations specified in `$with`. |
386 | 386 | * When this is a boolean, it applies to all relations specified in `$with`. Use an array |
387 | 387 | * to explicitly list which relations in `$with` need to be eagerly loaded. |
388 | - * @param string|array $joinType the join type of the relations specified in `$with`. |
|
388 | + * @param string $joinType the join type of the relations specified in `$with`. |
|
389 | 389 | * When this is a string, it applies to all relations specified in `$with`. Use an array |
390 | 390 | * in the format of `relationName => joinType` to specify different join types for different relations. |
391 | 391 | * @return $this the query object itself |
@@ -320,7 +320,7 @@ |
||
320 | 320 | /** |
321 | 321 | * Returns the list of all attribute names of the model. |
322 | 322 | * The default implementation will return all column names of the table associated with this AR class. |
323 | - * @return array list of attribute names. |
|
323 | + * @return integer[] list of attribute names. |
|
324 | 324 | */ |
325 | 325 | public function attributes() |
326 | 326 | { |
@@ -185,7 +185,7 @@ discard block |
||
185 | 185 | * Finds the related records and populates them into the primary models. |
186 | 186 | * @param string $name the relation name |
187 | 187 | * @param array $primaryModels primary models |
188 | - * @return array the related models |
|
188 | + * @return ActiveRecordInterface[] the related models |
|
189 | 189 | * @throws InvalidConfigException if [[link]] is invalid |
190 | 190 | */ |
191 | 191 | public function populateRelation($name, &$primaryModels) |
@@ -341,7 +341,7 @@ discard block |
||
341 | 341 | } |
342 | 342 | |
343 | 343 | /** |
344 | - * @param array $models |
|
344 | + * @param ActiveRecordInterface[] $models |
|
345 | 345 | * @param array $link |
346 | 346 | * @param array $viaModels |
347 | 347 | * @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 | { |
@@ -360,8 +360,8 @@ discard block |
||
360 | 360 | * ~~~ |
361 | 361 | * |
362 | 362 | * @param array $array |
363 | - * @param string|\Closure $from |
|
364 | - * @param string|\Closure $to |
|
363 | + * @param string $from |
|
364 | + * @param string $to |
|
365 | 365 | * @param string|\Closure $group |
366 | 366 | * @return array |
367 | 367 | */ |
@@ -414,7 +414,7 @@ discard block |
||
414 | 414 | * To sort by multiple keys, provide an array of keys here. |
415 | 415 | * @param integer|array $direction the sorting direction. It can be either `SORT_ASC` or `SORT_DESC`. |
416 | 416 | * When sorting by multiple keys with different sorting directions, use an array of sorting directions. |
417 | - * @param integer|array $sortFlag the PHP sort flag. Valid values include |
|
417 | + * @param integer $sortFlag the PHP sort flag. Valid values include |
|
418 | 418 | * `SORT_REGULAR`, `SORT_NUMERIC`, `SORT_STRING`, `SORT_LOCALE_STRING`, `SORT_NATURAL` and `SORT_FLAG_CASE`. |
419 | 419 | * Please refer to [PHP manual](http://php.net/manual/en/function.sort.php) |
420 | 420 | * for more details. When sorting by multiple keys with different sort flags, use an array of sort flags. |