Passed
Push — master ( 3c8f14...cef701 )
by
unknown
02:40
created
src/Common/Webservices.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -84,7 +84,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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,
Please login to merge, or discard this patch.
src/Tools.php 1 patch
Spacing   +4 added lines, -5 removed lines patch added patch discarded remove patch
@@ -386,12 +386,11 @@
 block discarded – undo
386 386
         }
387 387
         //monta a consulta
388 388
         $request = "<distDFeInt xmlns=\"$this->urlPortal\" versao=\"$this->urlVersion\">"
389
-            . "<tpAmb>".$this->tpAmb."</tpAmb>"
390
-            . ((strlen($this->config->cnpj)==14) ?
391
-                "<CNPJ>".$this->config->cnpj."</CNPJ>" :
392
-                "<CPF>".$this->config->cnpj."</CPF>"
389
+            . "<tpAmb>" . $this->tpAmb . "</tpAmb>"
390
+            . ((strlen($this->config->cnpj) == 14) ?
391
+                "<CNPJ>" . $this->config->cnpj . "</CNPJ>" : "<CPF>" . $this->config->cnpj . "</CPF>"
393 392
             )
394
-            . $tagNSU."</distDFeInt>";
393
+            . $tagNSU . "</distDFeInt>";
395 394
         //valida o xml da requisição
396 395
         $this->isValid($this->urlVersion, $request, 'distDFeInt');
397 396
         $this->lastRequest = $request;
Please login to merge, or discard this patch.