@@ -79,6 +79,9 @@ |
||
| 79 | 79 | } |
| 80 | 80 | } |
| 81 | 81 | |
| 82 | + /** |
|
| 83 | + * @param string $key |
|
| 84 | + */ |
|
| 82 | 85 | protected function getIfSetDateFmt($key, $fmt, stdClass $data=null){ |
| 83 | 86 | $val = $this->getIfSet($key, $data); |
| 84 | 87 | if (!empty($val)) { |
@@ -414,7 +414,7 @@ discard block |
||
| 414 | 414 | * @return $this |
| 415 | 415 | */ |
| 416 | 416 | public function setAddition($value) { |
| 417 | - $this->data->subtotals->addition = (float)$value; |
|
| 417 | + $this->data->subtotals->addition = (float) $value; |
|
| 418 | 418 | |
| 419 | 419 | return $this; |
| 420 | 420 | } |
@@ -438,7 +438,7 @@ discard block |
||
| 438 | 438 | */ |
| 439 | 439 | public function setDiscount($value) { |
| 440 | 440 | |
| 441 | - $this->data->amount->subtotals->discount = (float)$value; |
|
| 441 | + $this->data->amount->subtotals->discount = (float) $value; |
|
| 442 | 442 | |
| 443 | 443 | return $this; |
| 444 | 444 | |
@@ -477,7 +477,7 @@ discard block |
||
| 477 | 477 | * @return $this |
| 478 | 478 | */ |
| 479 | 479 | public function setShippingAmount($value) { |
| 480 | - $this->data->amount->subtotals->shipping = (float)$value; |
|
| 480 | + $this->data->amount->subtotals->shipping = (float) $value; |
|
| 481 | 481 | |
| 482 | 482 | return $this; |
| 483 | 483 | } |