@@ -8,7 +8,7 @@ |
||
8 | 8 | { |
9 | 9 | if (is_numeric($this->parsed_number)) { |
10 | 10 | return $this; |
11 | - }else { |
|
11 | + } else { |
|
12 | 12 | die('is not right number '); |
13 | 13 | } |
14 | 14 | } |
@@ -93,7 +93,7 @@ discard block |
||
93 | 93 | |
94 | 94 | if ($arr[0]<=2) { |
95 | 95 | $thousands = $this->thousands[$arr[0]]; |
96 | - }else { |
|
96 | + } else { |
|
97 | 97 | $thousands = $this->ones[$arr[0]].' '.$this->thousands['39']; |
98 | 98 | } |
99 | 99 | |
@@ -117,7 +117,7 @@ discard block |
||
117 | 117 | |
118 | 118 | if (in_array($arr[1], [2, 1])) { |
119 | 119 | $thousands = $this->others[$arr[1]].$conn.$this->tens[$arr[0]]; |
120 | - }else { |
|
120 | + } else { |
|
121 | 121 | $thousands = $this->ones[$arr[1]].$conn.$this->tens[$arr[0]]; |
122 | 122 | } |
123 | 123 | |
@@ -125,21 +125,21 @@ discard block |
||
125 | 125 | if ($arr[0] == 1) { |
126 | 126 | $thousands = $this->ones[10]; |
127 | 127 | $thousands .= ' '.$this->thousands[39]; |
128 | - }else { |
|
128 | + } else { |
|
129 | 129 | $thousands = $this->tens[$arr[0]]; |
130 | 130 | $thousands .= ' '.$this->thousands[1]; |
131 | 131 | } |
132 | - }else { |
|
132 | + } else { |
|
133 | 133 | if ($arr[2] == 0 and $arr[3] == 0 and $arr[4] == 0) { |
134 | 134 | $thousands .= ' '.$this->thousands[1]; |
135 | - }else { |
|
135 | + } else { |
|
136 | 136 | $thousands .= ' '.$this->thousands[1199]; |
137 | 137 | } |
138 | 138 | } |
139 | - }else { |
|
139 | + } else { |
|
140 | 140 | if (in_array($arr[1], [2, 1])) { |
141 | 141 | $thousands = $this->others[$arr[1]].' '; |
142 | - }else { |
|
142 | + } else { |
|
143 | 143 | $thousands = $this->ones[$arr[1]].' '; |
144 | 144 | } |
145 | 145 | |
@@ -162,7 +162,7 @@ discard block |
||
162 | 162 | if ($arr[0] != 0) { |
163 | 163 | if ($arr[1] == 0 && $arr[2] == 0) { |
164 | 164 | $thousands = $this->hundreds[$arr[0]].' '.$this->thousands[1]; |
165 | - }else { |
|
165 | + } else { |
|
166 | 166 | if ($arr[1] == 0) { |
167 | 167 | $thousands = $this->hundreds[$arr[0]].$this->config['connection_tool']. |
168 | 168 | $this->ones[$arr[2]].' '.$this->thousands[1]; |
@@ -170,11 +170,11 @@ discard block |
||
170 | 170 | if ($arr[3] == 0 and $arr[4] == 0 and $arr[5] == 0) { |
171 | 171 | $thousands = $this->hundreds[$arr[0]].$this->config['connection_tool']. |
172 | 172 | $this->tens[$arr[1]].' '.$this->thousands[1]; |
173 | - }else { |
|
173 | + } else { |
|
174 | 174 | $thousands = $this->hundreds[$arr[0]].$this->config['connection_tool']. |
175 | 175 | $this->tens[$arr[1]].' '.$this->thousands[1199]; |
176 | 176 | } |
177 | - }else { |
|
177 | + } else { |
|
178 | 178 | // $thousands_lang = $this->thousands[1199]; |
179 | 179 | if ($arr[1] == 0 and $arr[2]>=1 and $arr[1]<=10) { |
180 | 180 | $thousands_lang = $this->thousands[1]; |
@@ -187,7 +187,7 @@ discard block |
||
187 | 187 | $thousands = $this->classC([$arr[0], $arr[1], $arr[2]], 3).' '.$thousands_lang; |
188 | 188 | } |
189 | 189 | } |
190 | - }else { |
|
190 | + } else { |
|
191 | 191 | return $this->classE([$arr[1], $arr[2], $arr[3], $arr[4], $arr[5]]); |
192 | 192 | } |
193 | 193 | |
@@ -206,7 +206,7 @@ discard block |
||
206 | 206 | |
207 | 207 | if ($arr[0]<=2) { |
208 | 208 | $million = $this->millions[$arr[0]]; |
209 | - }else { |
|
209 | + } else { |
|
210 | 210 | $million = $this->ones[$arr[0]].' '.$this->millions['39']; |
211 | 211 | } |
212 | 212 | |
@@ -240,7 +240,7 @@ discard block |
||
240 | 240 | |
241 | 241 | if (in_array($arr[1], [2, 1])) { |
242 | 242 | $million = $this->others[$arr[1]].$conn.$this->tens[$arr[0]]; |
243 | - }else { |
|
243 | + } else { |
|
244 | 244 | $million = $this->ones[$arr[1]].$conn.$this->tens[$arr[0]]; |
245 | 245 | } |
246 | 246 | |
@@ -248,21 +248,21 @@ discard block |
||
248 | 248 | if ($arr[0] == 1) { |
249 | 249 | $million = $this->ones[10]; |
250 | 250 | $million .= ' '.$this->millions[39]; |
251 | - }else { |
|
251 | + } else { |
|
252 | 252 | $million = $this->tens[$arr[0]]; |
253 | 253 | $million .= ' '.$this->millions[1]; |
254 | 254 | } |
255 | - }else { |
|
255 | + } else { |
|
256 | 256 | if ($arr[2] == 0 and $arr[3] == 0 and $arr[4] == 0) { |
257 | 257 | $million .= ' '.$this->millions[1]; |
258 | - }else { |
|
258 | + } else { |
|
259 | 259 | $million .= ' '.$this->millions[1199]; |
260 | 260 | } |
261 | 261 | } |
262 | - }else { |
|
262 | + } else { |
|
263 | 263 | if (in_array($arr[1], [2, 1])) { |
264 | 264 | $million = $this->others[$arr[1]].' '; |
265 | - }else { |
|
265 | + } else { |
|
266 | 266 | $million = $this->ones[$arr[1]].' '; |
267 | 267 | } |
268 | 268 | |
@@ -295,7 +295,7 @@ discard block |
||
295 | 295 | |
296 | 296 | if (in_array($arr[1], [2])) { |
297 | 297 | $million = $this->others[$arr[1]].$this->config['connection_tool'].$this->tens[$arr[0]]; |
298 | - }else { |
|
298 | + } else { |
|
299 | 299 | $million = $this->ones[$arr[1]].$this->config['connection_tool'].$this->tens[$arr[0]]; |
300 | 300 | } |
301 | 301 |
@@ -35,7 +35,7 @@ |
||
35 | 35 | |
36 | 36 | if (count($arr)>=3) { |
37 | 37 | $this->after_comma_array = [$arr[0], $arr[1]]; |
38 | - }else { |
|
38 | + } else { |
|
39 | 39 | $this->after_comma_array = $arr; |
40 | 40 | } |
41 | 41 |
@@ -107,7 +107,7 @@ discard block |
||
107 | 107 | |
108 | 108 | if ($this->is_main1_currency) { |
109 | 109 | $result .= $this->result_before_comma.' '.$this->config['currencies'][$currency]['main1']; |
110 | - }else { |
|
110 | + } else { |
|
111 | 111 | $result .= $this->result_before_comma.' '.$this->config['currencies'][$currency]['main2']; |
112 | 112 | } |
113 | 113 | if ($this->after_comma_len>=1 && $this->after_comma_sum != 00) { |
@@ -116,7 +116,7 @@ discard block |
||
116 | 116 | ])) { |
117 | 117 | $result .= $this->config['connection_tool'].$this->result_after_comma.' '. |
118 | 118 | $this->config['currencies'][$currency]['multi']; |
119 | - }else { |
|
119 | + } else { |
|
120 | 120 | $result .= $this->config['connection_tool'].$this->result_after_comma.' '. |
121 | 121 | $this->config['currencies'][$currency]['single']; |
122 | 122 | } |