@@ -41,7 +41,7 @@ discard block |
||
41 | 41 | $value = $this->convertValue($value, $base, 10); |
42 | 42 | } |
43 | 43 | |
44 | - $value = (string)$value; |
|
44 | + $value = (string) $value; |
|
45 | 45 | $this->value = $this->translateValue($value); |
46 | 46 | |
47 | 47 | if (!is_null($precision)) { |
@@ -56,7 +56,7 @@ discard block |
||
56 | 56 | $this->precision = ($precision > strlen($this->getDecimalPart())) ? $precision : strlen($this->getDecimalPart()); |
57 | 57 | } else { |
58 | 58 | $checkVal = $this->getDecimalPart(); |
59 | - $checkVal = trim($checkVal,'0'); |
|
59 | + $checkVal = trim($checkVal, '0'); |
|
60 | 60 | |
61 | 61 | if (strlen($checkVal) > 0) { |
62 | 62 | $this->precision = (strlen($this->getDecimalPart()) > 10) ? strlen($this->getDecimalPart()) : 10; |
@@ -48,7 +48,7 @@ discard block |
||
48 | 48 | |
49 | 49 | $rounded = $whole.'.'; |
50 | 50 | |
51 | - for ($i = 0;$i < $decimals;$i++) { |
|
51 | + for ($i = 0; $i < $decimals; $i++) { |
|
52 | 52 | $rounded .= $fractionalArr[$i]; |
53 | 53 | } |
54 | 54 | |
@@ -130,7 +130,7 @@ discard block |
||
130 | 130 | $total = strlen($fractional); |
131 | 131 | $fractional = ltrim($fractional, '0'); |
132 | 132 | |
133 | - return ($total - strlen($fractional)); |
|
133 | + return ($total-strlen($fractional)); |
|
134 | 134 | } |
135 | 135 | |
136 | 136 | /** |
@@ -216,9 +216,9 @@ |
||
216 | 216 | |
217 | 217 | if ($check == 1) { |
218 | 218 | $checkVal = $this->getDecimalPart(); |
219 | - $checkVal = trim($checkVal,'0'); |
|
219 | + $checkVal = trim($checkVal, '0'); |
|
220 | 220 | |
221 | - if (strlen($checkVal) > 0 ) { |
|
221 | + if (strlen($checkVal) > 0) { |
|
222 | 222 | return false; |
223 | 223 | } else { |
224 | 224 | return true; |