Completed
Push — master ( 741114...78e68a )
by Adriano
09:10
created
Integracao/ControlPay/Contracts/PagamentoExterno/GetByFiltrosResponse.php 2 patches
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -44,7 +44,7 @@  discard block
 block discarded – undo
44 44
     {
45 45
         $this->data = \DateTime::createFromFormat('d/m/Y H:i:s.u', $data);
46 46
 
47
-        if(!$this->data)
47
+        if (!$this->data)
48 48
             $this->data = \DateTime::createFromFormat('d/m/Y H:i:s', $data);
49 49
 
50 50
         return $this;
@@ -66,7 +66,7 @@  discard block
 block discarded – undo
66 66
     {
67 67
 
68 68
         foreach ($pagamentosExterno as $item)
69
-            $this->pagamentosExterno[] = SerializerHelper::denormalize($item, PagamentoExterno::class);
69
+            $this->pagamentosExterno[ ] = SerializerHelper::denormalize($item, PagamentoExterno::class);
70 70
 
71 71
         return $this;
72 72
     }
Please login to merge, or discard this patch.
Braces   +6 added lines, -4 removed lines patch added patch discarded remove patch
@@ -44,8 +44,9 @@  discard block
 block discarded – undo
44 44
     {
45 45
         $this->data = \DateTime::createFromFormat('d/m/Y H:i:s.u', $data);
46 46
 
47
-        if(!$this->data)
48
-            $this->data = \DateTime::createFromFormat('d/m/Y H:i:s', $data);
47
+        if(!$this->data) {
48
+                    $this->data = \DateTime::createFromFormat('d/m/Y H:i:s', $data);
49
+        }
49 50
 
50 51
         return $this;
51 52
     }
@@ -65,8 +66,9 @@  discard block
 block discarded – undo
65 66
     public function setPagamentosExterno($pagamentosExterno)
66 67
     {
67 68
 
68
-        foreach ($pagamentosExterno as $item)
69
-            $this->pagamentosExterno[] = SerializerHelper::denormalize($item, PagamentoExterno::class);
69
+        foreach ($pagamentosExterno as $item) {
70
+                    $this->pagamentosExterno[] = SerializerHelper::denormalize($item, PagamentoExterno::class);
71
+        }
70 72
 
71 73
         return $this;
72 74
     }
Please login to merge, or discard this patch.
src/Integracao/ControlPay/Contracts/Terminal/GetByPessoaIdResponse.php 2 patches
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -45,7 +45,7 @@  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)
48
+        if (!$this->data)
49 49
             $this->data = \DateTime::createFromFormat('d/m/Y H:i:s', $data);
50 50
 
51 51
         return $this;
@@ -66,7 +66,7 @@  discard block
 block discarded – undo
66 66
     public function setTerminais($terminais)
67 67
     {
68 68
         foreach ($terminais as $item)
69
-            $this->terminais[] = SerializerHelper::denormalize($item, Terminal::class);
69
+            $this->terminais[ ] = SerializerHelper::denormalize($item, Terminal::class);
70 70
 
71 71
         return $this;
72 72
     }
Please login to merge, or discard this 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
     }
@@ -65,8 +66,9 @@  discard block
 block discarded – undo
65 66
      */
66 67
     public function setTerminais($terminais)
67 68
     {
68
-        foreach ($terminais as $item)
69
-            $this->terminais[] = SerializerHelper::denormalize($item, Terminal::class);
69
+        foreach ($terminais as $item) {
70
+                    $this->terminais[] = SerializerHelper::denormalize($item, Terminal::class);
71
+        }
70 72
 
71 73
         return $this;
72 74
     }
Please login to merge, or discard this patch.
src/Integracao/ControlPay/Contracts/Terminal/InsertResponse.php 2 patches
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -44,7 +44,7 @@  discard block
 block discarded – undo
44 44
     {
45 45
         $this->data = \DateTime::createFromFormat('d/m/Y H:i:s.u', $data);
46 46
 
47
-        if(!$this->data)
47
+        if (!$this->data)
48 48
             $this->data = \DateTime::createFromFormat('d/m/Y H:i:s', $data);
49 49
 
50 50
         return $this;
@@ -66,7 +66,7 @@  discard block
 block discarded – undo
66 66
     {
67 67
         $this->terminal = $terminal;
68 68
 
69
-        if(is_array($this->terminal))
69
+        if (is_array($this->terminal))
70 70
             $this->terminal = SerializerHelper::denormalize($this->terminal, Terminal::class);
71 71
 
72 72
         return $this;
Please login to merge, or discard this patch.
Braces   +6 added lines, -4 removed lines patch added patch discarded remove patch
@@ -44,8 +44,9 @@  discard block
 block discarded – undo
44 44
     {
45 45
         $this->data = \DateTime::createFromFormat('d/m/Y H:i:s.u', $data);
46 46
 
47
-        if(!$this->data)
48
-            $this->data = \DateTime::createFromFormat('d/m/Y H:i:s', $data);
47
+        if(!$this->data) {
48
+                    $this->data = \DateTime::createFromFormat('d/m/Y H:i:s', $data);
49
+        }
49 50
 
50 51
         return $this;
51 52
     }
@@ -66,8 +67,9 @@  discard block
 block discarded – undo
66 67
     {
67 68
         $this->terminal = $terminal;
68 69
 
69
-        if(is_array($this->terminal))
70
-            $this->terminal = SerializerHelper::denormalize($this->terminal, Terminal::class);
70
+        if(is_array($this->terminal)) {
71
+                    $this->terminal = SerializerHelper::denormalize($this->terminal, Terminal::class);
72
+        }
71 73
 
72 74
         return $this;
73 75
     }
Please login to merge, or discard this patch.
Integracao/ControlPay/Contracts/Produto/GetByAtivosByPessoaIdResponse.php 2 patches
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -44,7 +44,7 @@  discard block
 block discarded – undo
44 44
     {
45 45
         $this->data = \DateTime::createFromFormat('d/m/Y H:i:s.u', $data);
46 46
 
47
-        if(!$this->data)
47
+        if (!$this->data)
48 48
             $this->data = \DateTime::createFromFormat('d/m/Y H:i:s', $data);
49 49
 
50 50
         return $this;
@@ -66,7 +66,7 @@  discard block
 block discarded – undo
66 66
     {
67 67
 
68 68
         foreach ($produtos as $item)
69
-            $this->produtos[] = SerializerHelper::denormalize($item, Produto::class);
69
+            $this->produtos[ ] = SerializerHelper::denormalize($item, Produto::class);
70 70
 
71 71
         return $this;
72 72
     }
Please login to merge, or discard this patch.
Braces   +6 added lines, -4 removed lines patch added patch discarded remove patch
@@ -44,8 +44,9 @@  discard block
 block discarded – undo
44 44
     {
45 45
         $this->data = \DateTime::createFromFormat('d/m/Y H:i:s.u', $data);
46 46
 
47
-        if(!$this->data)
48
-            $this->data = \DateTime::createFromFormat('d/m/Y H:i:s', $data);
47
+        if(!$this->data) {
48
+                    $this->data = \DateTime::createFromFormat('d/m/Y H:i:s', $data);
49
+        }
49 50
 
50 51
         return $this;
51 52
     }
@@ -65,8 +66,9 @@  discard block
 block discarded – undo
65 66
     public function setProdutos($produtos)
66 67
     {
67 68
 
68
-        foreach ($produtos as $item)
69
-            $this->produtos[] = SerializerHelper::denormalize($item, Produto::class);
69
+        foreach ($produtos as $item) {
70
+                    $this->produtos[] = SerializerHelper::denormalize($item, Produto::class);
71
+        }
70 72
 
71 73
         return $this;
72 74
     }
Please login to merge, or discard this patch.
src/Integracao/ControlPay/Impl/BasicAuthentication.php 2 patches
Braces   +3 added lines, -2 removed lines patch added patch discarded remove patch
@@ -47,8 +47,9 @@
 block discarded – undo
47 47
     {
48 48
         throw new \Exception("Basic authenticanão não é suportado pela api por enquanto");
49 49
 
50
-        if(!empty($this->key))
51
-            return sprintf("Basic %s", $this->key);
50
+        if(!empty($this->key)) {
51
+                    return sprintf("Basic %s", $this->key);
52
+        }
52 53
 
53 54
         return sprintf("Basic %s", base64_encode(sprintf("%s:%s", $this->user, $this->password)));
54 55
     }
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -52,7 +52,7 @@
 block discarded – undo
52 52
      */
53 53
     public function getAuthorization()
54 54
     {
55
-        if(!empty($this->key))
55
+        if (!empty($this->key))
56 56
             return $this->key;
57 57
 
58 58
         $response = $this->_loginApi->login(
Please login to merge, or discard this patch.
src/Integracao/ControlPay/Impl/KeyQueryStringAuthentication.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -52,7 +52,7 @@
 block discarded – undo
52 52
      */
53 53
     public function getAuthorization()
54 54
     {
55
-        if(!empty($this->key))
55
+        if (!empty($this->key))
56 56
             return $this->key;
57 57
 
58 58
         $response = $this->_loginApi->login(
Please login to merge, or discard this patch.
Braces   +3 added lines, -2 removed lines patch added patch discarded remove patch
@@ -52,8 +52,9 @@
 block discarded – undo
52 52
      */
53 53
     public function getAuthorization()
54 54
     {
55
-        if(!empty($this->key))
56
-            return $this->key;
55
+        if(!empty($this->key)) {
56
+                    return $this->key;
57
+        }
57 58
 
58 59
         $response = $this->_loginApi->login(
59 60
             (new LoginRequest())
Please login to merge, or discard this patch.
src/Integracao/ControlPay/Contracts/Venda/ConsultarVendasResponse.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -62,7 +62,7 @@
 block discarded – undo
62 62
     {
63 63
 
64 64
         foreach ($intencoesVendas as $intencaoVenda)
65
-            $this->intencoesVendas[] = SerializerHelper::denormalize($intencaoVenda, IntencaoVenda::class);
65
+            $this->intencoesVendas[ ] = SerializerHelper::denormalize($intencaoVenda, IntencaoVenda::class);
66 66
 
67 67
         return $this;
68 68
     }
Please login to merge, or discard this 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/Terminal/GetByIdResponse.php 2 patches
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -44,7 +44,7 @@  discard block
 block discarded – undo
44 44
     {
45 45
         $this->data = \DateTime::createFromFormat('d/m/Y H:i:s.u', $data);
46 46
 
47
-        if(!$this->data)
47
+        if (!$this->data)
48 48
             $this->data = \DateTime::createFromFormat('d/m/Y H:i:s', $data);
49 49
 
50 50
         return $this;
@@ -66,7 +66,7 @@  discard block
 block discarded – undo
66 66
     {
67 67
         $this->terminal = $terminal;
68 68
 
69
-        if(is_array($this->terminal))
69
+        if (is_array($this->terminal))
70 70
             $this->terminal = SerializerHelper::denormalize($this->terminal, Terminal::class);
71 71
 
72 72
         return $this;
Please login to merge, or discard this patch.
Braces   +6 added lines, -4 removed lines patch added patch discarded remove patch
@@ -44,8 +44,9 @@  discard block
 block discarded – undo
44 44
     {
45 45
         $this->data = \DateTime::createFromFormat('d/m/Y H:i:s.u', $data);
46 46
 
47
-        if(!$this->data)
48
-            $this->data = \DateTime::createFromFormat('d/m/Y H:i:s', $data);
47
+        if(!$this->data) {
48
+                    $this->data = \DateTime::createFromFormat('d/m/Y H:i:s', $data);
49
+        }
49 50
 
50 51
         return $this;
51 52
     }
@@ -66,8 +67,9 @@  discard block
 block discarded – undo
66 67
     {
67 68
         $this->terminal = $terminal;
68 69
 
69
-        if(is_array($this->terminal))
70
-            $this->terminal = SerializerHelper::denormalize($this->terminal, Terminal::class);
70
+        if(is_array($this->terminal)) {
71
+                    $this->terminal = SerializerHelper::denormalize($this->terminal, Terminal::class);
72
+        }
71 73
 
72 74
         return $this;
73 75
     }
Please login to merge, or discard this patch.
src/Integracao/ControlPay/Contracts/IntencaoVenda/GetByFiltrosResponse.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -62,7 +62,7 @@
 block discarded – undo
62 62
     {
63 63
 
64 64
         foreach ($intencoesVendas as $intencaoVenda)
65
-            $this->intencoesVendas[] = SerializerHelper::denormalize($intencaoVenda, IntencaoVenda::class);
65
+            $this->intencoesVendas[ ] = SerializerHelper::denormalize($intencaoVenda, IntencaoVenda::class);
66 66
 
67 67
         return $this;
68 68
     }
Please login to merge, or discard this 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.