@@ -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() |
@@ -55,6 +55,7 @@ |
||
55 | 55 | |
56 | 56 | /** |
57 | 57 | * @inheritdoc |
58 | + * @return string |
|
58 | 59 | */ |
59 | 60 | public function formatMessage($message) |
60 | 61 | { |
@@ -60,7 +60,7 @@ |
||
60 | 60 | * Check the given requirements, collecting results into internal field. |
61 | 61 | * This method can be invoked several times checking different requirement sets. |
62 | 62 | * Use [[getResult()]] or [[render()]] to get the results. |
63 | - * @param array|string $requirements requirements to be checked. |
|
63 | + * @param string $requirements requirements to be checked. |
|
64 | 64 | * If an array, it is treated as the set of requirements; |
65 | 65 | * If a string, it is treated as the path of the file, which contains the requirements; |
66 | 66 | * @return $this self instance. |
@@ -431,7 +431,7 @@ |
||
431 | 431 | * If the parameter does not exist, the second parameter passed to this method will be returned. |
432 | 432 | * @param string $name the parameter name |
433 | 433 | * @param mixed $defaultValue the default parameter value if the parameter does not exist. |
434 | - * @return mixed the parameter value |
|
434 | + * @return string the parameter value |
|
435 | 435 | * @see getBodyParams() |
436 | 436 | * @see setBodyParams() |
437 | 437 | */ |
@@ -175,7 +175,7 @@ discard block |
||
175 | 175 | * stored in session and reconstruct the corresponding identity object, if it has not done so before. |
176 | 176 | * @param boolean $autoRenew whether to automatically renew authentication status if it has not been done so before. |
177 | 177 | * This is only useful when [[enableSession]] is true. |
178 | - * @return IdentityInterface|null the identity object associated with the currently logged-in user. |
|
178 | + * @return null|boolean the identity object associated with the currently logged-in user. |
|
179 | 179 | * `null` is returned if the user is not logged in (not authenticated). |
180 | 180 | * @see login() |
181 | 181 | * @see logout() |
@@ -266,7 +266,7 @@ discard block |
||
266 | 266 | * with the provided access token. If successful, it will call [[login()]] to log in the authenticated user. |
267 | 267 | * If authentication fails or [[login()]] is unsuccessful, it will return null. |
268 | 268 | * @param string $token the access token |
269 | - * @param mixed $type the type of the token. The value of this parameter depends on the implementation. |
|
269 | + * @param string $type the type of the token. The value of this parameter depends on the implementation. |
|
270 | 270 | * For example, [[\yii\filters\auth\HttpBearerAuth]] will set this parameter to be `yii\filters\auth\HttpBearerAuth`. |
271 | 271 | * @return IdentityInterface|null the identity associated with the given access token. Null is returned if |
272 | 272 | * the access token is invalid or [[login()]] is unsuccessful. |
@@ -225,7 +225,7 @@ |
||
225 | 225 | } |
226 | 226 | |
227 | 227 | /** |
228 | - * @return array the begin and end pages that need to be displayed. |
|
228 | + * @return integer[] the begin and end pages that need to be displayed. |
|
229 | 229 | */ |
230 | 230 | protected function getPageRange() |
231 | 231 | { |
@@ -365,7 +365,7 @@ discard block |
||
365 | 365 | |
366 | 366 | /** |
367 | 367 | * @param array $what list of items |
368 | - * @param array $limit list of things to allow, or empty to allow any, can be `app`, `framework`, `extension` |
|
368 | + * @param string[] $limit list of things to allow, or empty to allow any, can be `app`, `framework`, `extension` |
|
369 | 369 | * @throws \yii\base\Exception |
370 | 370 | */ |
371 | 371 | protected function validateWhat(array $what, $limit = [], $ensureGitClean = true) |
@@ -537,6 +537,10 @@ discard block |
||
537 | 537 | |
538 | 538 | } |
539 | 539 | |
540 | + /** |
|
541 | + * @param string $name |
|
542 | + * @param string $path |
|
543 | + */ |
|
540 | 544 | protected function releaseApplication($name, $path, $version) |
541 | 545 | { |
542 | 546 | $this->stdout("\n"); |
@@ -637,6 +641,9 @@ discard block |
||
637 | 641 | Yii::setAlias('@app', $this->_oldAlias); |
638 | 642 | } |
639 | 643 | |
644 | + /** |
|
645 | + * @param string $name |
|
646 | + */ |
|
640 | 647 | protected function packageApplication($name, $version, $packagePath) |
641 | 648 | { |
642 | 649 | FileHelper::createDirectory($packagePath); |
@@ -796,6 +803,9 @@ discard block |
||
796 | 803 | } |
797 | 804 | |
798 | 805 | |
806 | + /** |
|
807 | + * @param string[] $what |
|
808 | + */ |
|
799 | 809 | protected function closeChangelogs($what, $version) |
800 | 810 | { |
801 | 811 | $v = str_replace('\\-', '[\\- ]', preg_quote($version, '/')); |
@@ -807,6 +817,9 @@ discard block |
||
807 | 817 | ); |
808 | 818 | } |
809 | 819 | |
820 | + /** |
|
821 | + * @param string[] $what |
|
822 | + */ |
|
810 | 823 | protected function openChangelogs($what, $version) |
811 | 824 | { |
812 | 825 | $headline = "\n$version under development\n"; |
@@ -957,6 +970,9 @@ discard block |
||
957 | 970 | $frameworkPath . '/BaseYii.php'); |
958 | 971 | } |
959 | 972 | |
973 | + /** |
|
974 | + * @param string $pattern |
|
975 | + */ |
|
960 | 976 | protected function sed($pattern, $replace, $files) |
961 | 977 | { |
962 | 978 | foreach((array) $files as $file) { |
@@ -989,6 +1005,9 @@ discard block |
||
989 | 1005 | const MINOR = 'minor'; |
990 | 1006 | const PATCH = 'patch'; |
991 | 1007 | |
1008 | + /** |
|
1009 | + * @param string $type |
|
1010 | + */ |
|
992 | 1011 | protected function getNextVersions(array $versions, $type) |
993 | 1012 | { |
994 | 1013 | foreach($versions as $k => $v) { |
@@ -750,7 +750,7 @@ |
||
750 | 750 | * }); |
751 | 751 | * ``` |
752 | 752 | * |
753 | - * @param string|array $url the URL to be redirected to. This can be in one of the following formats: |
|
753 | + * @param string $url the URL to be redirected to. This can be in one of the following formats: |
|
754 | 754 | * |
755 | 755 | * - a string representing a URL (e.g. "http://example.com") |
756 | 756 | * - a string representing a URL alias (e.g. "@example.com") |
@@ -196,7 +196,7 @@ |
||
196 | 196 | * @param string $message the error message. |
197 | 197 | * @param string $file the filename that the error was raised in. |
198 | 198 | * @param int $line the line number the error was raised at. |
199 | - * @return bool whether the normal error handler continues. |
|
199 | + * @return null|false whether the normal error handler continues. |
|
200 | 200 | * |
201 | 201 | * @throws ErrorException |
202 | 202 | */ |