@@ -32,7 +32,7 @@ |
||
32 | 32 | * @throws \DomainException |
33 | 33 | */ |
34 | 34 | public static function create($code) { |
35 | - $class = __NAMESPACE__ . '\Locale\Locale' . implode(array_map(function($x) { |
|
35 | + $class = __NAMESPACE__.'\Locale\Locale'.implode(array_map(function($x) { |
|
36 | 36 | return ucfirst(strtolower($x)); |
37 | 37 | }, preg_split('/[^a-zA-Z0-9]+/', $code))); |
38 | 38 |
@@ -30,6 +30,6 @@ |
||
30 | 30 | } |
31 | 31 | |
32 | 32 | protected function percentFormat() { |
33 | - return self::PERCENT . self::NBSP . '%s'; |
|
33 | + return self::PERCENT.self::NBSP.'%s'; |
|
34 | 34 | } |
35 | 35 | } |
@@ -24,7 +24,7 @@ |
||
24 | 24 | |
25 | 25 | public function numberSymbols() { |
26 | 26 | return array( |
27 | - self::NEGATIVE => self::LTR_MARK . self::HYPHEN . self::LTR_MARK, |
|
27 | + self::NEGATIVE => self::LTR_MARK.self::HYPHEN.self::LTR_MARK, |
|
28 | 28 | ); |
29 | 29 | } |
30 | 30 | } |
@@ -23,6 +23,6 @@ |
||
23 | 23 | } |
24 | 24 | |
25 | 25 | protected function percentFormat() { |
26 | - return '%s' . self::ARAB_PERCENT; |
|
26 | + return '%s'.self::ARAB_PERCENT; |
|
27 | 27 | } |
28 | 28 | } |
@@ -9,7 +9,7 @@ discard block |
||
9 | 9 | */ |
10 | 10 | class LocaleZhHans extends LocaleZh { |
11 | 11 | public function endonym() { |
12 | - if (get_class($this) === __NAMESPACE__ . '\LocaleZhHans') { |
|
12 | + if (get_class($this) === __NAMESPACE__.'\LocaleZhHans') { |
|
13 | 13 | // If the Hans script has been specified (but no other tags), then it is customary to include it. |
14 | 14 | return '简体中文'; |
15 | 15 | } else { |
@@ -18,7 +18,7 @@ discard block |
||
18 | 18 | } |
19 | 19 | |
20 | 20 | public function languageTag() { |
21 | - if (get_class($this) === __NAMESPACE__ . '\LocaleZhHans') { |
|
21 | + if (get_class($this) === __NAMESPACE__.'\LocaleZhHans') { |
|
22 | 22 | // If the Hans script has been specified (but no other tags), then it is customary to include it. |
23 | 23 | return 'zh-Hans'; |
24 | 24 | } else { |
@@ -22,11 +22,11 @@ |
||
22 | 22 | return array( |
23 | 23 | self::GROUP => self::ARAB_GROUP, |
24 | 24 | self::DECIMAL => self::ARAB_DECIMAL, |
25 | - self::NEGATIVE => self::LTR_MARK . self::HYPHEN . self::LTR_MARK, |
|
25 | + self::NEGATIVE => self::LTR_MARK.self::HYPHEN.self::LTR_MARK, |
|
26 | 26 | ); |
27 | 27 | } |
28 | 28 | |
29 | 29 | protected function percentFormat() { |
30 | - return '%s' . self::ARAB_PERCENT; |
|
30 | + return '%s'.self::ARAB_PERCENT; |
|
31 | 31 | } |
32 | 32 | } |
@@ -30,11 +30,11 @@ |
||
30 | 30 | return array( |
31 | 31 | self::GROUP => self::ARAB_GROUP, |
32 | 32 | self::DECIMAL => self::ARAB_DECIMAL, |
33 | - self::NEGATIVE => self::LTR_MARK . self::MINUS_SIGN, |
|
33 | + self::NEGATIVE => self::LTR_MARK.self::MINUS_SIGN, |
|
34 | 34 | ); |
35 | 35 | } |
36 | 36 | |
37 | 37 | protected function percentFormat() { |
38 | - return '%s' . self::ARAB_PERCENT; |
|
38 | + return '%s'.self::ARAB_PERCENT; |
|
39 | 39 | } |
40 | 40 | } |
@@ -22,11 +22,11 @@ |
||
22 | 22 | return array( |
23 | 23 | self::GROUP => self::ARAB_GROUP, |
24 | 24 | self::DECIMAL => self::ARAB_DECIMAL, |
25 | - self::NEGATIVE => self::RTL_MARK . self::HYPHEN, |
|
25 | + self::NEGATIVE => self::RTL_MARK.self::HYPHEN, |
|
26 | 26 | ); |
27 | 27 | } |
28 | 28 | |
29 | 29 | protected function percentFormat() { |
30 | - return '%s' . self::ARAB_PERCENT; |
|
30 | + return '%s'.self::ARAB_PERCENT; |
|
31 | 31 | } |
32 | 32 | } |
@@ -43,17 +43,17 @@ discard block |
||
43 | 43 | * @return string |
44 | 44 | */ |
45 | 45 | public function code() { |
46 | - $code = $this->language()->code() . '_' . $this->territory()->code(); |
|
46 | + $code = $this->language()->code().'_'.$this->territory()->code(); |
|
47 | 47 | |
48 | 48 | if ($this->script() != $this->language()->defaultScript()) { |
49 | - $code .= '@' . strtolower($this->script()->unicodeName()); |
|
49 | + $code .= '@'.strtolower($this->script()->unicodeName()); |
|
50 | 50 | } |
51 | 51 | |
52 | 52 | if ($this->variant()) { |
53 | 53 | if ($this->variant()->code() === 'posix') { |
54 | 54 | $code = 'POSIX'; |
55 | 55 | } else { |
56 | - $code .= '@' . $this->variant()->code(); |
|
56 | + $code .= '@'.$this->variant()->code(); |
|
57 | 57 | } |
58 | 58 | } |
59 | 59 | |
@@ -131,9 +131,9 @@ discard block |
||
131 | 131 | */ |
132 | 132 | public function htmlAttributes() { |
133 | 133 | if ($this->direction() === 'rtl' || $this->direction() !== $this->script()->direction()) { |
134 | - return 'lang="' . $this->languageTag() . '" dir="' . $this->direction() . '"'; |
|
134 | + return 'lang="'.$this->languageTag().'" dir="'.$this->direction().'"'; |
|
135 | 135 | } else { |
136 | - return 'lang="' . $this->languageTag() . '"'; |
|
136 | + return 'lang="'.$this->languageTag().'"'; |
|
137 | 137 | } |
138 | 138 | } |
139 | 139 | |
@@ -146,13 +146,13 @@ discard block |
||
146 | 146 | public function languageTag() { |
147 | 147 | $language_tag = $this->language()->code(); |
148 | 148 | if ($this->script() != $this->language()->defaultScript()) { |
149 | - $language_tag .= '-' . $this->script()->code(); |
|
149 | + $language_tag .= '-'.$this->script()->code(); |
|
150 | 150 | } |
151 | 151 | if ($this->territory() != $this->language()->defaultTerritory()) { |
152 | - $language_tag .= '-' . $this->territory()->code(); |
|
152 | + $language_tag .= '-'.$this->territory()->code(); |
|
153 | 153 | } |
154 | 154 | if ($this->variant()) { |
155 | - $language_tag .= '-' . $this->variant()->code(); |
|
155 | + $language_tag .= '-'.$this->variant()->code(); |
|
156 | 156 | } |
157 | 157 | |
158 | 158 | return $language_tag; |
@@ -185,20 +185,20 @@ discard block |
||
185 | 185 | $integers = $parts[0]; |
186 | 186 | if (strlen($integers) >= $this->digitsFirstGroup() + $this->minimumGroupingDigits()) { |
187 | 187 | $todo = substr($integers, 0, -$this->digitsFirstGroup()); |
188 | - $integers = self::GROUP . substr($integers, -$this->digitsFirstGroup()); |
|
188 | + $integers = self::GROUP.substr($integers, -$this->digitsFirstGroup()); |
|
189 | 189 | while (strlen($todo) >= $this->digitsGroup() + $this->minimumGroupingDigits()) { |
190 | - $integers = self::GROUP . substr($todo, -$this->digitsGroup()) . $integers; |
|
190 | + $integers = self::GROUP.substr($todo, -$this->digitsGroup()).$integers; |
|
191 | 191 | $todo = substr($todo, 0, -$this->digitsGroup()); |
192 | 192 | } |
193 | - $integers = $todo . $integers; |
|
193 | + $integers = $todo.$integers; |
|
194 | 194 | } |
195 | 195 | if (count($parts) > 1) { |
196 | - $decimals = self::DECIMAL . $parts[1]; |
|
196 | + $decimals = self::DECIMAL.$parts[1]; |
|
197 | 197 | } else { |
198 | 198 | $decimals = ''; |
199 | 199 | } |
200 | 200 | |
201 | - return $this->digits($negative . $integers . $decimals); |
|
201 | + return $this->digits($negative.$integers.$decimals); |
|
202 | 202 | } |
203 | 203 | |
204 | 204 | /** |