Completed
Push — 2.1 ( 68dd3d...1f97e0 )
by Alexander
11:18
created
framework/captcha/CaptchaAction.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -144,7 +144,7 @@
 block discarded – undo
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
     {
Please login to merge, or discard this patch.
framework/db/ActiveQuery.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -392,7 +392,7 @@
 block discarded – undo
392 392
      * @param bool|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
Please login to merge, or discard this patch.
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 int $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/web/Response.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -789,7 +789,7 @@
 block discarded – undo
789 789
      * });
790 790
      * ```
791 791
      *
792
-     * @param string|array $url the URL to be redirected to. This can be in one of the following formats:
792
+     * @param string $url the URL to be redirected to. This can be in one of the following formats:
793 793
      *
794 794
      * - a string representing a URL (e.g. "http://example.com")
795 795
      * - a string representing a URL alias (e.g. "@example.com")
Please login to merge, or discard this patch.
framework/web/User.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -175,7 +175,7 @@  discard block
 block discarded – undo
175 175
      * stored in session and reconstruct the corresponding identity object, if it has not done so before.
176 176
      * @param bool $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()
@@ -259,7 +259,7 @@  discard block
 block discarded – undo
259 259
      * with the provided access token. If successful, it will call [[login()]] to log in the authenticated user.
260 260
      * If authentication fails or [[login()]] is unsuccessful, it will return null.
261 261
      * @param string $token the access token
262
-     * @param mixed $type the type of the token. The value of this parameter depends on the implementation.
262
+     * @param string $type the type of the token. The value of this parameter depends on the implementation.
263 263
      * For example, [[\yii\filters\auth\HttpBearerAuth]] will set this parameter to be `yii\filters\auth\HttpBearerAuth`.
264 264
      * @return IdentityInterface|null the identity associated with the given access token. Null is returned if
265 265
      * the access token is invalid or [[login()]] is unsuccessful.
Please login to merge, or discard this patch.
framework/helpers/BaseFileHelper.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -636,7 +636,7 @@
 block discarded – undo
636 636
      * @param string $pattern
637 637
      * @param bool $caseSensitive
638 638
      * @throws \yii\base\InvalidArgumentException
639
-     * @return array with keys: (string) pattern, (int) flags, (int|bool) firstWildcard
639
+     * @return string with keys: (string) pattern, (int) flags, (int|bool) firstWildcard
640 640
      */
641 641
     private static function parseExcludePattern($pattern, $caseSensitive)
642 642
     {
Please login to merge, or discard this patch.
framework/log/Logger.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -197,7 +197,7 @@  discard block
 block discarded – undo
197 197
      * `$categories` and `$excludeCategories` as parameters to retrieve the
198 198
      * results that you are interested in.
199 199
      *
200
-     * @param array $categories list of categories that you are interested in.
200
+     * @param string[] $categories list of categories that you are interested in.
201 201
      * You can use an asterisk at the end of a category to do a prefix match.
202 202
      * For example, 'yii\db\*' will match categories starting with 'yii\db\',
203 203
      * such as `yii\db\Connection`.
@@ -247,7 +247,7 @@  discard block
 block discarded – undo
247 247
      * Returns the statistical results of DB queries.
248 248
      * The results returned include the number of SQL statements executed and
249 249
      * the total time spent.
250
-     * @return array the first element indicates the number of SQL statements executed,
250
+     * @return integer[] the first element indicates the number of SQL statements executed,
251 251
      * and the second element the total time spent in SQL execution.
252 252
      */
253 253
     public function getDbProfiling()
Please login to merge, or discard this patch.
build/controllers/ReleaseController.php 1 patch
Doc Comments   +20 added lines, -1 removed lines patch added patch discarded remove patch
@@ -367,7 +367,7 @@  discard block
 block discarded – undo
367 367
 
368 368
     /**
369 369
      * @param array $what list of items
370
-     * @param array $limit list of things to allow, or empty to allow any, can be `app`, `framework`, `extension`
370
+     * @param string[] $limit list of things to allow, or empty to allow any, can be `app`, `framework`, `extension`
371 371
      * @throws \yii\base\Exception
372 372
      */
373 373
     protected function validateWhat(array $what, $limit = [], $ensureGitClean = true)
@@ -547,6 +547,10 @@  discard block
 block discarded – undo
547 547
 
548 548
     }
549 549
 
550
+    /**
551
+     * @param string $name
552
+     * @param string $path
553
+     */
550 554
     protected function releaseApplication($name, $path, $version)
551 555
     {
552 556
         $this->stdout("\n");
@@ -649,6 +653,9 @@  discard block
 block discarded – undo
649 653
         Yii::setAlias('@app', $this->_oldAlias);
650 654
     }
651 655
 
656
+    /**
657
+     * @param string $name
658
+     */
652 659
     protected function packageApplication($name, $version, $packagePath)
653 660
     {
654 661
         FileHelper::createDirectory($packagePath);
@@ -810,6 +817,9 @@  discard block
 block discarded – undo
810 817
     }
811 818
 
812 819
 
820
+    /**
821
+     * @param string[] $what
822
+     */
813 823
     protected function closeChangelogs($what, $version)
814 824
     {
815 825
         $v = str_replace('\\-', '[\\- ]', preg_quote($version, '/'));
@@ -821,6 +831,9 @@  discard block
 block discarded – undo
821 831
         );
822 832
     }
823 833
 
834
+    /**
835
+     * @param string[] $what
836
+     */
824 837
     protected function openChangelogs($what, $version)
825 838
     {
826 839
         $headline = "\n$version under development\n";
@@ -977,6 +990,9 @@  discard block
 block discarded – undo
977 990
             $frameworkPath . '/BaseYii.php');
978 991
     }
979 992
 
993
+    /**
994
+     * @param string $pattern
995
+     */
980 996
     protected function sed($pattern, $replace, $files)
981 997
     {
982 998
         foreach ((array) $files as $file) {
@@ -1009,6 +1025,9 @@  discard block
 block discarded – undo
1009 1025
     const MINOR = 'minor';
1010 1026
     const PATCH = 'patch';
1011 1027
 
1028
+    /**
1029
+     * @param string $type
1030
+     */
1012 1031
     protected function getNextVersions(array $versions, $type)
1013 1032
     {
1014 1033
         foreach ($versions as $k => $v) {
Please login to merge, or discard this patch.
framework/db/mssql/QueryBuilder.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -7,7 +7,6 @@
 block discarded – undo
7 7
 
8 8
 namespace yii\db\mssql;
9 9
 
10
-use yii\base\InvalidArgumentException;
11 10
 use yii\base\NotSupportedException;
12 11
 use yii\db\Expression;
13 12
 
Please login to merge, or discard this patch.