@@ -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 | $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; |
@@ -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 | } |
@@ -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 | } |
@@ -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( |
@@ -337,7 +337,7 @@ |
||
337 | 337 | { |
338 | 338 | |
339 | 339 | foreach ($produtosVendidos as $produto) |
340 | - $this->produtosVendidos[] = is_array($produto) ? SerializerHelper::denormalize($produto, Produto::class) : $produto; |
|
340 | + $this->produtosVendidos[ ] = is_array($produto) ? SerializerHelper::denormalize($produto, Produto::class) : $produto; |
|
341 | 341 | |
342 | 342 | return $this; |
343 | 343 | } |
@@ -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; |
@@ -204,7 +204,7 @@ discard block |
||
204 | 204 | public function setProdutos($produtos) |
205 | 205 | { |
206 | 206 | foreach ($produtos as $produto) |
207 | - $this->produtos[] = SerializerHelper::denormalize($produto, Produto::class); |
|
207 | + $this->produtos[ ] = SerializerHelper::denormalize($produto, Produto::class); |
|
208 | 208 | |
209 | 209 | return $this; |
210 | 210 | } |
@@ -441,7 +441,7 @@ discard block |
||
441 | 441 | { |
442 | 442 | $this->pedidoStatus = $pedidoStatus; |
443 | 443 | |
444 | - if(is_array($this->pedidoStatus)) |
|
444 | + if (is_array($this->pedidoStatus)) |
|
445 | 445 | $this->pedidoStatus = SerializerHelper::denormalize($this->pedidoStatus, PedidoStatus::class); |
446 | 446 | |
447 | 447 | return $this; |
@@ -155,7 +155,7 @@ |
||
155 | 155 | return [ |
156 | 156 | 'status' => $this->status, |
157 | 157 | 'dataInicio' => empty($this->dataInicio) ? null : $this->dataInicio->format('d/m/Y H:i:s'), |
158 | - 'dataFim' => empty($this->dataFim) ? null :$this->dataFim->format('d/m/Y H:i:s'), |
|
158 | + 'dataFim' => empty($this->dataFim) ? null : $this->dataFim->format('d/m/Y H:i:s'), |
|
159 | 159 | 'tipo' => $this->tipo, |
160 | 160 | 'valorComDivergencia' => $this->valorComDivergencia, |
161 | 161 | 'referencia' => $this->referencia |
@@ -63,7 +63,7 @@ |
||
63 | 63 | { |
64 | 64 | $this->pedido = $pedido; |
65 | 65 | |
66 | - if(is_array($this->pedido)) |
|
66 | + if (is_array($this->pedido)) |
|
67 | 67 | $this->pedido = SerializerHelper::denormalize($this->pedido, Pedido::class); |
68 | 68 | |
69 | 69 | return $this; |