Completed
Pull Request — master (#37)
by
unknown
03:22
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/Payment.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -198,7 +198,7 @@  discard block
 block discarded – undo
198 198
     {
199 199
         $keys = ['first', 'second', 'third'];
200 200
 
201
-        if($expirationDate instanceof \DateTime){
201
+        if ($expirationDate instanceof \DateTime) {
202 202
             $expirationDate = $expirationDate->format('Y-m-d');
203 203
 
204 204
         }
@@ -299,7 +299,7 @@  discard block
 block discarded – undo
299 299
     public function setOnlineBankDebit($bankNumber, $expirationDate, $returnUri)
300 300
     {
301 301
 
302
-        if($expirationDate instanceof \DateTime){
302
+        if ($expirationDate instanceof \DateTime) {
303 303
             $expirationDate = $expirationDate->format('Y-m-d');
304 304
 
305 305
         }
Please login to merge, or discard this patch.