Passed
Push — master ( 75a548...dbe379 )
by Roberto
02:03 queued 52s
created
src/Common/FakePretty.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -66,7 +66,7 @@
 block discarded – undo
66 66
         $html .= '<h2>body</h2>';
67 67
         $html .= str_replace(
68 68
             ['<', '>'],
69
-            ['&lt;','&gt;'],
69
+            ['&lt;', '&gt;'],
70 70
             str_replace(
71 71
                 '<?xml version="1.0"?>',
72 72
                 '<?xml version="1.0" encoding="UTF-8"?>',
Please login to merge, or discard this patch.
src/Complements.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -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
 
@@ -306,7 +306,7 @@  discard block
 block discarded – undo
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'];
Please login to merge, or discard this patch.
src/Tools.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -286,7 +286,7 @@  discard block
 block discarded – undo
286 286
             . "</infCons>"
287 287
             . "</ConsCad>";
288 288
         if (strtoupper($uf) == 'MT') {
289
-            $request = "<nfeDadosMsg>$request</nfeDadosMsg>" ;
289
+            $request = "<nfeDadosMsg>$request</nfeDadosMsg>";
290 290
         }
291 291
         $this->isValid($this->urlVersion, $request, 'consCad');
292 292
         $this->lastRequest = $request;
@@ -436,7 +436,7 @@  discard block
 block discarded – undo
436 436
             . "<tpAutor>{$std->tpAutor}</tpAutor>"
437 437
             . "<verAplic>{$std->verAplic}</verAplic>"
438 438
             . "<autXML>";
439
-        $tagAdic .=  !empty($std->CNPJ)
439
+        $tagAdic .= !empty($std->CNPJ)
440 440
             ? "<CNPJ>{$std->CNPJ}</CNPJ>"
441 441
             : "<CPF>{$std->CPF}</CPF>";
442 442
         $tagAdic .= "</autXML>"
@@ -1079,7 +1079,7 @@  discard block
 block discarded – undo
1079 1079
         $dom->loadXML($nfe);
1080 1080
         //verifica a validade no webservice da SEFAZ
1081 1081
         $tpAmb = $dom->getElementsByTagName('tpAmb')->item(0)->nodeValue;
1082
-        $infNFe  = $dom->getElementsByTagName('infNFe')->item(0);
1082
+        $infNFe = $dom->getElementsByTagName('infNFe')->item(0);
1083 1083
         $chNFe = preg_replace('/[^0-9]/', '', $infNFe->getAttribute("Id"));
1084 1084
         $protocol = $dom->getElementsByTagName('nProt')->item(0)->nodeValue;
1085 1085
         $digval = $dom->getElementsByTagName('DigestValue')->item(0)->nodeValue;
Please login to merge, or discard this patch.
src/Common/Tools.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -97,7 +97,7 @@  discard block
 block discarded – undo
97 97
      * Canonical conversion options
98 98
      * @var array
99 99
      */
100
-    protected $canonical = [true,false,null,null];
100
+    protected $canonical = [true, false, null, null];
101 101
     /**
102 102
      * Model of NFe 55 or 65
103 103
      * @var int
@@ -542,7 +542,7 @@  discard block
 block discarded – undo
542 542
         }
543 543
 
544 544
         $path = $this->pathwsfiles . $file;
545
-        if (! file_exists($path)) {
545
+        if (!file_exists($path)) {
546 546
             return '';
547 547
         }
548 548
         return file_get_contents($path);
Please login to merge, or discard this patch.
src/Common/ValidTXT.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -137,7 +137,7 @@
 block discarded – undo
137 137
                     '?',
138 138
                     $field
139 139
                 );
140
-                 $newfield = preg_replace('/\xE0[\x80-\x9F][\x80-\xBF]' .
140
+                    $newfield = preg_replace('/\xE0[\x80-\x9F][\x80-\xBF]' .
141 141
                     '|\xED[\xA0-\xBF][\x80-\xBF]/S', '?', $newfield);
142 142
                 if ($field != $newfield) {
143 143
                     $errors[] = "ERRO: ($num) Existem caracteres não UTF-8, não permitidos, "
Please login to merge, or discard this patch.
src/Common/Config.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -48,7 +48,7 @@
 block discarded – undo
48 48
     {
49 49
         $filejsonschema = __DIR__ . "/../../storage/config.schema";
50 50
         $validator = new JsonValid();
51
-        $validator->check($data, (object)['$ref' => 'file://' . $filejsonschema]);
51
+        $validator->check($data, (object) ['$ref' => 'file://' . $filejsonschema]);
52 52
         if (!$validator->isValid()) {
53 53
             $msg = "";
54 54
             foreach ($validator->getErrors() as $error) {
Please login to merge, or discard this patch.
src/Factories/Parser.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1231,7 +1231,7 @@  discard block
 block discarded – undo
1231 1231
         $this->stdPIS->CST = $std->CST;
1232 1232
         $this->stdPIS->vPIS = $std->vPIS;
1233 1233
         $this->stdPIS->qBCProd = $std->qBCProd;
1234
-        $this->stdPIS->vAliqProd  = $std->vAliqProd;
1234
+        $this->stdPIS->vAliqProd = $std->vAliqProd;
1235 1235
         $this->buildQEntity();
1236 1236
     }
1237 1237
 
@@ -1282,7 +1282,7 @@  discard block
 block discarded – undo
1282 1282
     protected function q10Entity($std)
1283 1283
     {
1284 1284
         $this->stdPIS->qBCProd = $std->qBCProd;
1285
-        $this->stdPIS->vAliqProd  = $std->vAliqProd;
1285
+        $this->stdPIS->vAliqProd = $std->vAliqProd;
1286 1286
         $this->buildQEntity();
1287 1287
     }
1288 1288
 
Please login to merge, or discard this patch.