Completed
Pull Request — master (#38)
by
unknown
03:27
created
src/Resource/Customer.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -347,7 +347,7 @@
 block discarded – undo
347 347
     public function setBirthDate($birthDate)
348 348
     {
349 349
 
350
-        if($birthDate instanceof \DateTime){
350
+        if ($birthDate instanceof \DateTime) {
351 351
             $birthDate = $birthDate->format('Y-m-d');
352 352
 
353 353
         }
Please login to merge, or discard this patch.
src/Resource/MoipResource.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -89,10 +89,10 @@  discard block
 block discarded – undo
89 89
      * @param stdClass|null $data
90 90
      * @return \DateTime|null
91 91
      */
92
-    protected function getIfSetDate($key, stdClass $data = null){
92
+    protected function getIfSetDate($key, stdClass $data = null) {
93 93
 
94 94
         $val = $this->getIfSet($key, $data);
95
-        if(!empty($val)){
95
+        if (!empty($val)) {
96 96
             return \DateTime::createFromFormat('Y-m-d', $val);
97 97
         }
98 98
         return null;
@@ -106,9 +106,9 @@  discard block
 block discarded – undo
106 106
      * @return \DateTime|null
107 107
      */
108 108
 
109
-    protected function getIfSetDateTime($key, stdClass $data = null){
109
+    protected function getIfSetDateTime($key, stdClass $data = null) {
110 110
         $val = $this->getIfSet($key, $data);
111
-        if(!empty($val)){
111
+        if (!empty($val)) {
112 112
             return \DateTime::createFromFormat(\DateTime::ATOM, $val);
113 113
         }
114 114
         return null;
Please login to merge, or discard this patch.
src/Resource/Orders.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -471,7 +471,7 @@
 block discarded – undo
471 471
      * @param int|float $value discounted value.
472 472
      * @return $this
473 473
      */
474
-    public function setDiscount($value){
474
+    public function setDiscount($value) {
475 475
 
476 476
         $this->data->amount->subtotals->discount = (float) $value;
477 477
 
Please login to merge, or discard this patch.
src/Resource/Payment.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -198,12 +198,12 @@  discard block
 block discarded – undo
198 198
     {
199 199
         $keys = ['first', 'second', 'third'];
200 200
 
201
-        if(empty($instructionLines)){
201
+        if (empty($instructionLines)) {
202 202
             //Avoid warning in array_combine
203 203
             $instructionLines = ['', '', ''];
204 204
         }
205 205
 
206
-        if($expirationDate instanceof \DateTime){
206
+        if ($expirationDate instanceof \DateTime) {
207 207
             $expirationDate = $expirationDate->format('Y-m-d');
208 208
 
209 209
         }
@@ -304,7 +304,7 @@  discard block
 block discarded – undo
304 304
     public function setOnlineBankDebit($bankNumber, $expirationDate, $returnUri)
305 305
     {
306 306
 
307
-        if($expirationDate instanceof \DateTime){
307
+        if ($expirationDate instanceof \DateTime) {
308 308
             $expirationDate = $expirationDate->format('Y-m-d');
309 309
 
310 310
         }
Please login to merge, or discard this patch.