@@ -37,7 +37,7 @@ |
||
| 37 | 37 | if (count($arr)>=3) |
| 38 | 38 | { |
| 39 | 39 | $this->after_comma_array = [$arr[0], $arr[1]]; |
| 40 | - }else |
|
| 40 | + } else |
|
| 41 | 41 | { |
| 42 | 42 | $this->after_comma_array = $arr; |
| 43 | 43 | } |
@@ -12,7 +12,7 @@ |
||
| 12 | 12 | |
| 13 | 13 | if (is_numeric($this->parsed_number)) { |
| 14 | 14 | return $this; |
| 15 | - }else { |
|
| 15 | + } else { |
|
| 16 | 16 | die('is not right number '); |
| 17 | 17 | } |
| 18 | 18 | } |
@@ -289,7 +289,7 @@ discard block |
||
| 289 | 289 | |
| 290 | 290 | if (in_array($arr[1], [2, 1])) { |
| 291 | 291 | $million = $this->others[$arr[1]].$conn.$this->tens[$arr[0]]; |
| 292 | - }else { |
|
| 292 | + } else { |
|
| 293 | 293 | $million = $this->ones[$arr[1]].$conn.$this->tens[$arr[0]]; |
| 294 | 294 | } |
| 295 | 295 | |
@@ -299,28 +299,28 @@ discard block |
||
| 299 | 299 | { |
| 300 | 300 | $million = $this->ones[10]; |
| 301 | 301 | $million .= ' '.$this->millions[39]; |
| 302 | - }else |
|
| 302 | + } else |
|
| 303 | 303 | { |
| 304 | 304 | $million = $this->tens[$arr[0]]; |
| 305 | 305 | $million .= ' '.$this->millions[1]; |
| 306 | 306 | } |
| 307 | 307 | |
| 308 | - }else { |
|
| 308 | + } else { |
|
| 309 | 309 | if ($arr[2] == 0 and $arr[3] == 0 and $arr[4] == 0) |
| 310 | 310 | { |
| 311 | 311 | $million .= ' '.$this->millions[1]; |
| 312 | - }else |
|
| 312 | + } else |
|
| 313 | 313 | { |
| 314 | 314 | $million .= ' '.$this->millions[1199]; |
| 315 | 315 | } |
| 316 | 316 | |
| 317 | 317 | } |
| 318 | 318 | |
| 319 | - }else |
|
| 319 | + } else |
|
| 320 | 320 | { |
| 321 | 321 | if (in_array($arr[1], [2, 1])) { |
| 322 | 322 | $million = $this->others[$arr[1]].' '; |
| 323 | - }else { |
|
| 323 | + } else { |
|
| 324 | 324 | $million = $this->ones[$arr[1]].' '; |
| 325 | 325 | } |
| 326 | 326 | |
@@ -356,7 +356,7 @@ discard block |
||
| 356 | 356 | |
| 357 | 357 | if (in_array($arr[1], [2])) { |
| 358 | 358 | $million = $this->others[$arr[1]].$this->config['connection_tool'].$this->tens[$arr[0]]; |
| 359 | - }else { |
|
| 359 | + } else { |
|
| 360 | 360 | $million = $this->ones[$arr[1]].$this->config['connection_tool'].$this->tens[$arr[0]]; |
| 361 | 361 | } |
| 362 | 362 | |