Passed
Push — master ( 2014f9...c81c33 )
by Roberto
06:20 queued 03:13
created
src/Complements.php 2 patches
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -25,7 +25,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 
@@ -276,7 +276,7 @@  discard block
 block discarded – undo
276 276
         if (empty($digProt)) {
277 277
             $prot = $ret->getElementsByTagName('protNFe')->item(0);
278 278
             $cStat = $prot->getElementsByTagName('cStat')->item(0)->nodeValue;
279
-            $xMotivo= $prot->getElementsByTagName('xMotivo')->item(0)->nodeValue;
279
+            $xMotivo = $prot->getElementsByTagName('xMotivo')->item(0)->nodeValue;
280 280
             throw DocumentsException::wrongDocument(18, "[{$cStat}] {$xMotivo}");
281 281
         }
282 282
         if ($digNFe !== $digProt) {
@@ -312,7 +312,7 @@  discard block
 block discarded – undo
312 312
         $resLote = $ret->getElementsByTagName('idLote')->item(0)->nodeValue;
313 313
         //extrai a rag retEvento da resposta (retorno da SEFAZ)
314 314
         $retEv = $ret->getElementsByTagName('retEvento')->item(0);
315
-        $cStat  = $retEv->getElementsByTagName('cStat')->item(0)->nodeValue;
315
+        $cStat = $retEv->getElementsByTagName('cStat')->item(0)->nodeValue;
316 316
         $xMotivo = $retEv->getElementsByTagName('xMotivo')->item(0)->nodeValue;
317 317
         $tpEvento = $retEv->getElementsByTagName('tpEvento')->item(0)->nodeValue;
318 318
         $cStatValids = ['135', '136'];
@@ -348,7 +348,7 @@  discard block
 block discarded – undo
348 348
     {
349 349
         $xml = "<?xml version=\"1.0\" encoding=\"UTF-8\"?>"
350 350
                 . "<$nodename versao=\"$versao\" "
351
-                . "xmlns=\"".self::$urlPortal."\">";
351
+                . "xmlns=\"" . self::$urlPortal . "\">";
352 352
         $xml .= $first;
353 353
         $xml .= $second;
354 354
         $xml .= "</$nodename>";
Please login to merge, or discard this patch.
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -2,7 +2,6 @@
 block discarded – undo
2 2
 
3 3
 namespace NFePHP\NFe;
4 4
 
5
-use NFePHP\Common\Strings;
6 5
 use NFePHP\NFe\Common\Standardize;
7 6
 use NFePHP\NFe\Exception\DocumentsException;
8 7
 use DOMDocument;
Please login to merge, or discard this patch.