Test Setup Failed
Pull Request — master (#211)
by
unknown
01:44
created
src/Make.php 1 patch
Spacing   +19 added lines, -19 removed lines patch added patch discarded remove patch
@@ -1039,7 +1039,7 @@  discard block
 block discarded – undo
1039 1039
     {
1040 1040
         $identificador = '#4 <infPercurso> - ';
1041 1041
         $this->infPercurso[] = $this->dom->createElement('infPercurso');
1042
-        $posicao = (integer)count($this->infPercurso) - 1;
1042
+        $posicao = (integer) count($this->infPercurso) - 1;
1043 1043
         $this->dom->addChild(
1044 1044
             $this->infPercurso[$posicao],
1045 1045
             'UFPer',
@@ -1556,7 +1556,7 @@  discard block
 block discarded – undo
1556 1556
     {
1557 1557
         $identificador = '#65 <pass> - ';
1558 1558
         $this->pass[] = $this->dom->createElement('pass');
1559
-        $posicao = (integer)count($this->pass) - 1;
1559
+        $posicao = (integer) count($this->pass) - 1;
1560 1560
         $this->dom->addChild(
1561 1561
             $this->pass[$posicao],
1562 1562
             'xPass',
@@ -1755,7 +1755,7 @@  discard block
 block discarded – undo
1755 1755
         $identificador = '#91 <ObsCont> - ';
1756 1756
         if (count($this->obsCont) <= 10) {
1757 1757
             $this->obsCont[] = $this->dom->createElement('ObsCont');
1758
-            $posicao = (integer)count($this->obsCont) - 1;
1758
+            $posicao = (integer) count($this->obsCont) - 1;
1759 1759
             $this->obsCont[$posicao]->setAttribute('xCampo', $std->xCampo);
1760 1760
             $this->dom->addChild(
1761 1761
                 $this->obsCont[$posicao],
@@ -1767,9 +1767,9 @@  discard block
 block discarded – undo
1767 1767
             return true;
1768 1768
         }
1769 1769
         $this->errors[] = array(
1770
-            'tag' => (string)'<ObsCont>',
1771
-            'desc' => (string)'Campo de uso livre do contribuinte',
1772
-            'erro' => (string)'Tag deve aparecer de 0 a 10 vezes'
1770
+            'tag' => (string) '<ObsCont>',
1771
+            'desc' => (string) 'Campo de uso livre do contribuinte',
1772
+            'erro' => (string) 'Tag deve aparecer de 0 a 10 vezes'
1773 1773
         );
1774 1774
         return false;
1775 1775
     }
@@ -1788,7 +1788,7 @@  discard block
 block discarded – undo
1788 1788
         $identificador = '#94 <ObsFisco> - ';
1789 1789
         if (count($this->obsFisco) <= 10) {
1790 1790
             $this->obsFisco[] = $this->dom->createElement('ObsFisco');
1791
-            $posicao = (integer)count($this->obsFisco) - 1;
1791
+            $posicao = (integer) count($this->obsFisco) - 1;
1792 1792
             $this->obsFisco[$posicao]->setAttribute('xCampo', $std->xCampo);
1793 1793
             $this->dom->addChild(
1794 1794
                 $this->obsFisco[$posicao],
@@ -1800,9 +1800,9 @@  discard block
 block discarded – undo
1800 1800
             return true;
1801 1801
         }
1802 1802
         $this->errors[] = array(
1803
-            'tag' => (string)'<ObsFisco>',
1804
-            'desc' => (string)'Campo de uso livre do contribuinte',
1805
-            'erro' => (string)'Tag deve aparecer de 0 a 10 vezes'
1803
+            'tag' => (string) '<ObsFisco>',
1804
+            'desc' => (string) 'Campo de uso livre do contribuinte',
1805
+            'erro' => (string) 'Tag deve aparecer de 0 a 10 vezes'
1806 1806
         );
1807 1807
         return false;
1808 1808
     }
@@ -2674,7 +2674,7 @@  discard block
 block discarded – undo
2674 2674
     {
2675 2675
         $identificador = '#65 <pass> - ';
2676 2676
         $this->comp[] = $this->dom->createElement('Comp');
2677
-        $posicao = (integer)count($this->comp) - 1;
2677
+        $posicao = (integer) count($this->comp) - 1;
2678 2678
         $this->dom->addChild(
2679 2679
             $this->comp[$posicao],
2680 2680
             'xNome',
@@ -3080,7 +3080,7 @@  discard block
 block discarded – undo
3080 3080
     {
3081 3081
         $identificador = '#257 <infQ> - ';
3082 3082
         $this->infQ[] = $this->dom->createElement('infQ');
3083
-        $posicao = (integer)count($this->infQ) - 1;
3083
+        $posicao = (integer) count($this->infQ) - 1;
3084 3084
         $this->dom->addChild($this->infQ[$posicao], 'cUnid', $std->cUnid, true, $identificador . 'Código da
3085 3085
             Unidade de Medida');
3086 3086
         $this->dom->addChild($this->infQ[$posicao], 'tpMed', $std->tpMed, true, $identificador . 'Tipo da Medida');
@@ -3125,7 +3125,7 @@  discard block
 block discarded – undo
3125 3125
     {
3126 3126
         $identificador = '#262 <infNF> - ';
3127 3127
         $this->infNF[] = $this->dom->createElement('infNF');
3128
-        $posicao = (integer)count($this->infNF) - 1;
3128
+        $posicao = (integer) count($this->infNF) - 1;
3129 3129
 
3130 3130
         $this->dom->addChild($this->infNF[$posicao], 'nRoma', $std->nRoma, false, $identificador . 'Número do
3131 3131
             Romaneio da NF');
@@ -3166,7 +3166,7 @@  discard block
 block discarded – undo
3166 3166
     {
3167 3167
         $identificador = '#297 <infNFe> - ';
3168 3168
         $this->infNFe[] = $this->dom->createElement('infNFe');
3169
-        $posicao = (integer)count($this->infNFe) - 1;
3169
+        $posicao = (integer) count($this->infNFe) - 1;
3170 3170
         $this->dom->addChild(
3171 3171
             $this->infNFe[$posicao],
3172 3172
             'chave',
@@ -3201,7 +3201,7 @@  discard block
 block discarded – undo
3201 3201
     {
3202 3202
         $ident = '#319 <infOutros> - ';
3203 3203
         $this->infOutros[] = $this->dom->createElement('infOutros');
3204
-        $posicao = (integer)count($this->infOutros) - 1;
3204
+        $posicao = (integer) count($this->infOutros) - 1;
3205 3205
         $this->dom->addChild($this->infOutros[$posicao], 'tpDoc', $std->tpDoc, true, $ident . 'Tipo '
3206 3206
             . 'de documento originário');
3207 3207
         $this->dom->addChild($this->infOutros[$posicao], 'descOutros', $std->descOutros, false, $ident . 'Descrição '
@@ -3226,7 +3226,7 @@  discard block
 block discarded – undo
3226 3226
     {
3227 3227
         $ident = '#319 <infDocRef> - ';
3228 3228
         $this->infDocRef[] = $this->dom->createElement('infDocRef');
3229
-        $posicao = (integer)count($this->infDocRef) - 1;
3229
+        $posicao = (integer) count($this->infDocRef) - 1;
3230 3230
         $this->dom->addChild($this->infDocRef[$posicao], 'nDoc', $std->nDoc, false, $ident . 'Número '
3231 3231
             . 'do documento');
3232 3232
         $this->dom->addChild($this->infDocRef[$posicao], 'serie', $std->serie, false, $ident . 'Série '
@@ -3249,7 +3249,7 @@  discard block
 block discarded – undo
3249 3249
     {
3250 3250
         $identificador = '#345 <emiDocAnt> - ';
3251 3251
         $this->emiDocAnt[] = $this->dom->createElement('emiDocAnt');
3252
-        $posicao = (integer)count($this->emiDocAnt) - 1;
3252
+        $posicao = (integer) count($this->emiDocAnt) - 1;
3253 3253
         if ($std->CNPJ != '') {
3254 3254
             $this->dom->addChild(
3255 3255
                 $this->emiDocAnt[$posicao],
@@ -3290,7 +3290,7 @@  discard block
 block discarded – undo
3290 3290
     {
3291 3291
         $identificador = '#358 <idDocAntEle> - ';
3292 3292
         $this->idDocAntEle[] = $this->dom->createElement('idDocAntEle');
3293
-        $posicao = (integer)count($this->idDocAntEle) - 1;
3293
+        $posicao = (integer) count($this->idDocAntEle) - 1;
3294 3294
         $this->dom->addChild($this->idDocAntEle[$posicao], 'chCTe', $std->chCTe, true, $identificador . 'Chave de '
3295 3295
             . 'Acesso do CT-e');
3296 3296
 
@@ -3308,7 +3308,7 @@  discard block
 block discarded – undo
3308 3308
     {
3309 3309
         $identificador = '#360 <seg> - ';
3310 3310
         $this->seg[] = $this->dom->createElement('seg');
3311
-        $posicao = (integer)count($this->seg) - 1;
3311
+        $posicao = (integer) count($this->seg) - 1;
3312 3312
 
3313 3313
         $this->dom->addChild($this->seg[$posicao], 'respSeg', $std->respSeg, true, $identificador . 'Responsável
3314 3314
             pelo Seguro');
Please login to merge, or discard this patch.