Passed
Pull Request — master (#479)
by Rafael
02:26
created
src/Complements.php 1 patch
Spacing   +6 added lines, -6 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
 
@@ -244,7 +244,7 @@  discard block
 block discarded – undo
244 244
         $digProt = '000';
245 245
         foreach ($retProt as $rp) {
246 246
             $infProt = $rp->getElementsByTagName('infProt')->item(0);
247
-            $cStat  = $infProt->getElementsByTagName('cStat')->item(0)->nodeValue;
247
+            $cStat = $infProt->getElementsByTagName('cStat')->item(0)->nodeValue;
248 248
             $xMotivo = $infProt->getElementsByTagName('xMotivo')->item(0)->nodeValue;
249 249
             $dig = $infProt->getElementsByTagName("digVal")->item(0);
250 250
             $key = $infProt->getElementsByTagName("chNFe")->item(0)->nodeValue;
@@ -257,7 +257,7 @@  discard block
 block discarded – undo
257 257
                     //205 NFe Denegada
258 258
                     //301 Uso denegado por irregularidade fiscal do emitente
259 259
                     //302 Uso denegado por irregularidade fiscal do destinatário
260
-                    $cstatpermit = ['100', '150', '110', '205', '301','302'];
260
+                    $cstatpermit = ['100', '150', '110', '205', '301', '302'];
261 261
                     if (!in_array($cStat, $cstatpermit)) {
262 262
                         throw DocumentsException::wrongDocument(4, "[$cStat] $xMotivo");
263 263
                     }
@@ -303,7 +303,7 @@  discard block
 block discarded – undo
303 303
         $resLote = $ret->getElementsByTagName('idLote')->item(0)->nodeValue;
304 304
         //extrai a rag retEvento da resposta (retorno da SEFAZ)
305 305
         $retEv = $ret->getElementsByTagName('retEvento')->item(0);
306
-        $cStat  = $retEv->getElementsByTagName('cStat')->item(0)->nodeValue;
306
+        $cStat = $retEv->getElementsByTagName('cStat')->item(0)->nodeValue;
307 307
         $xMotivo = $retEv->getElementsByTagName('xMotivo')->item(0)->nodeValue;
308 308
         $tpEvento = $retEv->getElementsByTagName('tpEvento')->item(0)->nodeValue;
309 309
         $cStatValids = ['135', '136'];
@@ -339,7 +339,7 @@  discard block
 block discarded – undo
339 339
     {
340 340
         $xml = "<?xml version=\"1.0\" encoding=\"UTF-8\"?>"
341 341
                 . "<$nodename versao=\"$versao\" "
342
-                . "xmlns=\"".self::$urlPortal."\">";
342
+                . "xmlns=\"" . self::$urlPortal . "\">";
343 343
         $xml .= $first;
344 344
         $xml .= $second;
345 345
         $xml .= "</$nodename>";
Please login to merge, or discard this patch.