Completed
Pull Request — 2.1-date-format-consistency (#11234)
by
unknown
40:11
created
framework/db/DataReader.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -114,7 +114,7 @@
 block discarded – undo
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
     {
Please login to merge, or discard this patch.
framework/db/Query.php 1 patch
Doc Comments   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -288,7 +288,7 @@  discard block
 block discarded – undo
288 288
      * Make sure you properly [quote](guide:db-dao#quoting-table-and-column-names) column names in the expression.
289 289
      * @param Connection $db the database connection used to generate the SQL statement.
290 290
      * If this parameter is not given (or null), the `db` application component will be used.
291
-     * @return integer|string number of records. The result may be a string depending on the
291
+     * @return boolean|string number of records. The result may be a string depending on the
292 292
      * underlying database engine and to support integer values higher than a 32bit PHP integer can handle.
293 293
      */
294 294
     public function count($q = '*', $db = null)
@@ -302,7 +302,7 @@  discard block
 block discarded – undo
302 302
      * Make sure you properly [quote](guide:db-dao#quoting-table-and-column-names) column names in the expression.
303 303
      * @param Connection $db the database connection used to generate the SQL statement.
304 304
      * If this parameter is not given, the `db` application component will be used.
305
-     * @return mixed the sum of the specified column values.
305
+     * @return boolean|string the sum of the specified column values.
306 306
      */
307 307
     public function sum($q, $db = null)
308 308
     {
@@ -315,7 +315,7 @@  discard block
 block discarded – undo
315 315
      * Make sure you properly [quote](guide:db-dao#quoting-table-and-column-names) column names in the expression.
316 316
      * @param Connection $db the database connection used to generate the SQL statement.
317 317
      * If this parameter is not given, the `db` application component will be used.
318
-     * @return mixed the average of the specified column values.
318
+     * @return boolean|string the average of the specified column values.
319 319
      */
320 320
     public function average($q, $db = null)
321 321
     {
@@ -328,7 +328,7 @@  discard block
 block discarded – undo
328 328
      * Make sure you properly [quote](guide:db-dao#quoting-table-and-column-names) column names in the expression.
329 329
      * @param Connection $db the database connection used to generate the SQL statement.
330 330
      * If this parameter is not given, the `db` application component will be used.
331
-     * @return mixed the minimum of the specified column values.
331
+     * @return boolean|string the minimum of the specified column values.
332 332
      */
333 333
     public function min($q, $db = null)
334 334
     {
@@ -341,7 +341,7 @@  discard block
 block discarded – undo
341 341
      * Make sure you properly [quote](guide:db-dao#quoting-table-and-column-names) column names in the expression.
342 342
      * @param Connection $db the database connection used to generate the SQL statement.
343 343
      * If this parameter is not given, the `db` application component will be used.
344
-     * @return mixed the maximum of the specified column values.
344
+     * @return boolean|string the maximum of the specified column values.
345 345
      */
346 346
     public function max($q, $db = null)
347 347
     {
@@ -775,7 +775,7 @@  discard block
 block discarded – undo
775 775
 
776 776
     /**
777 777
      * Appends a SQL statement using UNION operator.
778
-     * @param string|Query $sql the SQL statement to be appended using UNION
778
+     * @param Query $sql the SQL statement to be appended using UNION
779 779
      * @param boolean $all TRUE if using UNION ALL and FALSE if using UNION
780 780
      * @return $this the query object itself
781 781
      */
Please login to merge, or discard this patch.
framework/i18n/MessageFormatter.php 1 patch
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -52,7 +52,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
     {
Please login to merge, or discard this patch.
framework/log/Logger.php 1 patch
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -128,7 +128,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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()
Please login to merge, or discard this patch.
framework/log/SyslogTarget.php 1 patch
Doc Comments   +1 added lines patch added patch discarded remove patch
@@ -54,6 +54,7 @@
 block discarded – undo
54 54
 
55 55
     /**
56 56
      * @inheritdoc
57
+     * @return string
57 58
      */
58 59
     public function formatMessage($message)
59 60
     {
Please login to merge, or discard this patch.
framework/requirements/YiiRequirementChecker.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -60,7 +60,7 @@
 block discarded – undo
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.
Please login to merge, or discard this patch.
framework/web/AssetManager.php 1 patch
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -326,7 +326,7 @@  discard block
 block discarded – undo
326 326
      * Returns the actual file path for the specified asset.
327 327
      * @param AssetBundle $bundle the asset bundle which the asset file belongs to
328 328
      * @param string $asset the asset path. This should be one of the assets listed in [[js]] or [[css]].
329
-     * @return string|boolean the actual file path, or false if the asset is specified as an absolute URL
329
+     * @return string|false the actual file path, or false if the asset is specified as an absolute URL
330 330
      */
331 331
     public function getAssetPath($bundle, $asset)
332 332
     {
@@ -462,7 +462,7 @@  discard block
 block discarded – undo
462 462
     /**
463 463
      * Publishes a file.
464 464
      * @param string $src the asset file to be published
465
-     * @return array the path and the URL that the asset is published as.
465
+     * @return string[] the path and the URL that the asset is published as.
466 466
      * @throws InvalidParamException if the asset to be published does not exist.
467 467
      */
468 468
     protected function publishFile($src)
@@ -507,7 +507,7 @@  discard block
 block discarded – undo
507 507
      *   it is found in the target directory. This option is used only when publishing a directory.
508 508
      *   This overrides [[forceCopy]] if set.
509 509
      *
510
-     * @return array the path directory and the URL that the asset is published as.
510
+     * @return string[] the path directory and the URL that the asset is published as.
511 511
      * @throws InvalidParamException if the asset to be published does not exist.
512 512
      */
513 513
     protected function publishDirectory($src, $options)
Please login to merge, or discard this patch.
framework/web/Request.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -426,7 +426,7 @@
 block discarded – undo
426 426
      * If the parameter does not exist, the second parameter passed to this method will be returned.
427 427
      * @param string $name the parameter name
428 428
      * @param mixed $defaultValue the default parameter value if the parameter does not exist.
429
-     * @return mixed the parameter value
429
+     * @return string the parameter value
430 430
      * @see getBodyParams()
431 431
      * @see setBodyParams()
432 432
      */
Please login to merge, or discard this patch.
framework/web/Response.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -726,7 +726,7 @@
 block discarded – undo
726 726
      * });
727 727
      * ~~~
728 728
      *
729
-     * @param string|array $url the URL to be redirected to. This can be in one of the following formats:
729
+     * @param string $url the URL to be redirected to. This can be in one of the following formats:
730 730
      *
731 731
      * - a string representing a URL (e.g. "http://example.com")
732 732
      * - a string representing a URL alias (e.g. "@example.com")
Please login to merge, or discard this patch.