@@ -68,7 +68,7 @@ discard block |
||
68 | 68 | { |
69 | 69 | $this->pessoa = $pessoa; |
70 | 70 | |
71 | - if(is_array($pessoa)) |
|
71 | + if (is_array($pessoa)) |
|
72 | 72 | $this->pessoa = SerializerHelper::denormalize($this->pessoa, Pessoa::class); |
73 | 73 | |
74 | 74 | return $this; |
@@ -90,7 +90,7 @@ discard block |
||
90 | 90 | { |
91 | 91 | $this->operador = $operador; |
92 | 92 | |
93 | - if(is_array($this->operador)) |
|
93 | + if (is_array($this->operador)) |
|
94 | 94 | $this->operador = SerializerHelper::denormalize($this->operador, Operador::class); |
95 | 95 | |
96 | 96 | return $this; |
@@ -62,7 +62,7 @@ |
||
62 | 62 | { |
63 | 63 | $this->intencaoVenda = $intencaoVenda; |
64 | 64 | |
65 | - if(is_array($this->intencaoVenda)) |
|
65 | + if (is_array($this->intencaoVenda)) |
|
66 | 66 | $this->intencaoVenda = SerializerHelper::denormalize($this->intencaoVenda, IntencaoVenda::class); |
67 | 67 | |
68 | 68 | return $this; |
@@ -62,7 +62,7 @@ |
||
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 | } |
@@ -44,7 +44,7 @@ discard block |
||
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 |
||
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 | } |
@@ -45,7 +45,7 @@ discard block |
||
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 |
||
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 | } |
@@ -45,7 +45,7 @@ discard block |
||
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; |
@@ -67,7 +67,7 @@ discard block |
||
67 | 67 | { |
68 | 68 | $this->terminal = $terminal; |
69 | 69 | |
70 | - if(is_array($this->terminal)) |
|
70 | + if (is_array($this->terminal)) |
|
71 | 71 | $this->terminal = SerializerHelper::denormalize($this->terminal, Terminal::class); |
72 | 72 | |
73 | 73 | return $this; |
@@ -44,7 +44,7 @@ discard block |
||
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 |
||
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 | } |
@@ -47,7 +47,7 @@ |
||
47 | 47 | { |
48 | 48 | throw new \Exception("Basic authenticanão não é suportado pela api por enquanto"); |
49 | 49 | |
50 | - if(!empty($this->key)) |
|
50 | + if (!empty($this->key)) |
|
51 | 51 | return sprintf("Basic %s", $this->key); |
52 | 52 | |
53 | 53 | return sprintf("Basic %s", base64_encode(sprintf("%s:%s", $this->user, $this->password))); |
@@ -52,7 +52,7 @@ |
||
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( |