Passed
Push — master ( 5b4e1e...8c5742 )
by
unknown
02:00 queued 14s
created
src/Factories/QRCode.php 2 patches
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -38,11 +38,11 @@
 block discarded – undo
38 38
         if ($mod == 67) {
39 39
             $cte = $dom->getElementsByTagName('CTeOS')->item(0);
40 40
         } else {
41
-            $tpCTe = (int)$dom->getElementsByTagName('tpCTe')->item(0)->nodeValue;
41
+            $tpCTe = (int) $dom->getElementsByTagName('tpCTe')->item(0)->nodeValue;
42 42
             if (($tpCTe == 5) || ($tpCTe == 6)) {
43 43
                 // CTe simplificado
44 44
                 $cte = $dom->getElementsByTagName('CTeSimp')->item(0);
45
-            }else{
45
+            } else {
46 46
                 $cte = $dom->getElementsByTagName('CTe')->item(0);
47 47
             }
48 48
         }
Please login to merge, or discard this patch.
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -42,7 +42,7 @@
 block discarded – undo
42 42
             if (($tpCTe == 5) || ($tpCTe == 6)) {
43 43
                 // CTe simplificado
44 44
                 $cte = $dom->getElementsByTagName('CTeSimp')->item(0);
45
-            }else{
45
+            } else{
46 46
                 $cte = $dom->getElementsByTagName('CTe')->item(0);
47 47
             }
48 48
         }
Please login to merge, or discard this patch.
src/Complements.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -136,7 +136,7 @@  discard block
 block discarded – undo
136 136
             throw DocumentsException::wrongDocument(3, "<protCTe>");
137 137
         }
138 138
         $infProt = $ret->getElementsByTagName('infProt')->item(0);
139
-        $cStat  = $infProt->getElementsByTagName('cStat')->item(0)->nodeValue;
139
+        $cStat = $infProt->getElementsByTagName('cStat')->item(0)->nodeValue;
140 140
         $xMotivo = $infProt->getElementsByTagName('xMotivo')->item(0)->nodeValue;
141 141
         $dig = $infProt->getElementsByTagName("digVal")->item(0);
142 142
         $digProt = '000';
@@ -194,7 +194,7 @@  discard block
 block discarded – undo
194 194
             throw DocumentsException::wrongDocument(3, "<protCTe>");
195 195
         }
196 196
         $infProt = $ret->getElementsByTagName('infProt')->item(0);
197
-        $cStat  = $infProt->getElementsByTagName('cStat')->item(0)->nodeValue;
197
+        $cStat = $infProt->getElementsByTagName('cStat')->item(0)->nodeValue;
198 198
         $xMotivo = $infProt->getElementsByTagName('xMotivo')->item(0)->nodeValue;
199 199
         $dig = $infProt->getElementsByTagName("digVal")->item(0);
200 200
         $digProt = '000';
@@ -252,7 +252,7 @@  discard block
 block discarded – undo
252 252
             throw DocumentsException::wrongDocument(3, "<protCTe>");
253 253
         }
254 254
         $infProt = $ret->getElementsByTagName('infProt')->item(0);
255
-        $cStat  = $infProt->getElementsByTagName('cStat')->item(0)->nodeValue;
255
+        $cStat = $infProt->getElementsByTagName('cStat')->item(0)->nodeValue;
256 256
         $xMotivo = $infProt->getElementsByTagName('xMotivo')->item(0)->nodeValue;
257 257
         $dig = $infProt->getElementsByTagName("digVal")->item(0);
258 258
         $digProt = '000';
@@ -305,7 +305,7 @@  discard block
 block discarded – undo
305 305
         //        $resLote = $ret->getElementsByTagName('idLote')->item(0)->nodeValue;
306 306
         //extrai a rag retEvento da resposta (retorno da SEFAZ)
307 307
         $retEv = $ret->getElementsByTagName('retEventoCTe')->item(0);
308
-        $cStat  = $retEv->getElementsByTagName('cStat')->item(0)->nodeValue;
308
+        $cStat = $retEv->getElementsByTagName('cStat')->item(0)->nodeValue;
309 309
         $xMotivo = $retEv->getElementsByTagName('xMotivo')->item(0)->nodeValue;
310 310
         $tpEvento = $retEv->getElementsByTagName('tpEvento')->item(0)->nodeValue;
311 311
         $cStatValids = ['135', '136'];
Please login to merge, or discard this patch.
src/Common/Tools.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -347,7 +347,7 @@  discard block
 block discarded – undo
347 347
         //exception will be throw if CTe is not valid
348 348
         $modelo = $dom->getElementsByTagName('mod')->item(0)->nodeValue;
349 349
 
350
-        $tpCTe = (int)$dom->getElementsByTagName('tpCTe')->item(0)->nodeValue;
350
+        $tpCTe = (int) $dom->getElementsByTagName('tpCTe')->item(0)->nodeValue;
351 351
         if (($tpCTe == 5) || ($tpCTe == 6)) {
352 352
             $method = 'cteSimp';
353 353
         } else {
@@ -362,7 +362,7 @@  discard block
 block discarded – undo
362 362
             $signed = $this->addQRCode($dom);
363 363
         }
364 364
         $this->isValid($this->versao, $signed, $method);
365
-        $modal = (int)$dom->getElementsByTagName('modal')->item(0)->nodeValue;
365
+        $modal = (int) $dom->getElementsByTagName('modal')->item(0)->nodeValue;
366 366
         if ($modelo == 57) {
367 367
             switch ($modal) {
368 368
                 case 1:
@@ -607,7 +607,7 @@  discard block
 block discarded – undo
607 607
     protected function sendRequest($request, array $parameters = [])
608 608
     {
609 609
         $this->checkSoap();
610
-        return (string)$this->soap->send(
610
+        return (string) $this->soap->send(
611 611
             $this->urlService,
612 612
             $this->urlMethod,
613 613
             $this->urlAction,
Please login to merge, or discard this patch.
src/MakeCTeSimp.php 1 patch
Spacing   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -1177,7 +1177,7 @@  discard block
 block discarded – undo
1177 1177
         $identificador = '#91 <ObsCont> - ';
1178 1178
         if (count($this->obsCont) <= 10) {
1179 1179
             $this->obsCont[] = $this->dom->createElement('ObsCont');
1180
-            $posicao = (int)count($this->obsCont) - 1;
1180
+            $posicao = (int) count($this->obsCont) - 1;
1181 1181
             $this->obsCont[$posicao]->setAttribute('xCampo', $std->xCampo);
1182 1182
             $this->dom->addChild(
1183 1183
                 $this->obsCont[$posicao],
@@ -1215,7 +1215,7 @@  discard block
 block discarded – undo
1215 1215
         $identificador = '#94 <ObsFisco> - ';
1216 1216
         if (count($this->obsFisco) <= 10) {
1217 1217
             $this->obsFisco[] = $this->dom->createElement('ObsFisco');
1218
-            $posicao = (int)count($this->obsFisco) - 1;
1218
+            $posicao = (int) count($this->obsFisco) - 1;
1219 1219
             $this->obsFisco[$posicao]->setAttribute('xCampo', $std->xCampo);
1220 1220
             $this->dom->addChild(
1221 1221
                 $this->obsFisco[$posicao],
@@ -2015,7 +2015,7 @@  discard block
 block discarded – undo
2015 2015
         $std = $this->equilizeParameters($std, $possible);
2016 2016
         $identificador = '#98 <det> - ';
2017 2017
         $this->det[] = $this->dom->createElement('det');
2018
-        $posicao = (int)count($this->det) - 1;
2018
+        $posicao = (int) count($this->det) - 1;
2019 2019
         $this->det[$posicao]->setAttribute('nItem', $std->nItem);
2020 2020
         $this->dom->addChild(
2021 2021
             $this->det[$posicao],
@@ -2081,7 +2081,7 @@  discard block
 block discarded – undo
2081 2081
         $std = $this->equilizeParameters($std, $possible);
2082 2082
         $identificador = '#108 <pass> - ';
2083 2083
         $this->comp[count($this->det) - 1][] = $this->dom->createElement('Comp');
2084
-        $posicao = (int)count($this->comp[count($this->det) - 1]) - 1;
2084
+        $posicao = (int) count($this->comp[count($this->det) - 1]) - 1;
2085 2085
         $this->dom->addChild(
2086 2086
             $this->comp[count($this->det) - 1][$posicao],
2087 2087
             'xNome',
@@ -2117,7 +2117,7 @@  discard block
 block discarded – undo
2117 2117
         $std = $this->equilizeParameters($std, $possible);
2118 2118
         $identificador = '#111 <infNFe> - ';
2119 2119
         $this->infNFe[count($this->det) - 1][] = $this->dom->createElement('infNFe');
2120
-        $posicao = (int)count($this->infNFe[count($this->det) - 1]) - 1;
2120
+        $posicao = (int) count($this->infNFe[count($this->det) - 1]) - 1;
2121 2121
         $infNFe = $this->infNFe[count($this->det) - 1][$posicao];
2122 2122
         $this->dom->addChild(
2123 2123
             $infNFe,
@@ -2171,7 +2171,7 @@  discard block
 block discarded – undo
2171 2171
         $identificador = '#133 <infDocAnt> - ';
2172 2172
         /// TODO remover fazer um teste para ver se ao usar está linha abaixo não apaga os dados antes inseridos.....
2173 2173
         $this->infDocAnt[count($this->det) - 1][] = $this->dom->createElement('infDocAnt');
2174
-        $posicao = (int)count($this->infDocAnt[count($this->det) - 1]) - 1;
2174
+        $posicao = (int) count($this->infDocAnt[count($this->det) - 1]) - 1;
2175 2175
         $infDocAnt = $this->infDocAnt[count($this->det) - 1][$posicao];
2176 2176
         $this->dom->addChild(
2177 2177
             $infDocAnt,
@@ -2238,7 +2238,7 @@  discard block
 block discarded – undo
2238 2238
         $std = $this->equilizeParameters($std, $possible);
2239 2239
         $identificador = '#93 <infQ> - ';
2240 2240
         $this->infQ[] = $this->dom->createElement('infQ');
2241
-        $posicao = (int)count($this->infQ) - 1;
2241
+        $posicao = (int) count($this->infQ) - 1;
2242 2242
         $this->dom->addChild(
2243 2243
             $this->infQ[$posicao],
2244 2244
             'cUnid',
@@ -2782,7 +2782,7 @@  discard block
 block discarded – undo
2782 2782
         $std = $this->equilizeParameters($std, $possible);
2783 2783
         $identificador = '#12 <detCont> - ';
2784 2784
         $this->lacre[count($this->detCont) - 1][] = $this->dom->createElement('lacre');
2785
-        $posicao = (int)count($this->lacre[count($this->detCont) - 1]) - 1;
2785
+        $posicao = (int) count($this->lacre[count($this->detCont) - 1]) - 1;
2786 2786
         $this->dom->addChild(
2787 2787
             $this->lacre[count($this->detCont) - 1][$posicao],
2788 2788
             'nLacre',
@@ -2811,7 +2811,7 @@  discard block
 block discarded – undo
2811 2811
         $std = $this->equilizeParameters($std, $possible);
2812 2812
         $identificador = '#15 <detCont> <infNF> - ';
2813 2813
         $this->infNFCont[count($this->detCont) - 1][] = $this->dom->createElement('infNF');
2814
-        $posicao = (int)count($this->infNFCont[count($this->detCont) - 1]) - 1;
2814
+        $posicao = (int) count($this->infNFCont[count($this->detCont) - 1]) - 1;
2815 2815
         $this->dom->addChild(
2816 2816
             $this->infNFCont[count($this->detCont) - 1][$posicao],
2817 2817
             'serie',
@@ -2846,7 +2846,7 @@  discard block
 block discarded – undo
2846 2846
         $std = $this->equilizeParameters($std, $possible);
2847 2847
         $identificador = '#19 <infNFe> - ';
2848 2848
         $this->infNFeCont[count($this->detCont) - 1][] = $this->dom->createElement('infNFe');
2849
-        $posicao = (int)count($this->infNFeCont[count($this->detCont) - 1]) - 1;
2849
+        $posicao = (int) count($this->infNFeCont[count($this->detCont) - 1]) - 1;
2850 2850
         $this->dom->addChild(
2851 2851
             $this->infNFeCont[count($this->detCont) - 1][$posicao],
2852 2852
             'chave',
Please login to merge, or discard this patch.