@@ -14,10 +14,10 @@ |
||
14 | 14 | namespace Sylius\Bundle\AddressingBundle\Twig; |
15 | 15 | |
16 | 16 | use Sylius\Component\Addressing\Model\CountryInterface; |
17 | +use Symfony\Component\Intl\Countries; |
|
17 | 18 | use Symfony\Component\Intl\Exception\MissingResourceException; |
18 | 19 | use Twig\Extension\AbstractExtension; |
19 | 20 | use Twig\TwigFilter; |
20 | -use Symfony\Component\Intl\Countries; |
|
21 | 21 | |
22 | 22 | class CountryNameExtension extends AbstractExtension |
23 | 23 | { |
@@ -106,7 +106,7 @@ |
||
106 | 106 | |
107 | 107 | try { |
108 | 108 | return Languages::getName($language, $region); |
109 | - } catch(MissingResourceException $exception) { |
|
109 | + } catch (MissingResourceException $exception) { |
|
110 | 110 | return null; |
111 | 111 | } |
112 | 112 | } |
@@ -93,7 +93,7 @@ |
||
93 | 93 | { |
94 | 94 | try { |
95 | 95 | return Currencies::getName($code); |
96 | - } catch(MissingResourceException $exception) { |
|
96 | + } catch (MissingResourceException $exception) { |
|
97 | 97 | return null; |
98 | 98 | } |
99 | 99 | } |