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