Passed
Push — master ( 0955ff...5ce3da )
by Roberto
02:48 queued 10s
created
src/Make.php 2 patches
Indentation   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -5999,11 +5999,11 @@
 block discarded – undo
5999 5999
     }
6000 6000
     
6001 6001
         /**
6002
-     * Formatação numerica condicional
6003
-     * @param string|float|int|null $value
6004
-     * @param int $decimal
6005
-     * @return string
6006
-     */
6002
+         * Formatação numerica condicional
6003
+         * @param string|float|int|null $value
6004
+         * @param int $decimal
6005
+         * @return string
6006
+         */
6007 6007
     protected function conditionalNumberFormatting($value = null, $decimal = 2)
6008 6008
     {
6009 6009
         if (is_numeric($value)) {
Please login to merge, or discard this patch.
Spacing   +20 added lines, -20 removed lines patch added patch discarded remove patch
@@ -1278,7 +1278,7 @@  discard block
 block discarded – undo
1278 1278
         $std = $this->equilizeParameters($std, $possible);
1279 1279
         $identificador = '#4 <infPercurso> - ';
1280 1280
         $this->infPercurso[] = $this->dom->createElement('infPercurso');
1281
-        $posicao = (int)count($this->infPercurso) - 1;
1281
+        $posicao = (int) count($this->infPercurso) - 1;
1282 1282
         $this->dom->addChild(
1283 1283
             $this->infPercurso[$posicao],
1284 1284
             'UFPer',
@@ -1898,7 +1898,7 @@  discard block
 block discarded – undo
1898 1898
         $std = $this->equilizeParameters($std, $possible);
1899 1899
         $identificador = '#65 <pass> - ';
1900 1900
         $this->pass[] = $this->dom->createElement('pass');
1901
-        $posicao = (int)count($this->pass) - 1;
1901
+        $posicao = (int) count($this->pass) - 1;
1902 1902
         $this->dom->addChild(
1903 1903
             $this->pass[$posicao],
1904 1904
             'xPass',
@@ -2132,7 +2132,7 @@  discard block
 block discarded – undo
2132 2132
         $identificador = '#91 <ObsCont> - ';
2133 2133
         if (count($this->obsCont) <= 10) {
2134 2134
             $this->obsCont[] = $this->dom->createElement('ObsCont');
2135
-            $posicao = (int)count($this->obsCont) - 1;
2135
+            $posicao = (int) count($this->obsCont) - 1;
2136 2136
             $this->obsCont[$posicao]->setAttribute('xCampo', $std->xCampo);
2137 2137
             $this->dom->addChild(
2138 2138
                 $this->obsCont[$posicao],
@@ -2144,9 +2144,9 @@  discard block
 block discarded – undo
2144 2144
             return true;
2145 2145
         }
2146 2146
         $this->errors[] = array(
2147
-            'tag' => (string)'<ObsCont>',
2148
-            'desc' => (string)'Campo de uso livre do contribuinte',
2149
-            'erro' => (string)'Tag deve aparecer de 0 a 10 vezes'
2147
+            'tag' => (string) '<ObsCont>',
2148
+            'desc' => (string) 'Campo de uso livre do contribuinte',
2149
+            'erro' => (string) 'Tag deve aparecer de 0 a 10 vezes'
2150 2150
         );
2151 2151
         return false;
2152 2152
     }
@@ -2170,7 +2170,7 @@  discard block
 block discarded – undo
2170 2170
         $identificador = '#94 <ObsFisco> - ';
2171 2171
         if (count($this->obsFisco) <= 10) {
2172 2172
             $this->obsFisco[] = $this->dom->createElement('ObsFisco');
2173
-            $posicao = (int)count($this->obsFisco) - 1;
2173
+            $posicao = (int) count($this->obsFisco) - 1;
2174 2174
             $this->obsFisco[$posicao]->setAttribute('xCampo', $std->xCampo);
2175 2175
             $this->dom->addChild(
2176 2176
                 $this->obsFisco[$posicao],
@@ -2182,9 +2182,9 @@  discard block
 block discarded – undo
2182 2182
             return true;
2183 2183
         }
2184 2184
         $this->errors[] = array(
2185
-            'tag' => (string)'<ObsFisco>',
2186
-            'desc' => (string)'Campo de uso livre do contribuinte',
2187
-            'erro' => (string)'Tag deve aparecer de 0 a 10 vezes'
2185
+            'tag' => (string) '<ObsFisco>',
2186
+            'desc' => (string) 'Campo de uso livre do contribuinte',
2187
+            'erro' => (string) 'Tag deve aparecer de 0 a 10 vezes'
2188 2188
         );
2189 2189
         return false;
2190 2190
     }
@@ -3176,7 +3176,7 @@  discard block
 block discarded – undo
3176 3176
         $std = $this->equilizeParameters($std, $possible);
3177 3177
         $identificador = '#65 <pass> - ';
3178 3178
         $this->comp[] = $this->dom->createElement('Comp');
3179
-        $posicao = (int)count($this->comp) - 1;
3179
+        $posicao = (int) count($this->comp) - 1;
3180 3180
         $this->dom->addChild(
3181 3181
             $this->comp[$posicao],
3182 3182
             'xNome',
@@ -3765,7 +3765,7 @@  discard block
 block discarded – undo
3765 3765
         $std = $this->equilizeParameters($std, $possible);
3766 3766
         $identificador = '#257 <infQ> - ';
3767 3767
         $this->infQ[] = $this->dom->createElement('infQ');
3768
-        $posicao = (int)count($this->infQ) - 1;
3768
+        $posicao = (int) count($this->infQ) - 1;
3769 3769
         $this->dom->addChild(
3770 3770
             $this->infQ[$posicao],
3771 3771
             'cUnid',
@@ -4255,7 +4255,7 @@  discard block
 block discarded – undo
4255 4255
         $std = $this->equilizeParameters($std, $possible);
4256 4256
         $ident = '#319 <infDocRef> - ';
4257 4257
         $this->infDocRef[] = $this->dom->createElement('infDocRef');
4258
-        $posicao = (int)count($this->infDocRef) - 1;
4258
+        $posicao = (int) count($this->infDocRef) - 1;
4259 4259
         $this->dom->addChild(
4260 4260
             $this->infDocRef[$posicao],
4261 4261
             'nDoc',
@@ -4312,7 +4312,7 @@  discard block
 block discarded – undo
4312 4312
         $std = $this->equilizeParameters($std, $possible);
4313 4313
         $identificador = '#345 <emiDocAnt> - ';
4314 4314
         $this->emiDocAnt[] = $this->dom->createElement('emiDocAnt');
4315
-        $posicao = (int)count($this->emiDocAnt) - 1;
4315
+        $posicao = (int) count($this->emiDocAnt) - 1;
4316 4316
         if ($std->CNPJ != '') {
4317 4317
             $this->dom->addChild(
4318 4318
                 $this->emiDocAnt[$posicao],
@@ -4368,7 +4368,7 @@  discard block
 block discarded – undo
4368 4368
         $std = $this->equilizeParameters($std, $possible);
4369 4369
         $identificador = '#358 <idDocAntEle> - ';
4370 4370
         $this->idDocAntEle[count($this->emiDocAnt) - 1][] = $this->dom->createElement('idDocAntEle');
4371
-        $posicao = (int)count($this->idDocAntEle[count($this->emiDocAnt) - 1]) - 1;
4371
+        $posicao = (int) count($this->idDocAntEle[count($this->emiDocAnt) - 1]) - 1;
4372 4372
         $this->dom->addChild(
4373 4373
             $this->idDocAntEle[count($this->emiDocAnt) - 1][$posicao],
4374 4374
             'chCTe',
@@ -4396,7 +4396,7 @@  discard block
 block discarded – undo
4396 4396
         $std = $this->equilizeParameters($std, $possible);
4397 4397
         $identificador = '#360 <seg> - ';
4398 4398
         $this->seg[] = $this->dom->createElement('seg');
4399
-        $posicao = (int)count($this->seg) - 1;
4399
+        $posicao = (int) count($this->seg) - 1;
4400 4400
         $this->dom->addChild(
4401 4401
             $this->seg[$posicao],
4402 4402
             'respSeg',
@@ -4439,7 +4439,7 @@  discard block
 block discarded – undo
4439 4439
         $std = $this->equilizeParameters($std, $possible);
4440 4440
         $identificador = '#358 <idDocAntPap> - ';
4441 4441
         $this->idDocAntPap[count($this->emiDocAnt) - 1][] = $this->dom->createElement('idDocAntPap');
4442
-        $posicao = (int)count($this->idDocAntPap[count($this->emiDocAnt) - 1]) - 1;
4442
+        $posicao = (int) count($this->idDocAntPap[count($this->emiDocAnt) - 1]) - 1;
4443 4443
         $this->dom->addChild(
4444 4444
             $this->idDocAntPap[count($this->emiDocAnt) - 1][$posicao],
4445 4445
             'tpDoc',
@@ -4705,7 +4705,7 @@  discard block
 block discarded – undo
4705 4705
         $std = $this->equilizeParameters($std, $possible);
4706 4706
         $identificador = '#12 <detCont> - ';
4707 4707
         $this->lacre[count($this->detCont) - 1][] = $this->dom->createElement('lacre');
4708
-        $posicao = (int)count($this->lacre[count($this->detCont) - 1]) - 1;
4708
+        $posicao = (int) count($this->lacre[count($this->detCont) - 1]) - 1;
4709 4709
         $this->dom->addChild(
4710 4710
             $this->lacre[count($this->detCont) - 1][$posicao],
4711 4711
             'nLacre',
@@ -4732,7 +4732,7 @@  discard block
 block discarded – undo
4732 4732
         $std = $this->equilizeParameters($std, $possible);
4733 4733
         $identificador = '#15 <detCont> <infNF> - ';
4734 4734
         $this->infNFCont[count($this->detCont) - 1][] = $this->dom->createElement('infNF');
4735
-        $posicao = (int)count($this->infNFCont[count($this->detCont) - 1]) - 1;
4735
+        $posicao = (int) count($this->infNFCont[count($this->detCont) - 1]) - 1;
4736 4736
         $this->dom->addChild(
4737 4737
             $this->infNFCont[count($this->detCont) - 1][$posicao],
4738 4738
             'serie',
@@ -4769,7 +4769,7 @@  discard block
 block discarded – undo
4769 4769
         $std = $this->equilizeParameters($std, $possible);
4770 4770
         $identificador = '#19 <infNFe> - ';
4771 4771
         $this->infNFeCont[count($this->detCont) - 1][] = $this->dom->createElement('infNFe');
4772
-        $posicao = (int)count($this->infNFeCont[count($this->detCont) - 1]) - 1;
4772
+        $posicao = (int) count($this->infNFeCont[count($this->detCont) - 1]) - 1;
4773 4773
         $this->dom->addChild(
4774 4774
             $this->infNFeCont[count($this->detCont) - 1][$posicao],
4775 4775
             'chave',
Please login to merge, or discard this patch.