Completed
Push — master ( 4cdff0...99da5f )
by Jean C.
02:24
created
src/Resource/MoipResource.php 2 patches
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -79,6 +79,9 @@
 block discarded – undo
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)) {
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -71,7 +71,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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);
Please login to merge, or discard this patch.
src/Resource/Orders.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -414,7 +414,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
     }
Please login to merge, or discard this patch.