@@ -22,7 +22,7 @@ |
||
| 22 | 22 | ->scalarNode('default_currency') |
| 23 | 23 | ->info('ISO 4217 currency code') |
| 24 | 24 | ->validate() |
| 25 | - ->ifTrue(function ($v) { |
|
| 25 | + ->ifTrue(function($v) { |
|
| 26 | 26 | return 1 !== preg_match('/^[A-Z]{3}$/', $v); |
| 27 | 27 | }) |
| 28 | 28 | ->thenInvalid('Invalid currency code "%s"') |
@@ -38,10 +38,10 @@ |
||
| 38 | 38 | $currencyService = $this->currency; |
| 39 | 39 | |
| 40 | 40 | return array( |
| 41 | - new \Twig_SimpleFunction('currency_name', function ($currency = null) use ($currencyService) { |
|
| 41 | + new \Twig_SimpleFunction('currency_name', function($currency = null) use ($currencyService) { |
|
| 42 | 42 | return $currencyService->getCurrencyName($currency); |
| 43 | 43 | }), |
| 44 | - new \Twig_SimpleFunction('currency_symbol', function ($currency = null) use ($currencyService) { |
|
| 44 | + new \Twig_SimpleFunction('currency_symbol', function($currency = null) use ($currencyService) { |
|
| 45 | 45 | return $currencyService->getCurrencySymbol($currency); |
| 46 | 46 | }), |
| 47 | 47 | ); |