@@ -45,8 +45,9 @@ discard block |
||
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 |
||
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 | } |
@@ -61,8 +61,9 @@ |
||
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 | } |
@@ -61,8 +61,9 @@ |
||
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 | } |