@@ -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 | { |
@@ -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 | { |
@@ -623,7 +623,7 @@ |
||
623 | 623 | * @param string $pattern |
624 | 624 | * @param boolean $caseSensitive |
625 | 625 | * @throws \yii\base\InvalidParamException |
626 | - * @return array with keys: (string) pattern, (int) flags, (int|boolean) firstWildcard |
|
626 | + * @return string with keys: (string) pattern, (int) flags, (int|boolean) firstWildcard |
|
627 | 627 | */ |
628 | 628 | private static function parseExcludePattern($pattern, $caseSensitive) |
629 | 629 | { |
@@ -52,7 +52,7 @@ discard block |
||
52 | 52 | /** |
53 | 53 | * Get the error code from the last operation |
54 | 54 | * @link http://php.net/manual/en/messageformatter.geterrorcode.php |
55 | - * @return string Code of the last error. |
|
55 | + * @return integer Code of the last error. |
|
56 | 56 | */ |
57 | 57 | public function getErrorCode() |
58 | 58 | { |
@@ -79,7 +79,7 @@ discard block |
||
79 | 79 | * @param string $pattern The pattern string to insert parameters into. |
80 | 80 | * @param array $params The array of name value pairs to insert into the format string. |
81 | 81 | * @param string $language The locale to use for formatting locale-dependent parts |
82 | - * @return string|boolean The formatted pattern string or `FALSE` if an error occurred |
|
82 | + * @return string|false The formatted pattern string or `FALSE` if an error occurred |
|
83 | 83 | */ |
84 | 84 | public function format($pattern, $params, $language) |
85 | 85 | { |
@@ -244,7 +244,7 @@ discard block |
||
244 | 244 | * @param string $pattern The pattern string to insert things into. |
245 | 245 | * @param array $args The array of values to insert into the format string |
246 | 246 | * @param string $locale The locale to use for formatting locale-dependent parts |
247 | - * @return string|boolean The formatted pattern string or `FALSE` if an error occurred |
|
247 | + * @return false|string The formatted pattern string or `FALSE` if an error occurred |
|
248 | 248 | */ |
249 | 249 | protected function fallbackFormat($pattern, $args, $locale) |
250 | 250 | { |
@@ -128,7 +128,7 @@ discard block |
||
128 | 128 | * Logs a message with the given type and category. |
129 | 129 | * If [[traceLevel]] is greater than 0, additional call stack information about |
130 | 130 | * the application code will be logged as well. |
131 | - * @param string|array $message the message to be logged. This can be a simple string or a more |
|
131 | + * @param string $message the message to be logged. This can be a simple string or a more |
|
132 | 132 | * complex data structure that will be handled by a [[Target|log target]]. |
133 | 133 | * @param integer $level the level of the message. This must be one of the following: |
134 | 134 | * `Logger::LEVEL_ERROR`, `Logger::LEVEL_WARNING`, `Logger::LEVEL_INFO`, `Logger::LEVEL_TRACE`, |
@@ -193,7 +193,7 @@ discard block |
||
193 | 193 | * `$categories` and `$excludeCategories` as parameters to retrieve the |
194 | 194 | * results that you are interested in. |
195 | 195 | * |
196 | - * @param array $categories list of categories that you are interested in. |
|
196 | + * @param string[] $categories list of categories that you are interested in. |
|
197 | 197 | * You can use an asterisk at the end of a category to do a prefix match. |
198 | 198 | * For example, 'yii\db\*' will match categories starting with 'yii\db\', |
199 | 199 | * such as 'yii\db\Connection'. |
@@ -242,7 +242,7 @@ discard block |
||
242 | 242 | * Returns the statistical results of DB queries. |
243 | 243 | * The results returned include the number of SQL statements executed and |
244 | 244 | * the total time spent. |
245 | - * @return array the first element indicates the number of SQL statements executed, |
|
245 | + * @return integer[] the first element indicates the number of SQL statements executed, |
|
246 | 246 | * and the second element the total time spent in SQL execution. |
247 | 247 | */ |
248 | 248 | public function getDbProfiling() |