@@ -221,7 +221,7 @@ |
||
| 221 | 221 | { |
| 222 | 222 | $this->produtoStatus = $produtoStatus; |
| 223 | 223 | |
| 224 | - if(is_array($this->produtoStatus)) |
|
| 224 | + if (is_array($this->produtoStatus)) |
|
| 225 | 225 | $this->produtoStatus = SerializerHelper::denormalize($this->produtoStatus, ProdutoStatus::class); |
| 226 | 226 | |
| 227 | 227 | return $this; |
@@ -221,8 +221,9 @@ |
||
| 221 | 221 | { |
| 222 | 222 | $this->produtoStatus = $produtoStatus; |
| 223 | 223 | |
| 224 | - if(is_array($this->produtoStatus)) |
|
| 225 | - $this->produtoStatus = SerializerHelper::denormalize($this->produtoStatus, ProdutoStatus::class); |
|
| 224 | + if(is_array($this->produtoStatus)) { |
|
| 225 | + $this->produtoStatus = SerializerHelper::denormalize($this->produtoStatus, ProdutoStatus::class); |
|
| 226 | + } |
|
| 226 | 227 | |
| 227 | 228 | return $this; |
| 228 | 229 | } |
@@ -75,7 +75,7 @@ discard block |
||
| 75 | 75 | { |
| 76 | 76 | $this->pessoa = $pessoa; |
| 77 | 77 | |
| 78 | - if(is_array($this->pessoa)) |
|
| 78 | + if (is_array($this->pessoa)) |
|
| 79 | 79 | $this->pessoa = SerializerHelper::denormalize($pessoa, Pessoa::class); |
| 80 | 80 | |
| 81 | 81 | return $this; |
@@ -134,7 +134,7 @@ discard block |
||
| 134 | 134 | |
| 135 | 135 | foreach ($contaRecebimentoLancamentos as $contaRecebimentoLancamento) |
| 136 | 136 | { |
| 137 | - $this->contaRecebimentoLancamentos[] = SerializerHelper::denormalize( |
|
| 137 | + $this->contaRecebimentoLancamentos[ ] = SerializerHelper::denormalize( |
|
| 138 | 138 | $contaRecebimentoLancamento, ContaRecebimentoLancamento::class); |
| 139 | 139 | } |
| 140 | 140 | |
@@ -75,8 +75,9 @@ |
||
| 75 | 75 | { |
| 76 | 76 | $this->pessoa = $pessoa; |
| 77 | 77 | |
| 78 | - if(is_array($this->pessoa)) |
|
| 79 | - $this->pessoa = SerializerHelper::denormalize($pessoa, Pessoa::class); |
|
| 78 | + if(is_array($this->pessoa)) { |
|
| 79 | + $this->pessoa = SerializerHelper::denormalize($pessoa, Pessoa::class); |
|
| 80 | + } |
|
| 80 | 81 | |
| 81 | 82 | return $this; |
| 82 | 83 | } |
@@ -579,7 +579,7 @@ |
||
| 579 | 579 | public function setDataLogin($dataLogin) |
| 580 | 580 | { |
| 581 | 581 | $this->dataLogin = \DateTime::createFromFormat('d/m/Y H:i:s.u', $dataLogin); |
| 582 | - return $this; |
|
| 582 | + return $this; |
|
| 583 | 583 | } |
| 584 | 584 | |
| 585 | 585 | /** |
@@ -252,7 +252,7 @@ |
||
| 252 | 252 | { |
| 253 | 253 | $this->pessoaStatus = $pessoaStatus; |
| 254 | 254 | |
| 255 | - if(is_array($this->pessoaStatus)) |
|
| 255 | + if (is_array($this->pessoaStatus)) |
|
| 256 | 256 | $this->pessoaStatus = SerializerHelper::denormalize($this->pessoaStatus, PessoaStatus::class); |
| 257 | 257 | |
| 258 | 258 | return $this; |
@@ -252,8 +252,9 @@ |
||
| 252 | 252 | { |
| 253 | 253 | $this->pessoaStatus = $pessoaStatus; |
| 254 | 254 | |
| 255 | - if(is_array($this->pessoaStatus)) |
|
| 256 | - $this->pessoaStatus = SerializerHelper::denormalize($this->pessoaStatus, PessoaStatus::class); |
|
| 255 | + if(is_array($this->pessoaStatus)) { |
|
| 256 | + $this->pessoaStatus = SerializerHelper::denormalize($this->pessoaStatus, PessoaStatus::class); |
|
| 257 | + } |
|
| 257 | 258 | |
| 258 | 259 | return $this; |
| 259 | 260 | } |
@@ -105,7 +105,7 @@ discard block |
||
| 105 | 105 | { |
| 106 | 106 | $this->contaRecebimento = $contaRecebimento; |
| 107 | 107 | |
| 108 | - if(is_array($this->contaRecebimento)) |
|
| 108 | + if (is_array($this->contaRecebimento)) |
|
| 109 | 109 | $this->contaRecebimento = SerializerHelper::denormalize($this->contaRecebimento, ContaRecebimento::class); |
| 110 | 110 | |
| 111 | 111 | return $this; |
@@ -127,7 +127,7 @@ discard block |
||
| 127 | 127 | { |
| 128 | 128 | $this->contaPayLancamento = $contaPayLancamento; |
| 129 | 129 | |
| 130 | - if(is_array($this->contaPayLancamento)) |
|
| 130 | + if (is_array($this->contaPayLancamento)) |
|
| 131 | 131 | $this->contaPayLancamento = SerializerHelper::denormalize($this->contaPayLancamento, ContaPayLancamento::class); |
| 132 | 132 | |
| 133 | 133 | return $this; |
@@ -149,7 +149,7 @@ discard block |
||
| 149 | 149 | { |
| 150 | 150 | $this->pagamento = $pagamento; |
| 151 | 151 | |
| 152 | - if(is_array($this->pagamento)) |
|
| 152 | + if (is_array($this->pagamento)) |
|
| 153 | 153 | $this->pagamento = SerializerHelper::denormalize($this->pagamento, Pagamento::class); |
| 154 | 154 | |
| 155 | 155 | return $this; |
@@ -171,7 +171,7 @@ discard block |
||
| 171 | 171 | { |
| 172 | 172 | $this->lancamentoTipo = $lancamentoTipo; |
| 173 | 173 | |
| 174 | - if(is_array($this->lancamentoTipo)) |
|
| 174 | + if (is_array($this->lancamentoTipo)) |
|
| 175 | 175 | $this->lancamentoTipo = SerializerHelper::denormalize($this->lancamentoTipo, LancamentoTipo::class); |
| 176 | 176 | |
| 177 | 177 | return $this; |
@@ -283,7 +283,7 @@ discard block |
||
| 283 | 283 | { |
| 284 | 284 | $this->intencaoVenda = $intencaoVenda; |
| 285 | 285 | |
| 286 | - if(is_array($this->intencaoVenda)) |
|
| 286 | + if (is_array($this->intencaoVenda)) |
|
| 287 | 287 | $this->intencaoVenda = SerializerHelper::denormalize($this->intencaoVenda, IntencaoVenda::class); |
| 288 | 288 | |
| 289 | 289 | return $this; |
@@ -105,8 +105,9 @@ discard block |
||
| 105 | 105 | { |
| 106 | 106 | $this->contaRecebimento = $contaRecebimento; |
| 107 | 107 | |
| 108 | - if(is_array($this->contaRecebimento)) |
|
| 109 | - $this->contaRecebimento = SerializerHelper::denormalize($this->contaRecebimento, ContaRecebimento::class); |
|
| 108 | + if(is_array($this->contaRecebimento)) { |
|
| 109 | + $this->contaRecebimento = SerializerHelper::denormalize($this->contaRecebimento, ContaRecebimento::class); |
|
| 110 | + } |
|
| 110 | 111 | |
| 111 | 112 | return $this; |
| 112 | 113 | } |
@@ -127,8 +128,9 @@ discard block |
||
| 127 | 128 | { |
| 128 | 129 | $this->contaPayLancamento = $contaPayLancamento; |
| 129 | 130 | |
| 130 | - if(is_array($this->contaPayLancamento)) |
|
| 131 | - $this->contaPayLancamento = SerializerHelper::denormalize($this->contaPayLancamento, ContaPayLancamento::class); |
|
| 131 | + if(is_array($this->contaPayLancamento)) { |
|
| 132 | + $this->contaPayLancamento = SerializerHelper::denormalize($this->contaPayLancamento, ContaPayLancamento::class); |
|
| 133 | + } |
|
| 132 | 134 | |
| 133 | 135 | return $this; |
| 134 | 136 | } |
@@ -149,8 +151,9 @@ discard block |
||
| 149 | 151 | { |
| 150 | 152 | $this->pagamento = $pagamento; |
| 151 | 153 | |
| 152 | - if(is_array($this->pagamento)) |
|
| 153 | - $this->pagamento = SerializerHelper::denormalize($this->pagamento, Pagamento::class); |
|
| 154 | + if(is_array($this->pagamento)) { |
|
| 155 | + $this->pagamento = SerializerHelper::denormalize($this->pagamento, Pagamento::class); |
|
| 156 | + } |
|
| 154 | 157 | |
| 155 | 158 | return $this; |
| 156 | 159 | } |
@@ -171,8 +174,9 @@ discard block |
||
| 171 | 174 | { |
| 172 | 175 | $this->lancamentoTipo = $lancamentoTipo; |
| 173 | 176 | |
| 174 | - if(is_array($this->lancamentoTipo)) |
|
| 175 | - $this->lancamentoTipo = SerializerHelper::denormalize($this->lancamentoTipo, LancamentoTipo::class); |
|
| 177 | + if(is_array($this->lancamentoTipo)) { |
|
| 178 | + $this->lancamentoTipo = SerializerHelper::denormalize($this->lancamentoTipo, LancamentoTipo::class); |
|
| 179 | + } |
|
| 176 | 180 | |
| 177 | 181 | return $this; |
| 178 | 182 | } |
@@ -283,8 +287,9 @@ discard block |
||
| 283 | 287 | { |
| 284 | 288 | $this->intencaoVenda = $intencaoVenda; |
| 285 | 289 | |
| 286 | - if(is_array($this->intencaoVenda)) |
|
| 287 | - $this->intencaoVenda = SerializerHelper::denormalize($this->intencaoVenda, IntencaoVenda::class); |
|
| 290 | + if(is_array($this->intencaoVenda)) { |
|
| 291 | + $this->intencaoVenda = SerializerHelper::denormalize($this->intencaoVenda, IntencaoVenda::class); |
|
| 292 | + } |
|
| 288 | 293 | |
| 289 | 294 | return $this; |
| 290 | 295 | } |
@@ -28,16 +28,16 @@ discard block |
||
| 28 | 28 | */ |
| 29 | 29 | private static function getInstance() |
| 30 | 30 | { |
| 31 | - if(empty(self::$instance['jms.serializer'])) |
|
| 31 | + if (empty(self::$instance[ 'jms.serializer' ])) |
|
| 32 | 32 | { |
| 33 | - self::$instance['jms.serializer'] = SerializerBuilder::create() |
|
| 33 | + self::$instance[ 'jms.serializer' ] = SerializerBuilder::create() |
|
| 34 | 34 | ->setPropertyNamingStrategy(new SerializedNameAnnotationStrategy(new IdenticalPropertyNamingStrategy())) |
| 35 | 35 | ->build(); |
| 36 | 36 | } |
| 37 | 37 | |
| 38 | - if(empty(self::$instance['symfony.serializer'])) |
|
| 38 | + if (empty(self::$instance[ 'symfony.serializer' ])) |
|
| 39 | 39 | { |
| 40 | - self::$instance['symfony.serializer'] = new Serializer([new ObjectNormalizer()], |
|
| 40 | + self::$instance[ 'symfony.serializer' ] = new Serializer([ new ObjectNormalizer() ], |
|
| 41 | 41 | [ |
| 42 | 42 | 'xml' => new XmlEncoder(), |
| 43 | 43 | 'json' => new JsonEncoder() |
@@ -57,7 +57,7 @@ discard block |
||
| 57 | 57 | */ |
| 58 | 58 | public static function deserialize($data, $class, $format = 'json') |
| 59 | 59 | { |
| 60 | - return self::getInstance()['symfony.serializer']->deserialize($data, $class, $format); |
|
| 60 | + return self::getInstance()[ 'symfony.serializer' ]->deserialize($data, $class, $format); |
|
| 61 | 61 | } |
| 62 | 62 | |
| 63 | 63 | /** |
@@ -69,7 +69,7 @@ discard block |
||
| 69 | 69 | */ |
| 70 | 70 | public static function denormalize($data, $class) |
| 71 | 71 | { |
| 72 | - return self::getInstance()['symfony.serializer']->denormalize($data, $class); |
|
| 72 | + return self::getInstance()[ 'symfony.serializer' ]->denormalize($data, $class); |
|
| 73 | 73 | } |
| 74 | 74 | |
| 75 | 75 | /** |
@@ -79,7 +79,7 @@ discard block |
||
| 79 | 79 | */ |
| 80 | 80 | public static function serialize($data, $format = 'json') |
| 81 | 81 | { |
| 82 | - return self::getInstance()['jms.serializer']->serialize($data, $format); |
|
| 82 | + return self::getInstance()[ 'jms.serializer' ]->serialize($data, $format); |
|
| 83 | 83 | } |
| 84 | 84 | |
| 85 | 85 | /** |
@@ -88,7 +88,7 @@ discard block |
||
| 88 | 88 | */ |
| 89 | 89 | public static function toArray($object) |
| 90 | 90 | { |
| 91 | - return self::getInstance()['jms.serializer']->toArray($object); |
|
| 91 | + return self::getInstance()[ 'jms.serializer' ]->toArray($object); |
|
| 92 | 92 | } |
| 93 | 93 | |
| 94 | 94 | } |
| 95 | 95 | \ No newline at end of file |
@@ -84,7 +84,7 @@ discard block |
||
| 84 | 84 | { |
| 85 | 85 | $this->pessoa = $pessoa; |
| 86 | 86 | |
| 87 | - if(is_array($pessoa)) |
|
| 87 | + if (is_array($pessoa)) |
|
| 88 | 88 | $this->pessoa = SerializerHelper::denormalize($this->pessoa, Pessoa::class); |
| 89 | 89 | |
| 90 | 90 | return $this; |
@@ -106,7 +106,7 @@ discard block |
||
| 106 | 106 | { |
| 107 | 107 | $this->operador = $operador; |
| 108 | 108 | |
| 109 | - if(is_array($this->operador)) |
|
| 109 | + if (is_array($this->operador)) |
|
| 110 | 110 | $this->operador = SerializerHelper::denormalize($this->operador, Operador::class); |
| 111 | 111 | |
| 112 | 112 | return $this; |
@@ -128,7 +128,7 @@ discard block |
||
| 128 | 128 | { |
| 129 | 129 | $this->android = $android; |
| 130 | 130 | |
| 131 | - if(is_array($this->android)) |
|
| 131 | + if (is_array($this->android)) |
|
| 132 | 132 | $this->android = SerializerHelper::denormalize($this->android, Device::class); |
| 133 | 133 | |
| 134 | 134 | return $this; |
@@ -150,7 +150,7 @@ discard block |
||
| 150 | 150 | { |
| 151 | 151 | $this->ios = $ios; |
| 152 | 152 | |
| 153 | - if(is_array($this->ios)) |
|
| 153 | + if (is_array($this->ios)) |
|
| 154 | 154 | $this->ios = SerializerHelper::denormalize($this->ios, Device::class); |
| 155 | 155 | |
| 156 | 156 | return $this; |
@@ -84,8 +84,9 @@ discard block |
||
| 84 | 84 | { |
| 85 | 85 | $this->pessoa = $pessoa; |
| 86 | 86 | |
| 87 | - if(is_array($pessoa)) |
|
| 88 | - $this->pessoa = SerializerHelper::denormalize($this->pessoa, Pessoa::class); |
|
| 87 | + if(is_array($pessoa)) { |
|
| 88 | + $this->pessoa = SerializerHelper::denormalize($this->pessoa, Pessoa::class); |
|
| 89 | + } |
|
| 89 | 90 | |
| 90 | 91 | return $this; |
| 91 | 92 | } |
@@ -106,8 +107,9 @@ discard block |
||
| 106 | 107 | { |
| 107 | 108 | $this->operador = $operador; |
| 108 | 109 | |
| 109 | - if(is_array($this->operador)) |
|
| 110 | - $this->operador = SerializerHelper::denormalize($this->operador, Operador::class); |
|
| 110 | + if(is_array($this->operador)) { |
|
| 111 | + $this->operador = SerializerHelper::denormalize($this->operador, Operador::class); |
|
| 112 | + } |
|
| 111 | 113 | |
| 112 | 114 | return $this; |
| 113 | 115 | } |
@@ -128,8 +130,9 @@ discard block |
||
| 128 | 130 | { |
| 129 | 131 | $this->android = $android; |
| 130 | 132 | |
| 131 | - if(is_array($this->android)) |
|
| 132 | - $this->android = SerializerHelper::denormalize($this->android, Device::class); |
|
| 133 | + if(is_array($this->android)) { |
|
| 134 | + $this->android = SerializerHelper::denormalize($this->android, Device::class); |
|
| 135 | + } |
|
| 133 | 136 | |
| 134 | 137 | return $this; |
| 135 | 138 | } |
@@ -150,8 +153,9 @@ discard block |
||
| 150 | 153 | { |
| 151 | 154 | $this->ios = $ios; |
| 152 | 155 | |
| 153 | - if(is_array($this->ios)) |
|
| 154 | - $this->ios = SerializerHelper::denormalize($this->ios, Device::class); |
|
| 156 | + if(is_array($this->ios)) { |
|
| 157 | + $this->ios = SerializerHelper::denormalize($this->ios, Device::class); |
|
| 158 | + } |
|
| 155 | 159 | |
| 156 | 160 | return $this; |
| 157 | 161 | } |
@@ -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,8 +62,9 @@ |
||
| 62 | 62 | { |
| 63 | 63 | $this->intencaoVenda = $intencaoVenda; |
| 64 | 64 | |
| 65 | - if(is_array($this->intencaoVenda)) |
|
| 66 | - $this->intencaoVenda = SerializerHelper::denormalize($this->intencaoVenda, IntencaoVenda::class); |
|
| 65 | + if(is_array($this->intencaoVenda)) { |
|
| 66 | + $this->intencaoVenda = SerializerHelper::denormalize($this->intencaoVenda, IntencaoVenda::class); |
|
| 67 | + } |
|
| 67 | 68 | |
| 68 | 69 | return $this; |
| 69 | 70 | } |
@@ -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 | } |
@@ -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 | } |
@@ -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 | } |
@@ -44,8 +44,9 @@ discard block |
||
| 44 | 44 | { |
| 45 | 45 | $this->data = \DateTime::createFromFormat('d/m/Y H:i:s.u', $data); |
| 46 | 46 | |
| 47 | - if(!$this->data) |
|
| 48 | - $this->data = \DateTime::createFromFormat('d/m/Y H:i:s', $data); |
|
| 47 | + if(!$this->data) { |
|
| 48 | + $this->data = \DateTime::createFromFormat('d/m/Y H:i:s', $data); |
|
| 49 | + } |
|
| 49 | 50 | |
| 50 | 51 | return $this; |
| 51 | 52 | } |
@@ -65,8 +66,9 @@ discard block |
||
| 65 | 66 | public function setPagamentosExterno($pagamentosExterno) |
| 66 | 67 | { |
| 67 | 68 | |
| 68 | - foreach ($pagamentosExterno as $item) |
|
| 69 | - $this->pagamentosExterno[] = SerializerHelper::denormalize($item, PagamentoExterno::class); |
|
| 69 | + foreach ($pagamentosExterno as $item) { |
|
| 70 | + $this->pagamentosExterno[] = SerializerHelper::denormalize($item, PagamentoExterno::class); |
|
| 71 | + } |
|
| 70 | 72 | |
| 71 | 73 | return $this; |
| 72 | 74 | } |