Completed
Pull Request — master (#16998)
by Dmitry
13:08
created
framework/helpers/BaseFileHelper.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -773,7 +773,7 @@
 block discarded – undo
773 773
      * @param string $pattern
774 774
      * @param bool $caseSensitive
775 775
      * @throws InvalidArgumentException
776
-     * @return array with keys: (string) pattern, (int) flags, (int|bool) firstWildcard
776
+     * @return string with keys: (string) pattern, (int) flags, (int|bool) firstWildcard
777 777
      */
778 778
     private static function parseExcludePattern($pattern, $caseSensitive)
779 779
     {
Please login to merge, or discard this patch.
framework/db/conditions/SimpleConditionBuilder.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -5,7 +5,6 @@
 block discarded – undo
5 5
 use yii\db\ExpressionBuilderInterface;
6 6
 use yii\db\ExpressionBuilderTrait;
7 7
 use yii\db\ExpressionInterface;
8
-use yii\db\Query;
9 8
 
10 9
 /**
11 10
  * Class NotConditionBuilder builds objects of [[SimpleCondition]]
Please login to merge, or discard this patch.
framework/data/DataFilter.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -350,7 +350,7 @@
 block discarded – undo
350 350
     /**
351 351
      * Detect attribute type from given validator.
352 352
      *
353
-     * @param Validator validator from which to detect attribute type.
353
+     * @param Validator Validator from which to detect attribute type.
354 354
      * @return string|null detected attribute type.
355 355
      * @since 2.0.14
356 356
      */
Please login to merge, or discard this patch.
framework/i18n/Formatter.php 1 patch
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -1912,7 +1912,7 @@  discard block
 block discarded – undo
1912 1912
     /**
1913 1913
      * Fallback for formatting value as an integer number by removing any decimal digits without rounding.
1914 1914
      *
1915
-     * @param string|int|float $value the value to be formatted.
1915
+     * @param string $value the value to be formatted.
1916 1916
      * @return string the formatted result.
1917 1917
      * @since 2.0.16
1918 1918
      */
@@ -1939,7 +1939,7 @@  discard block
 block discarded – undo
1939 1939
      * Property [[decimalSeparator]] will be used to represent the decimal point. The value is rounded automatically
1940 1940
      * to the defined decimal digits.
1941 1941
      *
1942
-     * @param string|int|float $value the value to be formatted.
1942
+     * @param string $value the value to be formatted.
1943 1943
      * @param int $decimals the number of digits after the decimal point. The default value is `0`.
1944 1944
      * @return string the formatted result.
1945 1945
      * @since 2.0.16
@@ -1976,7 +1976,7 @@  discard block
 block discarded – undo
1976 1976
     /**
1977 1977
      * Fallback for formatting value as a currency number.
1978 1978
      *
1979
-     * @param string|int|float $value the value to be formatted.
1979
+     * @param string $value the value to be formatted.
1980 1980
      * @param string $currency the 3-letter ISO 4217 currency code indicating the currency to use.
1981 1981
      * If null, [[currencyCode]] will be used.
1982 1982
      * @return string the formatted result.
Please login to merge, or discard this patch.
framework/log/Target.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -11,7 +11,6 @@
 block discarded – undo
11 11
 use yii\base\Component;
12 12
 use yii\base\InvalidConfigException;
13 13
 use yii\helpers\ArrayHelper;
14
-use yii\helpers\StringHelper;
15 14
 use yii\helpers\VarDumper;
16 15
 use yii\web\Request;
17 16
 
Please login to merge, or discard this patch.
framework/console/controllers/MessageController.php 1 patch
Doc Comments   +4 added lines, -1 removed lines patch added patch discarded remove patch
@@ -630,7 +630,7 @@  discard block
 block discarded – undo
630 630
      * Finds out a line of the first non-char PHP token found.
631 631
      *
632 632
      * @param array $tokens
633
-     * @return int|string
633
+     * @return string
634 634
      * @since 2.0.1
635 635
      */
636 636
     protected function getLine($tokens)
@@ -887,6 +887,9 @@  discard block
 block discarded – undo
887 887
         }
888 888
     }
889 889
 
890
+    /**
891
+     * @param string $dirName
892
+     */
890 893
     private function deleteUnusedPhpMessageFiles($dirName, $existingCategories)
891 894
     {
892 895
         $messageFiles = FileHelper::findFiles($dirName);
Please login to merge, or discard this patch.