@@ -29,20 +29,20 @@ |
||
29 | 29 | $amount = strpos($amount, '.') !== false ? $amount : $amount . '.0'; |
30 | 30 | |
31 | 31 | list($integerValue, $decimalValue) = explode('.', $amount); |
32 | - $intHTML = '<span class="money-int">'.number_format($integerValue).'</span>'; |
|
32 | + $intHTML = '<span class="money-int">' . number_format($integerValue) . '</span>'; |
|
33 | 33 | |
34 | 34 | $decimalValue = str_pad($decimalValue, 2, '0', STR_PAD_LEFT); |
35 | - $decimalHTML = '<sup class="money-decimal">.'.$decimalValue.'</sup>'; |
|
35 | + $decimalHTML = '<sup class="money-decimal">.' . $decimalValue . '</sup>'; |
|
36 | 36 | |
37 | - $return = $intHTML.$decimalHTML; |
|
37 | + $return = $intHTML . $decimalHTML; |
|
38 | 38 | |
39 | - $symbolHTML = '<span class="money-currency">'.$this->symbol.'</span>'; |
|
39 | + $symbolHTML = '<span class="money-currency">' . $this->symbol . '</span>'; |
|
40 | 40 | if ($this->position == 'before') { |
41 | - $return = $symbolHTML.' '.$amount; |
|
41 | + $return = $symbolHTML . ' ' . $amount; |
|
42 | 42 | } else { |
43 | - $return .= ' '.$symbolHTML; |
|
43 | + $return .= ' ' . $symbolHTML; |
|
44 | 44 | } |
45 | 45 | |
46 | - return '<span class="price" content="'.$amount.'">'.$return.'</span>'; |
|
46 | + return '<span class="price" content="' . $amount . '">' . $return . '</span>'; |
|
47 | 47 | } |
48 | 48 | } |