Passed
Push — master ( 159b0a...127407 )
by
unknown
52s queued 11s
created
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.