Completed
Push — master ( 0a6175...a4cd9f )
by Adriano
05:55
created
src/Integracao/ControlPay/Model/IntencaoVenda.php 1 patch
Spacing   +19 added lines, -19 removed lines patch added patch discarded remove patch
@@ -220,7 +220,7 @@  discard block
 block discarded – undo
220 220
     {
221 221
         $this->pessoaVendedor = $pessoaVendedor;
222 222
 
223
-        if(is_array($this->pessoaVendedor))
223
+        if (is_array($this->pessoaVendedor))
224 224
             $this->pessoaVendedor = SerializerHelper::denormalize($this->pessoaVendedor, Pessoa::class);
225 225
 
226 226
         return $this;
@@ -242,7 +242,7 @@  discard block
 block discarded – undo
242 242
     {
243 243
         $this->pessoaCliente = $pessoaCliente;
244 244
 
245
-        if(is_array($this->pessoaCliente))
245
+        if (is_array($this->pessoaCliente))
246 246
             $this->pessoaCliente = SerializerHelper::denormalize($this->pessoaCliente, Pessoa::class);
247 247
 
248 248
         return $this;
@@ -264,7 +264,7 @@  discard block
 block discarded – undo
264 264
     {
265 265
         $this->formaPagamento = $formaPagamento;
266 266
 
267
-        if(is_array($this->formaPagamento))
267
+        if (is_array($this->formaPagamento))
268 268
             $this->formaPagamento = SerializerHelper::denormalize($this->formaPagamento, FormaPagamento::class);
269 269
 
270 270
         return $this;
@@ -286,7 +286,7 @@  discard block
 block discarded – undo
286 286
     {
287 287
         $this->terminal = $terminal;
288 288
 
289
-        if(is_array($this->terminal))
289
+        if (is_array($this->terminal))
290 290
             $this->terminal = SerializerHelper::denormalize($this->terminal, Terminal::class);
291 291
 
292 292
         return $this;
@@ -308,7 +308,7 @@  discard block
 block discarded – undo
308 308
     {
309 309
         $this->pedido = $pedido;
310 310
 
311
-        if(is_array($this->pedido))
311
+        if (is_array($this->pedido))
312 312
             $this->pedido = SerializerHelper::denormalize($this->pedido, Pedido::class);
313 313
 
314 314
         return $this;
@@ -330,7 +330,7 @@  discard block
 block discarded – undo
330 330
     {
331 331
         $this->operador = $operador;
332 332
 
333
-        if(is_array($this->operador))
333
+        if (is_array($this->operador))
334 334
             $this->operador = SerializerHelper::denormalize($this->operador, Operador::class);
335 335
 
336 336
         return $this;
@@ -352,7 +352,7 @@  discard block
 block discarded – undo
352 352
     {
353 353
         $this->contaRecebimentoLancamento = $contaRecebimentoLancamento;
354 354
 
355
-        if(is_array($this->contaRecebimentoLancamento))
355
+        if (is_array($this->contaRecebimentoLancamento))
356 356
             $this->contaRecebimentoLancamento = SerializerHelper::denormalize($this->contaRecebimentoLancamento, ContaRecebimentoLancamento::class);
357 357
 
358 358
         return $this;
@@ -374,7 +374,7 @@  discard block
 block discarded – undo
374 374
     {
375 375
         $this->pagamentoRecorrenteLancamento = $pagamentoRecorrenteLancamento;
376 376
 
377
-        if(is_array($this->pagamentoRecorrenteLancamento))
377
+        if (is_array($this->pagamentoRecorrenteLancamento))
378 378
             $this->pagamentoRecorrenteLancamento = SerializerHelper::denormalize($this->pagamentoRecorrenteLancamento, PagamentoRecorrenteLancamento::class);
379 379
 
380 380
         return $this;
@@ -396,7 +396,7 @@  discard block
 block discarded – undo
396 396
     {
397 397
         $this->intencaoVendaStatus = $intencaoVendaStatus;
398 398
 
399
-        if(is_array($this->intencaoVendaStatus))
399
+        if (is_array($this->intencaoVendaStatus))
400 400
             $this->intencaoVendaStatus = SerializerHelper::denormalize($this->intencaoVendaStatus, IntencaoVendaStatus::class);
401 401
 
402 402
         return $this;
@@ -454,7 +454,7 @@  discard block
 block discarded – undo
454 454
     {
455 455
         $this->data = \DateTime::createFromFormat('d/m/Y H:i:s.u', $data);
456 456
 
457
-        if(!$this->data)
457
+        if (!$this->data)
458 458
             $this->data = \DateTime::createFromFormat('d/m/Y H:i:s', $data);
459 459
 
460 460
         return $this;
@@ -638,9 +638,9 @@  discard block
 block discarded – undo
638 638
     {
639 639
         //$this->itemProdutos = $itemProdutos;
640 640
 
641
-        if(is_array($itemProdutos))
641
+        if (is_array($itemProdutos))
642 642
             foreach ($itemProdutos as $itemProduto) {
643
-                $this->itemProdutos[] = SerializerHelper::denormalize(
643
+                $this->itemProdutos[ ] = SerializerHelper::denormalize(
644 644
                     $itemProduto, ItemProduto::class);
645 645
             }
646 646
 
@@ -661,9 +661,9 @@  discard block
 block discarded – undo
661 661
      */
662 662
     public function setPagamentosExterno($pagamentosExterno)
663 663
     {
664
-        if(is_array($pagamentosExterno))
664
+        if (is_array($pagamentosExterno))
665 665
             foreach ($pagamentosExterno as $pagamentoExterno) {
666
-                $this->pagamentosExterno[] = SerializerHelper::denormalize(
666
+                $this->pagamentosExterno[ ] = SerializerHelper::denormalize(
667 667
                     $pagamentoExterno, PagamentoExterno::class);
668 668
             }
669 669
 
@@ -685,9 +685,9 @@  discard block
 block discarded – undo
685 685
     public function setProdutos($produtos)
686 686
     {
687 687
 
688
-        if(is_array($produtos))
688
+        if (is_array($produtos))
689 689
             foreach ($produtos as $produto) {
690
-                $this->produtos[] = SerializerHelper::denormalize(
690
+                $this->produtos[ ] = SerializerHelper::denormalize(
691 691
                     $produto, ItemProduto::class);
692 692
             }
693 693
 
@@ -818,7 +818,7 @@  discard block
 block discarded – undo
818 818
     {
819 819
         $this->vendedor = $vendedor;
820 820
 
821
-        if(is_array($this->vendedor))
821
+        if (is_array($this->vendedor))
822 822
             $this->vendedor = SerializerHelper::denormalize($this->pessoaVendedor, Pessoa::class);
823 823
 
824 824
         return $this;
@@ -856,9 +856,9 @@  discard block
 block discarded – undo
856 856
      */
857 857
     public function setPagamentosExternos($pagamentosExternos)
858 858
     {
859
-        if(is_array($pagamentosExternos))
859
+        if (is_array($pagamentosExternos))
860 860
             foreach ($pagamentosExternos as $pagamentoExterno) {
861
-                $this->pagamentosExternos[] = SerializerHelper::denormalize(
861
+                $this->pagamentosExternos[ ] = SerializerHelper::denormalize(
862 862
                     $pagamentoExterno, PagamentoExterno::class);
863 863
             }
864 864
 
Please login to merge, or discard this patch.
src/Integracao/ControlPay/API/ProdutoApi.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -30,8 +30,8 @@  discard block
 block discarded – undo
30 30
      */
31 31
     public function getByFiltros(Contracts\PagamentoExterno\GetByFiltrosRequest $getByFiltrosRequest)
32 32
     {
33
-        try{
34
-            $this->response = $this->_httpClient->post(__FUNCTION__,[
33
+        try {
34
+            $this->response = $this->_httpClient->post(__FUNCTION__, [
35 35
                 'body' => json_encode($getByFiltrosRequest),
36 36
             ]);
37 37
 
@@ -41,7 +41,7 @@  discard block
 block discarded – undo
41 41
             );
42 42
         }catch (RequestException $ex) {
43 43
             $this->requestException($ex);
44
-        }catch (\Exception $ex){
44
+        }catch (\Exception $ex) {
45 45
             throw new \Exception($ex->getMessage(), $ex->getCode(), $ex);
46 46
         }
47 47
     }
Please login to merge, or discard this patch.