@@ -25,7 +25,7 @@ discard block |
||
| 25 | 25 | //wrong document, this document is not able to recieve a protocol |
| 26 | 26 | throw DocumentsException::wrongDocument(0, $key); |
| 27 | 27 | } |
| 28 | - $func = "add".$key."Protocol"; |
|
| 28 | + $func = "add" . $key . "Protocol"; |
|
| 29 | 29 | return self::$func($request, $response); |
| 30 | 30 | } |
| 31 | 31 | |
@@ -72,7 +72,7 @@ discard block |
||
| 72 | 72 | $node2 = $procb2b->importNode($nodeb2b, true); |
| 73 | 73 | $nfeProcB2B->appendChild($node2); |
| 74 | 74 | $nfeb2bXML = $procb2b->saveXML(); |
| 75 | - $nfeb2bXMLString = str_replace(array("\n","\r","\s"), '', $nfeb2bXML); |
|
| 75 | + $nfeb2bXMLString = str_replace(array("\n", "\r", "\s"), '', $nfeb2bXML); |
|
| 76 | 76 | return (string) $nfeb2bXMLString; |
| 77 | 77 | } |
| 78 | 78 | |
@@ -306,7 +306,7 @@ discard block |
||
| 306 | 306 | $resLote = $ret->getElementsByTagName('idLote')->item(0)->nodeValue; |
| 307 | 307 | //extrai a rag retEvento da resposta (retorno da SEFAZ) |
| 308 | 308 | $retEv = $ret->getElementsByTagName('retEvento')->item(0); |
| 309 | - $cStat = $retEv->getElementsByTagName('cStat')->item(0)->nodeValue; |
|
| 309 | + $cStat = $retEv->getElementsByTagName('cStat')->item(0)->nodeValue; |
|
| 310 | 310 | $xMotivo = $retEv->getElementsByTagName('xMotivo')->item(0)->nodeValue; |
| 311 | 311 | $tpEvento = $retEv->getElementsByTagName('tpEvento')->item(0)->nodeValue; |
| 312 | 312 | $cStatValids = ['135', '136']; |
@@ -342,7 +342,7 @@ discard block |
||
| 342 | 342 | { |
| 343 | 343 | $xml = "<?xml version=\"1.0\" encoding=\"UTF-8\"?>" |
| 344 | 344 | . "<$nodename versao=\"$versao\" " |
| 345 | - . "xmlns=\"".self::$urlPortal."\">"; |
|
| 345 | + . "xmlns=\"" . self::$urlPortal . "\">"; |
|
| 346 | 346 | $xml .= $first; |
| 347 | 347 | $xml .= $second; |
| 348 | 348 | $xml .= "</$nodename>"; |