@@ -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, |
@@ -438,8 +438,7 @@ |
||
| 438 | 438 | $request = "<distDFeInt xmlns=\"$this->urlPortal\" versao=\"$this->urlVersion\">" |
| 439 | 439 | . "<tpAmb>" . $this->tpAmb . "</tpAmb>" |
| 440 | 440 | . ((strlen($this->config->cnpj) == 14) ? |
| 441 | - "<CNPJ>" . $this->config->cnpj . "</CNPJ>" : |
|
| 442 | - "<CPF>" . $this->config->cnpj . "</CPF>" |
|
| 441 | + "<CNPJ>" . $this->config->cnpj . "</CNPJ>" : "<CPF>" . $this->config->cnpj . "</CPF>" |
|
| 443 | 442 | ) |
| 444 | 443 | . $tagNSU . "</distDFeInt>"; |
| 445 | 444 | //valida o xml da requisição |