@@ -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 | } |
@@ -274,7 +274,7 @@ discard block |
||
| 274 | 274 | |
| 275 | 275 | if (in_array($arr[1], [2, 1])) { |
| 276 | 276 | $million = $this->others[$arr[1]].$conn.$this->tens[$arr[0]]; |
| 277 | - } else { |
|
| 277 | + }else { |
|
| 278 | 278 | $million = $this->ones[$arr[1]].$conn.$this->tens[$arr[0]]; |
| 279 | 279 | } |
| 280 | 280 | |
@@ -284,28 +284,28 @@ discard block |
||
| 284 | 284 | { |
| 285 | 285 | $million = $this->ones[10]; |
| 286 | 286 | $million .= ' '.$this->millions[39]; |
| 287 | - } else |
|
| 287 | + }else |
|
| 288 | 288 | { |
| 289 | 289 | $million = $this->tens[$arr[0]]; |
| 290 | 290 | $million .= ' '.$this->millions[1]; |
| 291 | 291 | } |
| 292 | 292 | |
| 293 | - } else { |
|
| 293 | + }else { |
|
| 294 | 294 | if ($arr[2] == 0 and $arr[3] == 0 and $arr[4] == 0) |
| 295 | 295 | { |
| 296 | 296 | $million .= ' '.$this->millions[1]; |
| 297 | - } else |
|
| 297 | + }else |
|
| 298 | 298 | { |
| 299 | 299 | $million .= ' '.$this->millions[1199]; |
| 300 | 300 | } |
| 301 | 301 | |
| 302 | 302 | } |
| 303 | 303 | |
| 304 | - } else |
|
| 304 | + }else |
|
| 305 | 305 | { |
| 306 | 306 | if (in_array($arr[1], [2, 1])) { |
| 307 | 307 | $million = $this->others[$arr[1]].' '; |
| 308 | - } else { |
|
| 308 | + }else { |
|
| 309 | 309 | $million = $this->ones[$arr[1]].' '; |
| 310 | 310 | } |
| 311 | 311 | |
@@ -341,7 +341,7 @@ discard block |
||
| 341 | 341 | |
| 342 | 342 | if (in_array($arr[1], [2])) { |
| 343 | 343 | $million = $this->others[$arr[1]].$this->config['connection_tool'].$this->tens[$arr[0]]; |
| 344 | - } else { |
|
| 344 | + }else { |
|
| 345 | 345 | $million = $this->ones[$arr[1]].$this->config['connection_tool'].$this->tens[$arr[0]]; |
| 346 | 346 | } |
| 347 | 347 | |
@@ -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 | } |