@@ -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)) { |
@@ -71,7 +71,7 @@ discard block |
||
71 | 71 | */ |
72 | 72 | protected function getIfSet($key, stdClass $data = null) { |
73 | 73 | |
74 | - if(empty($data)){ |
|
74 | + if (empty($data)) { |
|
75 | 75 | $data = $this->data; |
76 | 76 | } |
77 | 77 | |
@@ -82,7 +82,7 @@ discard block |
||
82 | 82 | return null; |
83 | 83 | } |
84 | 84 | |
85 | - protected function getIfSetDateFmt($key, $fmt, stdClass $data=null){ |
|
85 | + protected function getIfSetDateFmt($key, $fmt, stdClass $data = null) { |
|
86 | 86 | $val = $this->getIfSet($key, $data); |
87 | 87 | if (!empty($val)) { |
88 | 88 | $dt = \DateTime::createFromFormat($fmt, $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 | } |