Completed
Push — master ( af57be...69e569 )
by Adriano
02:26
created
src/Integracao/ControlPay/Contracts/Terminal/InsertResponse.php 1 patch
Braces   +6 added lines, -4 removed lines patch added patch discarded remove patch
@@ -45,8 +45,9 @@  discard block
 block discarded – undo
45 45
     {
46 46
         $this->data = \DateTime::createFromFormat('d/m/Y H:i:s.u', $data);
47 47
 
48
-        if(!$this->data)
49
-            $this->data = \DateTime::createFromFormat('d/m/Y H:i:s', $data);
48
+        if(!$this->data) {
49
+                    $this->data = \DateTime::createFromFormat('d/m/Y H:i:s', $data);
50
+        }
50 51
 
51 52
         return $this;
52 53
     }
@@ -67,8 +68,9 @@  discard block
 block discarded – undo
67 68
     {
68 69
         $this->terminal = $terminal;
69 70
 
70
-        if(is_array($this->terminal))
71
-            $this->terminal = SerializerHelper::denormalize($this->terminal, Terminal::class);
71
+        if(is_array($this->terminal)) {
72
+                    $this->terminal = SerializerHelper::denormalize($this->terminal, Terminal::class);
73
+        }
72 74
 
73 75
         return $this;
74 76
     }
Please login to merge, or discard this patch.
Integracao/ControlPay/Contracts/IntencaoVenda/GetByIntegracaoIdResponse.php 1 patch
Braces   +3 added lines, -2 removed lines patch added patch discarded remove patch
@@ -61,8 +61,9 @@
 block discarded – undo
61 61
     public function setIntencoesVendas($intencoesVendas)
62 62
     {
63 63
 
64
-        foreach ($intencoesVendas as $intencaoVenda)
65
-            $this->intencoesVendas[] = SerializerHelper::denormalize($intencaoVenda, IntencaoVenda::class);
64
+        foreach ($intencoesVendas as $intencaoVenda) {
65
+                    $this->intencoesVendas[] = SerializerHelper::denormalize($intencaoVenda, IntencaoVenda::class);
66
+        }
66 67
 
67 68
         return $this;
68 69
     }
Please login to merge, or discard this patch.
src/Integracao/ControlPay/Contracts/IntencaoVenda/GetByFiltrosResponse.php 1 patch
Braces   +3 added lines, -2 removed lines patch added patch discarded remove patch
@@ -61,8 +61,9 @@
 block discarded – undo
61 61
     public function setIntencoesVendas($intencoesVendas)
62 62
     {
63 63
 
64
-        foreach ($intencoesVendas as $intencaoVenda)
65
-            $this->intencoesVendas[] = SerializerHelper::denormalize($intencaoVenda, IntencaoVenda::class);
64
+        foreach ($intencoesVendas as $intencaoVenda) {
65
+                    $this->intencoesVendas[] = SerializerHelper::denormalize($intencaoVenda, IntencaoVenda::class);
66
+        }
66 67
 
67 68
         return $this;
68 69
     }
Please login to merge, or discard this patch.