@@ -328,6 +328,11 @@ |
||
328 | 328 | return $signed; |
329 | 329 | } |
330 | 330 | |
331 | + /** |
|
332 | + * @param string $signed |
|
333 | + * |
|
334 | + * @return string |
|
335 | + */ |
|
331 | 336 | protected function addQRCode($signed) |
332 | 337 | { |
333 | 338 | $dom = new Dom('1.0', 'UTF-8'); |
@@ -36,7 +36,7 @@ discard block |
||
36 | 36 | |
37 | 37 | /** |
38 | 38 | * Constructor |
39 | - * @param NFePHP\Common\DOMImproved $dom |
|
39 | + * @param Dom $dom |
|
40 | 40 | */ |
41 | 41 | public function __construct(\NFePHP\Common\DOMImproved $dom = null) |
42 | 42 | { |
@@ -101,6 +101,9 @@ discard block |
||
101 | 101 | return $node; |
102 | 102 | } |
103 | 103 | |
104 | + /** |
|
105 | + * @param stdClass $std |
|
106 | + */ |
|
104 | 107 | protected function checkIfContentsExists($std) |
105 | 108 | { |
106 | 109 | $response = false; |
@@ -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 | |
@@ -189,7 +189,7 @@ discard block |
||
189 | 189 | $resLote = $ret->getElementsByTagName('idLote')->item(0)->nodeValue; |
190 | 190 | //extrai a rag retEvento da resposta (retorno da SEFAZ) |
191 | 191 | $retEv = $ret->getElementsByTagName('retEvento')->item(0); |
192 | - $cStat = $retEv->getElementsByTagName('cStat')->item(0)->nodeValue; |
|
192 | + $cStat = $retEv->getElementsByTagName('cStat')->item(0)->nodeValue; |
|
193 | 193 | $xMotivo = $retEv->getElementsByTagName('xMotivo')->item(0)->nodeValue; |
194 | 194 | $tpEvento = $retEv->getElementsByTagName('tpEvento')->item(0)->nodeValue; |
195 | 195 | $cStatValids = ['135', '136']; |
@@ -225,7 +225,7 @@ discard block |
||
225 | 225 | { |
226 | 226 | $xml = "<?xml version=\"1.0\" encoding=\"UTF-8\"?>" |
227 | 227 | . "<$nodename versao=\"$versao\" " |
228 | - . "xmlns=\"".self::$urlPortal."\">"; |
|
228 | + . "xmlns=\"" . self::$urlPortal . "\">"; |
|
229 | 229 | $xml .= $first; |
230 | 230 | $xml .= $second; |
231 | 231 | $xml .= "</$nodename>"; |