@@ -39,7 +39,7 @@ |
||
39 | 39 | return true; |
40 | 40 | } |
41 | 41 | |
42 | - public function getStructuralTemplate(?CountryInterface $country=null) : string |
|
42 | + public function getStructuralTemplate(?CountryInterface $country = null) : string |
|
43 | 43 | { |
44 | 44 | return '-{symbol}{amount}'; |
45 | 45 | } |
@@ -41,7 +41,7 @@ |
||
41 | 41 | return t('Swiss Francs'); |
42 | 42 | } |
43 | 43 | |
44 | - public function getStructuralTemplate(?CountryInterface $country=null): string |
|
44 | + public function getStructuralTemplate(?CountryInterface $country = null): string |
|
45 | 45 | { |
46 | 46 | return '-{amount} {symbol}'; |
47 | 47 | } |
@@ -41,7 +41,7 @@ |
||
41 | 41 | return false; |
42 | 42 | } |
43 | 43 | |
44 | - public function getStructuralTemplate(?CountryInterface $country=null): string |
|
44 | + public function getStructuralTemplate(?CountryInterface $country = null): string |
|
45 | 45 | { |
46 | 46 | return '-{symbol}{amount}'; |
47 | 47 | } |
@@ -41,7 +41,7 @@ |
||
41 | 41 | return false; |
42 | 42 | } |
43 | 43 | |
44 | - public function getStructuralTemplate(?CountryInterface $country=null): string |
|
44 | + public function getStructuralTemplate(?CountryInterface $country = null): string |
|
45 | 45 | { |
46 | 46 | return '-{amount} {symbol}'; |
47 | 47 | } |
@@ -41,7 +41,7 @@ |
||
41 | 41 | return false; |
42 | 42 | } |
43 | 43 | |
44 | - public function getStructuralTemplate(?CountryInterface $country=null): string |
|
44 | + public function getStructuralTemplate(?CountryInterface $country = null): string |
|
45 | 45 | { |
46 | 46 | return '-{amount} {symbol}'; |
47 | 47 | } |
@@ -41,7 +41,7 @@ |
||
41 | 41 | return true; |
42 | 42 | } |
43 | 43 | |
44 | - public function getStructuralTemplate(?CountryInterface $country=null): string |
|
44 | + public function getStructuralTemplate(?CountryInterface $country = null): string |
|
45 | 45 | { |
46 | 46 | return '{symbol} -{amount}'; |
47 | 47 | } |
@@ -15,7 +15,7 @@ |
||
15 | 15 | return self::ISO_CODE; |
16 | 16 | } |
17 | 17 | |
18 | - public function getStructuralTemplate(?CountryInterface $country=null): string |
|
18 | + public function getStructuralTemplate(?CountryInterface $country = null): string |
|
19 | 19 | { |
20 | 20 | return '{symbol} -{amount}'; |
21 | 21 | } |
@@ -36,9 +36,9 @@ |
||
36 | 36 | return false; |
37 | 37 | } |
38 | 38 | |
39 | - public function getStructuralTemplate(?CountryInterface $country=null): string |
|
39 | + public function getStructuralTemplate(?CountryInterface $country = null): string |
|
40 | 40 | { |
41 | - if($country instanceof Localization_Country_FR) { |
|
41 | + if ($country instanceof Localization_Country_FR) { |
|
42 | 42 | return '- {amount} {symbol}'; |
43 | 43 | } |
44 | 44 |
@@ -33,14 +33,14 @@ discard block |
||
33 | 33 | */ |
34 | 34 | protected $country; |
35 | 35 | |
36 | - /** |
|
37 | - * @var string |
|
38 | - */ |
|
36 | + /** |
|
37 | + * @var string |
|
38 | + */ |
|
39 | 39 | protected $countryCode; |
40 | 40 | |
41 | - /** |
|
42 | - * @var string |
|
43 | - */ |
|
41 | + /** |
|
42 | + * @var string |
|
43 | + */ |
|
44 | 44 | protected $languageCode; |
45 | 45 | |
46 | 46 | public function __construct() |
@@ -64,25 +64,25 @@ discard block |
||
64 | 64 | return Localization::isLocaleSupported($localeName); |
65 | 65 | } |
66 | 66 | |
67 | - /** |
|
68 | - * Retrieves the shortened version of the locale name, |
|
69 | - * e.g. "en" or "de". |
|
70 | - * |
|
71 | - * @return string |
|
72 | - * @deprecated |
|
73 | - * @see Localization_Locale::getLanguageCode() |
|
74 | - */ |
|
67 | + /** |
|
68 | + * Retrieves the shortened version of the locale name, |
|
69 | + * e.g. "en" or "de". |
|
70 | + * |
|
71 | + * @return string |
|
72 | + * @deprecated |
|
73 | + * @see Localization_Locale::getLanguageCode() |
|
74 | + */ |
|
75 | 75 | public function getShortName() : string |
76 | 76 | { |
77 | 77 | return $this->getLanguageCode(); |
78 | 78 | } |
79 | 79 | |
80 | - /** |
|
81 | - * Retrieves the two-letter country code of |
|
82 | - * the locale. |
|
83 | - * |
|
84 | - * @return string Lowercase code, e.g. "uk" |
|
85 | - */ |
|
80 | + /** |
|
81 | + * Retrieves the two-letter country code of |
|
82 | + * the locale. |
|
83 | + * |
|
84 | + * @return string Lowercase code, e.g. "uk" |
|
85 | + */ |
|
86 | 86 | public function getCountryCode() : string |
87 | 87 | { |
88 | 88 | return $this->countryCode; |
@@ -102,7 +102,7 @@ |
||
102 | 102 | |
103 | 103 | public function getCountry() : BaseCountry |
104 | 104 | { |
105 | - if(!isset($this->country)) { |
|
105 | + if (!isset($this->country)) { |
|
106 | 106 | $this->country = Localization::createCountries()->getByID($this->getCountryCode()); |
107 | 107 | } |
108 | 108 |