Browse Source

Fixing style errors.

stickler-ci 6 years ago
parent
commit
22730c0d09
1 changed files with 2 additions and 2 deletions
  1. 2 2
      src/I18n/Number.php

+ 2 - 2
src/I18n/Number.php

@@ -287,7 +287,7 @@ class Number
     /**
      * Getter/setter for default currency format
      *
-     * @param string|bool|null $currency Default currency format to be used by currency()
+     * @param null $currencyFormat Default currency format to be used by currency()
      * if $currencyFormat argument is not provided. If boolean false is passed, it will clear the
      * currently stored value
      * @return string CurrencyFormat
@@ -342,7 +342,7 @@ class Number
             $type = $options['type'];
             if ($options['type'] === static::FORMAT_CURRENCY) {
                 $type = NumberFormatter::CURRENCY;
-            } else if ($options['type'] === static::FORMAT_CURRENCY_ACCOUNTING) {
+            } elseif ($options['type'] === static::FORMAT_CURRENCY_ACCOUNTING) {
                 $type = static::CURRENCY_ACCOUNTING;
             }
         }