Passed
Push — master ( 1ac832...7b04d5 )
by Roberto
03:20 queued 11s
created
src/CTe/DacteOSV3.php 1 patch
Spacing   +22 added lines, -23 removed lines patch added patch discarded remove patch
@@ -382,7 +382,7 @@  discard block
 block discarded – undo
382 382
             $y += 19;
383 383
             $x = $xInic;
384 384
             $r = $this->zSeguro($x, $y);
385
-            $y = $y-12;
385
+            $y = $y - 12;
386 386
 
387 387
 
388 388
             switch ($this->modal) {
@@ -587,7 +587,7 @@  discard block
 block discarded – undo
587 587
             'font' => $this->fontePadrao,
588 588
             'size' => 7,
589 589
             'style' => '');
590
-        $fone = $this->getTagValue($this->enderEmit, "fone")!=""? $this->zFormatFone($this->enderEmit):'';
590
+        $fone = $this->getTagValue($this->enderEmit, "fone") != "" ? $this->zFormatFone($this->enderEmit) : '';
591 591
         $lgr = $this->getTagValue($this->enderEmit, "xLgr");
592 592
         $nro = $this->getTagValue($this->enderEmit, "nro");
593 593
         $cpl = $this->getTagValue($this->enderEmit, "xCpl");
@@ -860,7 +860,7 @@  discard block
 block discarded – undo
860 860
         $this->pTextBox($x, $y + 12, $wa, $h, $texto, $aFont, 'T', 'C', 0, '');
861 861
 
862 862
         if ($this->qrCodMDFe !== null) {
863
-            $this->pQRDACTEOS($y-25);
863
+            $this->pQRDACTEOS($y - 25);
864 864
             $w = 38;
865 865
             $x += 79;
866 866
             $this->pTextBox($x, $y - 34, $w + 0.5, $h + 41.5);
@@ -985,7 +985,7 @@  discard block
 block discarded – undo
985 985
             $this->pdf->SetTextColor(0, 0, 0);
986 986
         }
987 987
         //indicar sem valor
988
-        if ($tpAmb != 1 && $this->preVisualizar=='0') { // caso não seja uma DA de produção
988
+        if ($tpAmb != 1 && $this->preVisualizar == '0') { // caso não seja uma DA de produção
989 989
             $x = 10;
990 990
             if ($this->orientacao == 'P') {
991 991
                 $y = round($this->hPrint / 2, 0);
@@ -1008,7 +1008,7 @@  discard block
 block discarded – undo
1008 1008
             $texto = "AMBIENTE DE HOMOLOGAÇÃO";
1009 1009
             $this->pTextBox($x, $y + 14, $w, $h, $texto, $aFont, 'C', 'C', 0, '');
1010 1010
             $this->pdf->SetTextColor(0, 0, 0);
1011
-        } elseif ($this->preVisualizar=='1') { // caso seja uma DA de Pré-Visualização
1011
+        } elseif ($this->preVisualizar == '1') { // caso seja uma DA de Pré-Visualização
1012 1012
             $h = 5;
1013 1013
             $w = $maxW - (2 * 10);
1014 1014
             $x = 55;
@@ -1026,14 +1026,14 @@  discard block
 block discarded – undo
1026 1026
                 'size' => 41,
1027 1027
                 'style' => 'B');
1028 1028
             $texto = "Sem Validade Jurídica";
1029
-            $this->pTextBox90($x+20, $y, $w, $h, $texto, $aFont, 'C', 'C', 0, '');
1029
+            $this->pTextBox90($x + 20, $y, $w, $h, $texto, $aFont, 'C', 'C', 0, '');
1030 1030
             $this->pdf->SetTextColor(90, 90, 90);
1031 1031
             $texto = "SEM VALOR FISCAL";
1032 1032
             $aFont = array(
1033 1033
                 'font' => $this->fontePadrao,
1034 1034
                 'size' => 48,
1035 1035
                 'style' => 'B');
1036
-            $this->pTextBox90($x+40, $y, $w, $h, $texto, $aFont, 'C', 'C', 0, '');
1036
+            $this->pTextBox90($x + 40, $y, $w, $h, $texto, $aFont, 'C', 'C', 0, '');
1037 1037
             $this->pdf->SetTextColor(0, 0, 0); // voltar a cor default
1038 1038
         } else {
1039 1039
             $x = 10;
@@ -1119,13 +1119,13 @@  discard block
 block discarded – undo
1119 1119
             'font' => $this->fontePadrao,
1120 1120
             'size' => 6,
1121 1121
             'style' => '');
1122
-        $this->pTextBox($x-1, $y+2, $w, 4, $texto, $aFont, 'T', 'L', 0, '');
1123
-        $texto = $this->nomeDesenvolvedor . ' - '. $this->siteDesenvolvedor;
1122
+        $this->pTextBox($x - 1, $y + 2, $w, 4, $texto, $aFont, 'T', 'L', 0, '');
1123
+        $texto = $this->nomeDesenvolvedor . ' - ' . $this->siteDesenvolvedor;
1124 1124
         $aFont = array(
1125 1125
             'font' => $this->fontePadrao,
1126 1126
             'size' => 6,
1127 1127
             'style' => '');
1128
-        $this->pTextBox($x-50, $y+2, $w, 4, $texto, $aFont, 'T', 'R', 0, $this->siteDesenvolvedor);
1128
+        $this->pTextBox($x - 50, $y + 2, $w, 4, $texto, $aFont, 'T', 'R', 0, $this->siteDesenvolvedor);
1129 1129
     } //fim zRodape
1130 1130
 
1131 1131
     /**
@@ -1212,7 +1212,7 @@  discard block
 block discarded – undo
1212 1212
         $texto = 'FONE';
1213 1213
         $aFont = $this->formatPadrao;
1214 1214
         $this->pTextBox($x, $y, $w, $h, $texto, $aFont, 'T', 'L', 0, '');
1215
-        $texto = $this->getTagValue($this->toma, "fone")!=""? $this->zFormatFone($this->toma):'';
1215
+        $texto = $this->getTagValue($this->toma, "fone") != "" ? $this->zFormatFone($this->toma) : '';
1216 1216
         $aFont = $this->formatNegrito;
1217 1217
         $this->pTextBox($x + 8, $y, $w, $h, $texto, $aFont, 'T', 'L', 0, '');
1218 1218
     } //fim da função tomadorDACTE
@@ -1352,7 +1352,7 @@  discard block
 block discarded – undo
1352 1352
         $aFont = $this->formatPadrao;
1353 1353
         $this->pTextBox($x, $y, $w * 0.14, $h, $texto, $aFont, 'T', 'L', 0, '');
1354 1354
 
1355
-        $wCol02=0.18;
1355
+        $wCol02 = 0.18;
1356 1356
         $x += $w * $wCol02;
1357 1357
         $this->pdf->Line($x, $y, $x, $y + 9.5);
1358 1358
         $texto = 'ALÍQ ICMS';
@@ -1428,7 +1428,7 @@  discard block
 block discarded – undo
1428 1428
         $x += $w * $wCol02;
1429 1429
 
1430 1430
         $texto = !empty($this->ICMS->getElementsByTagName("pRedBC")->item(0)->nodeValue) ?
1431
-            number_format($this->getTagValue($this->ICMS, "pRedBC"), 2, ",", ".").'%' :'';
1431
+            number_format($this->getTagValue($this->ICMS, "pRedBC"), 2, ",", ".") . '%' : '';
1432 1432
         $aFont = $this->formatNegrito;
1433 1433
         $this->pTextBox($x, $y, $w * $wCol02, $h, $texto, $aFont, 'T', 'L', 0, '');
1434 1434
 
@@ -1656,14 +1656,14 @@  discard block
 block discarded – undo
1656 1656
             $texto .= $xObs;
1657 1657
         }
1658 1658
         $textoObs = explode("Motorista:", $texto);
1659
-        $textoObs[1] = isset($textoObs[1]) ? "Motorista: ".$textoObs[1]: '';
1659
+        $textoObs[1] = isset($textoObs[1]) ? "Motorista: " . $textoObs[1] : '';
1660 1660
         $texto .= $this->getTagValue($this->imp, "infAdFisco", "\r\n");
1661 1661
         $aFont = array(
1662 1662
             'font' => $this->fontePadrao,
1663 1663
             'size' => 7.5,
1664 1664
             'style' => '');
1665 1665
         $this->pTextBox($x, $y, $w, $h, $textoObs[0], $aFont, 'T', 'L', 0, '', false);
1666
-        $this->pTextBox($x, $y+11.5, $w, $h, $textoObs[1], $aFont, 'T', 'L', 0, '', false);
1666
+        $this->pTextBox($x, $y + 11.5, $w, $h, $textoObs[1], $aFont, 'T', 'L', 0, '', false);
1667 1667
     } //fim da função obsDACTE
1668 1668
 
1669 1669
     /**
@@ -1701,7 +1701,7 @@  discard block
 block discarded – undo
1701 1701
         $aFont = $this->formatPadrao;
1702 1702
         $this->pTextBox($x, $y, $w * 0.33, $h, $texto, $aFont, 'T', 'L', 0, '');
1703 1703
 
1704
-        $wCol02=0.33;
1704
+        $wCol02 = 0.33;
1705 1705
         $x += $w * $wCol02;
1706 1706
         $this->pdf->Line($x, $y, $x, $y + 9.5);
1707 1707
         $texto = 'NÚMERO DA APÓLICE';
@@ -1761,7 +1761,7 @@  discard block
 block discarded – undo
1761 1761
         $aFont = $this->formatPadrao;
1762 1762
         $this->pTextBox($x, $y, $w * 0.14, $h, $texto, $aFont, 'T', 'L', 0, '');
1763 1763
 
1764
-        $wCol02=0.18;
1764
+        $wCol02 = 0.18;
1765 1765
         $x += $w * $wCol02;
1766 1766
         $this->pdf->Line($x, $y, $x, $y + 9.5);
1767 1767
         $texto = 'PLACA DO VEÍCULO';
@@ -1803,8 +1803,7 @@  discard block
 block discarded – undo
1803 1803
         $x += $w * $wCol02;
1804 1804
 
1805 1805
         $texto = !empty($this->getTagValue($this->veic->item(0), "CPF")) ?
1806
-            $this->getTagValue($this->veic->item(0), "CPF") :
1807
-            (!empty($this->getTagValue($this->veic->item(0), "CNPJ")) ?
1806
+            $this->getTagValue($this->veic->item(0), "CPF") : (!empty($this->getTagValue($this->veic->item(0), "CNPJ")) ?
1808 1807
             $this->getTagValue($this->veic->item(0), "CNPJ") : '');
1809 1808
         $aFont = $this->formatNegrito;
1810 1809
         $this->pTextBox($x, $y, $w * $wCol02, $h, $texto, $aFont, 'T', 'L', 0, '');
@@ -2273,7 +2272,7 @@  discard block
 block discarded – undo
2273 2272
      */
2274 2273
     protected function zCanhoto($x = 0, $y = 0)
2275 2274
     {
2276
-        $this->zhDashedLine($x, $y+2, $this->wPrint, 0.1, 80);
2275
+        $this->zhDashedLine($x, $y + 2, $this->wPrint, 0.1, 80);
2277 2276
         $y = $y + 2;
2278 2277
         $oldX = $x;
2279 2278
         $oldY = $y;
@@ -2312,7 +2311,7 @@  discard block
 block discarded – undo
2312 2311
 
2313 2312
         $this->pdf->Line($x, $y, $x, $y + 16.5);
2314 2313
 
2315
-        $texto = 'TÉRMINO DA PRESTAÇÃO - DATA/HORA' . "\r\n" . "\r\n" . "\r\n". "\r\n";
2314
+        $texto = 'TÉRMINO DA PRESTAÇÃO - DATA/HORA' . "\r\n" . "\r\n" . "\r\n" . "\r\n";
2316 2315
         $texto .= ' INÍCIO DA PRESTAÇÃO - DATA/HORA';
2317 2316
         $aFont = array(
2318 2317
             'font' => $this->fontePadrao,
@@ -2322,14 +2321,14 @@  discard block
 block discarded – undo
2322 2321
         $x = $oldX;
2323 2322
         $y = $y + 5;
2324 2323
 
2325
-        $this->pdf->Line($x, $y+3, $w * 0.255, $y+3); // LINHA HORIZONTAL ACIMA DO RG ABAIXO DO NOME
2324
+        $this->pdf->Line($x, $y + 3, $w * 0.255, $y + 3); // LINHA HORIZONTAL ACIMA DO RG ABAIXO DO NOME
2326 2325
 
2327 2326
         $texto = 'RG';
2328 2327
         $aFont = array(
2329 2328
             'font' => $this->fontePadrao,
2330 2329
             'size' => 6,
2331 2330
             'style' => '');
2332
-        $this->pTextBox($x, $y+3, $w * 0.33, $h, $texto, $aFont, 'T', 'L', 0, '');
2331
+        $this->pTextBox($x, $y + 3, $w * 0.33, $h, $texto, $aFont, 'T', 'L', 0, '');
2333 2332
         $x += $w * 0.85;
2334 2333
 
2335 2334
         $this->pdf->Line($x, $y + 11.5, $x, $y - 5); // LINHA VERTICAL PROXIMO AO CT-E
Please login to merge, or discard this patch.