@@ -92,7 +92,7 @@ discard block |
||
92 | 92 | { |
93 | 93 | $this->impressora = $impressora; |
94 | 94 | |
95 | - if(is_array($this->impressora)) |
|
95 | + if (is_array($this->impressora)) |
|
96 | 96 | $this->impressora = SerializerHelper::denormalize($this->impressora, Impressora::class); |
97 | 97 | |
98 | 98 | return $this; |
@@ -114,7 +114,7 @@ discard block |
||
114 | 114 | { |
115 | 115 | $this->pessoa = $pessoa; |
116 | 116 | |
117 | - if(is_array($this->pessoa)) |
|
117 | + if (is_array($this->pessoa)) |
|
118 | 118 | $this->pessoa = SerializerHelper::denormalize($this->pessoa, Pessoa::class); |
119 | 119 | |
120 | 120 | 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 | $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; |
@@ -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 | } |
@@ -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 | } |
@@ -55,7 +55,7 @@ discard block |
||
55 | 55 | $this->endpoint = $endpoint; |
56 | 56 | $this->_client = $client; |
57 | 57 | |
58 | - if(is_null($this->_client)) |
|
58 | + if (is_null($this->_client)) |
|
59 | 59 | $this->_client = new Client(); |
60 | 60 | |
61 | 61 | $this->query = new GuzzleHttp\Query(); |
@@ -67,7 +67,7 @@ discard block |
||
67 | 67 | $this->query->set('key', $this->_client->getAuthentication()); |
68 | 68 | break; |
69 | 69 | case BasicAuthentication::class: |
70 | - $this->headers['Authorization'] = $this->_client->getAuthentication(); |
|
70 | + $this->headers[ 'Authorization' ] = $this->_client->getAuthentication(); |
|
71 | 71 | break; |
72 | 72 | default: |
73 | 73 | $this->query->set('key', $this->_client->getAuthentication()); |
@@ -98,8 +98,8 @@ discard block |
||
98 | 98 | { |
99 | 99 | $this->query = new GuzzleHttp\Query(); |
100 | 100 | |
101 | - if(isset($this->_httpClient->getDefaultOption()['query'])) |
|
102 | - $this->query = $this->_httpClient->getDefaultOption()['query']; |
|
101 | + if (isset($this->_httpClient->getDefaultOption()[ 'query' ])) |
|
102 | + $this->query = $this->_httpClient->getDefaultOption()[ 'query' ]; |
|
103 | 103 | |
104 | 104 | foreach ($params as $key => $value) |
105 | 105 | $this->query->set($key, $value); |
@@ -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( |
@@ -92,7 +92,7 @@ discard block |
||
92 | 92 | { |
93 | 93 | $this->impressora = $impressora; |
94 | 94 | |
95 | - if(is_array($this->impressora)) |
|
95 | + if (is_array($this->impressora)) |
|
96 | 96 | $this->impressora = SerializerHelper::denormalize($this->impressora, Impressora::class); |
97 | 97 | |
98 | 98 | return $this; |
@@ -114,7 +114,7 @@ discard block |
||
114 | 114 | { |
115 | 115 | $this->pessoa = $pessoa; |
116 | 116 | |
117 | - if(is_array($this->pessoa)) |
|
117 | + if (is_array($this->pessoa)) |
|
118 | 118 | $this->pessoa = SerializerHelper::denormalize($this->pessoa, Pessoa::class); |
119 | 119 | |
120 | 120 | 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 | $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; |