@@ -30,7 +30,7 @@ |
||
30 | 30 | } |
31 | 31 | |
32 | 32 | public function percentFormat() |
33 | - { |
|
34 | - return '%s' . self::NBSP . self::PERCENT; |
|
35 | - } |
|
33 | + { |
|
34 | + return '%s' . self::NBSP . self::PERCENT; |
|
35 | + } |
|
36 | 36 | } |
@@ -31,6 +31,6 @@ |
||
31 | 31 | |
32 | 32 | public function percentFormat() |
33 | 33 | { |
34 | - return '%s' . self::NBSP . self::PERCENT; |
|
34 | + return '%s'.self::NBSP.self::PERCENT; |
|
35 | 35 | } |
36 | 36 | } |
@@ -20,7 +20,7 @@ discard block |
||
20 | 20 | const NEGATIVE = '-'; // Negative numbers |
21 | 21 | |
22 | 22 | // "Target" strings, when translating numbers |
23 | - const ALM = "\xD8\x9C"; // Arabic Letter Mark |
|
23 | + const ALM = "\xD8\x9C"; // Arabic Letter Mark |
|
24 | 24 | const APOSTROPHE = '’'; |
25 | 25 | const ARAB_DECIMAL = "\xD9\xAB"; |
26 | 26 | const ARAB_GROUP = "\xD9\xAC"; |
@@ -114,14 +114,14 @@ discard block |
||
114 | 114 | return $this->script()->direction(); |
115 | 115 | } |
116 | 116 | |
117 | - /** |
|
118 | - * A locale must define an endonym. |
|
119 | - * |
|
120 | - * @return string |
|
121 | - */ |
|
122 | - abstract public function endonym(); |
|
117 | + /** |
|
118 | + * A locale must define an endonym. |
|
119 | + * |
|
120 | + * @return string |
|
121 | + */ |
|
122 | + abstract public function endonym(); |
|
123 | 123 | |
124 | - /** |
|
124 | + /** |
|
125 | 125 | * A sortable version of the locale name. For example, “British English” |
126 | 126 | * might sort as “ENGLISH, BRITISH” to keep all the variants of English together. |
127 | 127 | * |
@@ -146,11 +146,11 @@ discard block |
||
146 | 146 | } |
147 | 147 | } |
148 | 148 | |
149 | - /** |
|
150 | - * A locale must define a language. |
|
151 | - * |
|
152 | - * @return LanguageInterface |
|
153 | - */ |
|
149 | + /** |
|
150 | + * A locale must define a language. |
|
151 | + * |
|
152 | + * @return LanguageInterface |
|
153 | + */ |
|
154 | 154 | abstract public function language(); |
155 | 155 | |
156 | 156 | /** |
@@ -20,7 +20,7 @@ discard block |
||
20 | 20 | const NEGATIVE = '-'; // Negative numbers |
21 | 21 | |
22 | 22 | // "Target" strings, when translating numbers |
23 | - const ALM = "\xD8\x9C"; // Arabic Letter Mark |
|
23 | + const ALM = "\xD8\x9C"; // Arabic Letter Mark |
|
24 | 24 | const APOSTROPHE = '’'; |
25 | 25 | const ARAB_DECIMAL = "\xD9\xAB"; |
26 | 26 | const ARAB_GROUP = "\xD9\xAC"; |
@@ -45,17 +45,17 @@ discard block |
||
45 | 45 | * @return string |
46 | 46 | */ |
47 | 47 | public function code() { |
48 | - $code = $this->language()->code() . '_' . $this->territory()->code(); |
|
48 | + $code = $this->language()->code().'_'.$this->territory()->code(); |
|
49 | 49 | |
50 | 50 | if ($this->script() != $this->language()->defaultScript()) { |
51 | - $code .= '@' . strtolower($this->script()->unicodeName()); |
|
51 | + $code .= '@'.strtolower($this->script()->unicodeName()); |
|
52 | 52 | } |
53 | 53 | |
54 | 54 | if ($this->variant()) { |
55 | 55 | if ($this->variant()->code() === 'posix') { |
56 | 56 | $code = 'POSIX'; |
57 | 57 | } else { |
58 | - $code .= '@' . $this->variant()->code(); |
|
58 | + $code .= '@'.$this->variant()->code(); |
|
59 | 59 | } |
60 | 60 | } |
61 | 61 | |
@@ -140,9 +140,9 @@ discard block |
||
140 | 140 | */ |
141 | 141 | public function htmlAttributes() { |
142 | 142 | if ($this->direction() === 'rtl' || $this->direction() !== $this->script()->direction()) { |
143 | - return 'lang="' . $this->languageTag() . '" dir="' . $this->direction() . '"'; |
|
143 | + return 'lang="'.$this->languageTag().'" dir="'.$this->direction().'"'; |
|
144 | 144 | } else { |
145 | - return 'lang="' . $this->languageTag() . '"'; |
|
145 | + return 'lang="'.$this->languageTag().'"'; |
|
146 | 146 | } |
147 | 147 | } |
148 | 148 | |
@@ -162,13 +162,13 @@ discard block |
||
162 | 162 | public function languageTag() { |
163 | 163 | $language_tag = $this->language()->code(); |
164 | 164 | if ($this->script() != $this->language()->defaultScript()) { |
165 | - $language_tag .= '-' . $this->script()->code(); |
|
165 | + $language_tag .= '-'.$this->script()->code(); |
|
166 | 166 | } |
167 | 167 | if ($this->territory() != $this->language()->defaultTerritory()) { |
168 | - $language_tag .= '-' . $this->territory()->code(); |
|
168 | + $language_tag .= '-'.$this->territory()->code(); |
|
169 | 169 | } |
170 | 170 | if ($this->variant()) { |
171 | - $language_tag .= '-' . $this->variant()->code(); |
|
171 | + $language_tag .= '-'.$this->variant()->code(); |
|
172 | 172 | } |
173 | 173 | |
174 | 174 | return $language_tag; |
@@ -201,20 +201,20 @@ discard block |
||
201 | 201 | $integers = $parts[0]; |
202 | 202 | if (strlen($integers) >= $this->digitsFirstGroup() + $this->minimumGroupingDigits()) { |
203 | 203 | $todo = substr($integers, 0, -$this->digitsFirstGroup()); |
204 | - $integers = self::GROUP . substr($integers, -$this->digitsFirstGroup()); |
|
204 | + $integers = self::GROUP.substr($integers, -$this->digitsFirstGroup()); |
|
205 | 205 | while (strlen($todo) >= $this->digitsGroup() + $this->minimumGroupingDigits()) { |
206 | - $integers = self::GROUP . substr($todo, -$this->digitsGroup()) . $integers; |
|
206 | + $integers = self::GROUP.substr($todo, -$this->digitsGroup()).$integers; |
|
207 | 207 | $todo = substr($todo, 0, -$this->digitsGroup()); |
208 | 208 | } |
209 | - $integers = $todo . $integers; |
|
209 | + $integers = $todo.$integers; |
|
210 | 210 | } |
211 | 211 | if (count($parts) > 1) { |
212 | - $decimals = self::DECIMAL . $parts[1]; |
|
212 | + $decimals = self::DECIMAL.$parts[1]; |
|
213 | 213 | } else { |
214 | 214 | $decimals = ''; |
215 | 215 | } |
216 | 216 | |
217 | - return $this->digits($negative . $integers . $decimals); |
|
217 | + return $this->digits($negative.$integers.$decimals); |
|
218 | 218 | } |
219 | 219 | |
220 | 220 | /** |
@@ -252,7 +252,7 @@ discard block |
||
252 | 252 | * @return string |
253 | 253 | */ |
254 | 254 | protected function percentFormat() { |
255 | - return '%s' . self::PERCENT; |
|
255 | + return '%s'.self::PERCENT; |
|
256 | 256 | } |
257 | 257 | |
258 | 258 | /** |
@@ -11,25 +11,25 @@ |
||
11 | 11 | * @license GPLv3+ |
12 | 12 | */ |
13 | 13 | class LocaleArTn extends LocaleAr { |
14 | - public function numberSymbols() { |
|
15 | - return array( |
|
16 | - self::GROUP => self::DOT, |
|
17 | - self::DECIMAL => self::COMMA, |
|
18 | - self::NEGATIVE => self::LTR_MARK . '-', |
|
19 | - ); |
|
20 | - } |
|
14 | + public function numberSymbols() { |
|
15 | + return array( |
|
16 | + self::GROUP => self::DOT, |
|
17 | + self::DECIMAL => self::COMMA, |
|
18 | + self::NEGATIVE => self::LTR_MARK . '-', |
|
19 | + ); |
|
20 | + } |
|
21 | 21 | |
22 | - protected function numerals() { |
|
23 | - $latin = new ScriptLatn(); |
|
22 | + protected function numerals() { |
|
23 | + $latin = new ScriptLatn(); |
|
24 | 24 | |
25 | - return $latin->numerals(); |
|
26 | - } |
|
25 | + return $latin->numerals(); |
|
26 | + } |
|
27 | 27 | |
28 | - protected function percentFormat() { |
|
29 | - return '%s' . self::LTR_MARK . self::PERCENT . self::LTR_MARK; |
|
30 | - } |
|
28 | + protected function percentFormat() { |
|
29 | + return '%s' . self::LTR_MARK . self::PERCENT . self::LTR_MARK; |
|
30 | + } |
|
31 | 31 | |
32 | - public function territory() { |
|
32 | + public function territory() { |
|
33 | 33 | return new TerritoryTn; |
34 | 34 | } |
35 | 35 | } |
@@ -15,7 +15,7 @@ discard block |
||
15 | 15 | return array( |
16 | 16 | self::GROUP => self::DOT, |
17 | 17 | self::DECIMAL => self::COMMA, |
18 | - self::NEGATIVE => self::LTR_MARK . '-', |
|
18 | + self::NEGATIVE => self::LTR_MARK.'-', |
|
19 | 19 | ); |
20 | 20 | } |
21 | 21 | |
@@ -26,7 +26,7 @@ discard block |
||
26 | 26 | } |
27 | 27 | |
28 | 28 | protected function percentFormat() { |
29 | - return '%s' . self::LTR_MARK . self::PERCENT . self::LTR_MARK; |
|
29 | + return '%s'.self::LTR_MARK.self::PERCENT.self::LTR_MARK; |
|
30 | 30 | } |
31 | 31 | |
32 | 32 | public function territory() { |
@@ -30,7 +30,7 @@ |
||
30 | 30 | } |
31 | 31 | |
32 | 32 | protected function percentFormat() { |
33 | - return '%s' . self::PERCENT; |
|
33 | + return '%s'.self::PERCENT; |
|
34 | 34 | } |
35 | 35 | |
36 | 36 | } |
@@ -16,7 +16,7 @@ |
||
16 | 16 | return '166'; |
17 | 17 | } |
18 | 18 | |
19 | - public function unicodeName() { |
|
20 | - return 'Adlam'; |
|
21 | - } |
|
19 | + public function unicodeName() { |
|
20 | + return 'Adlam'; |
|
21 | + } |
|
22 | 22 | } |
@@ -16,7 +16,7 @@ |
||
16 | 16 | return '313'; |
17 | 17 | } |
18 | 18 | |
19 | - public function unicodeName() { |
|
20 | - return 'Masaram_Gondi'; |
|
21 | - } |
|
19 | + public function unicodeName() { |
|
20 | + return 'Masaram_Gondi'; |
|
21 | + } |
|
22 | 22 | } |
@@ -16,7 +16,7 @@ |
||
16 | 16 | return '219'; |
17 | 17 | } |
18 | 18 | |
19 | - public function unicodeName() { |
|
20 | - return 'Osage'; |
|
21 | - } |
|
19 | + public function unicodeName() { |
|
20 | + return 'Osage'; |
|
21 | + } |
|
22 | 22 | } |
@@ -16,7 +16,7 @@ |
||
16 | 16 | return '520'; |
17 | 17 | } |
18 | 18 | |
19 | - public function unicodeName() { |
|
20 | - return 'Tangut'; |
|
21 | - } |
|
19 | + public function unicodeName() { |
|
20 | + return 'Tangut'; |
|
21 | + } |
|
22 | 22 | } |
@@ -16,7 +16,7 @@ |
||
16 | 16 | return '128'; |
17 | 17 | } |
18 | 18 | |
19 | - public function unicodeName() { |
|
20 | - return 'Elymaic'; |
|
21 | - } |
|
19 | + public function unicodeName() { |
|
20 | + return 'Elymaic'; |
|
21 | + } |
|
22 | 22 | } |