@@ -84,7 +84,7 @@ discard block |
||
84 | 84 | */ |
85 | 85 | public function __toString() |
86 | 86 | { |
87 | - return (string)$this->json; |
|
87 | + return (string) $this->json; |
|
88 | 88 | } |
89 | 89 | |
90 | 90 | /** |
@@ -96,7 +96,7 @@ discard block |
||
96 | 96 | $resp = simplexml_load_string($xml, null, LIBXML_NOCDATA); |
97 | 97 | $aWS = []; |
98 | 98 | foreach ($resp->children() as $element) { |
99 | - $sigla = (string)$element->sigla; |
|
99 | + $sigla = (string) $element->sigla; |
|
100 | 100 | $aWS[$sigla] = []; |
101 | 101 | if (isset($element->homologacao)) { |
102 | 102 | $aWS[$sigla] += $this->extract($element->homologacao, 'homologacao'); |
@@ -119,11 +119,11 @@ discard block |
||
119 | 119 | { |
120 | 120 | $amb[$environment] = []; |
121 | 121 | foreach ($node->children() as $children) { |
122 | - $name = (string)$children->getName(); |
|
123 | - $method = (string)$children['method']; |
|
124 | - $operation = (string)$children['operation']; |
|
125 | - $version = (string)$children['version']; |
|
126 | - $url = (string)$children[0]; |
|
122 | + $name = (string) $children->getName(); |
|
123 | + $method = (string) $children['method']; |
|
124 | + $operation = (string) $children['operation']; |
|
125 | + $version = (string) $children['version']; |
|
126 | + $url = (string) $children[0]; |
|
127 | 127 | $operations = [ |
128 | 128 | 'method' => $method, |
129 | 129 | 'operation' => $operation, |
@@ -439,7 +439,7 @@ |
||
439 | 439 | protected function sendRequest($request, array $parameters = []) |
440 | 440 | { |
441 | 441 | $this->checkSoap(); |
442 | - return (string)$this->soap->send( |
|
442 | + return (string) $this->soap->send( |
|
443 | 443 | $this->urlService, |
444 | 444 | $this->urlMethod, |
445 | 445 | $this->urlAction, |
@@ -242,7 +242,7 @@ discard block |
||
242 | 242 | $this->dom->appChild($this->infMDFe, $this->ide, 'Falta tag "infMDFe"'); |
243 | 243 | $this->dom->appChild($this->emit, $this->enderEmit, 'Falta tag "emit"'); |
244 | 244 | $this->dom->appChild($this->infMDFe, $this->emit, 'Falta tag "infMDFe"'); |
245 | - if (! empty($this->rodo)) { |
|
245 | + if (!empty($this->rodo)) { |
|
246 | 246 | $this->dom->appChild($this->infModal, $this->rodo, 'Falta tag "infModal"'); |
247 | 247 | } |
248 | 248 | if (!empty($this->aquav)) { |
@@ -265,7 +265,7 @@ discard block |
||
265 | 265 | } |
266 | 266 | $this->dom->appChild($this->infMDFe, $this->infModal, 'Falta tag "infMDFe"'); |
267 | 267 | $this->dom->appChild($this->infMDFe, $this->infDoc, 'Falta tag "infMDFe"'); |
268 | - if (! empty($this->seg)) { |
|
268 | + if (!empty($this->seg)) { |
|
269 | 269 | $this->dom->appChild($this->infMDFe, $this->seg, 'Falta tag "infMDFe"'); |
270 | 270 | } |
271 | 271 | $this->dom->appChild($this->infMDFe, $this->tot, 'Falta tag "infMDFe"'); |
@@ -275,7 +275,7 @@ discard block |
||
275 | 275 | foreach ($this->autXML as $autXML) { |
276 | 276 | $this->dom->appChild($this->infMDFe, $autXML, 'Falta tag "infMDFe"'); |
277 | 277 | } |
278 | - if (! empty($this->infAdic)) { |
|
278 | + if (!empty($this->infAdic)) { |
|
279 | 279 | $this->dom->appChild($this->infMDFe, $this->infAdic, 'Falta tag "infMDFe"'); |
280 | 280 | } |
281 | 281 | $this->dom->appChild($this->MDFe, $this->infMDFe, 'Falta tag "MDFe"'); |
@@ -1199,7 +1199,7 @@ discard block |
||
1199 | 1199 | "Quantidade rateada (Peso,Volume) " |
1200 | 1200 | ); |
1201 | 1201 | |
1202 | - return $infUnidCarga ; |
|
1202 | + return $infUnidCarga; |
|
1203 | 1203 | } |
1204 | 1204 | |
1205 | 1205 | /** |
@@ -2322,10 +2322,10 @@ discard block |
||
2322 | 2322 | |
2323 | 2323 | protected function buildTagIde() |
2324 | 2324 | { |
2325 | - if (! empty($this->aInfMunCarrega)) { |
|
2325 | + if (!empty($this->aInfMunCarrega)) { |
|
2326 | 2326 | $this->dom->addArrayChild($this->ide, $this->aInfMunCarrega); |
2327 | 2327 | } |
2328 | - if (! empty($this->aInfPercurso)) { |
|
2328 | + if (!empty($this->aInfPercurso)) { |
|
2329 | 2329 | $this->dom->addArrayChild($this->ide, $this->aInfPercurso); |
2330 | 2330 | } |
2331 | 2331 | } |