- static $styleValues = array(
- 'decimal' => NumberFormatter::DECIMAL,
- 'currency' => NumberFormatter::CURRENCY,
- 'percent' => NumberFormatter::PERCENT,
- 'scientific' => NumberFormatter::SCIENTIFIC,
- 'spellout' => NumberFormatter::SPELLOUT,
- 'ordinal' => NumberFormatter::ORDINAL,
- 'duration' => NumberFormatter::DURATION,
- );
-
- if (!isset($styleValues[$style])) {
+ //Set styles
+ static $styles = [
+ 'decimal' => \NumberFormatter::DECIMAL,
+ 'currency' => \NumberFormatter::CURRENCY,
+ 'percent' => \NumberFormatter::PERCENT,
+ 'scientific' => \NumberFormatter::SCIENTIFIC,
+ 'spellout' => \NumberFormatter::SPELLOUT,
+ 'ordinal' => \NumberFormatter::ORDINAL,
+ 'duration' => \NumberFormatter::DURATION,
+ ];
+
+ //Without styles
+ if (!isset($styles[$style])) {