Completed
Push — master ( 663701...cc47ff )
by
unknown
07:34
created
src/MDFe/Damdfe.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -26,7 +26,7 @@  discard block
 block discarded – undo
26 26
     protected $yDados = 0;
27 27
     protected $xml; // string XML NFe
28 28
     protected $errMsg = ''; // mesagens de erro
29
-    protected $errStatus = false;// status de erro TRUE um erro ocorreu false sem erros
29
+    protected $errStatus = false; // status de erro TRUE um erro ocorreu false sem erros
30 30
     protected $formatoChave = "#### #### #### #### #### #### #### #### #### #### ####";
31 31
     protected $margemInterna = 2;
32 32
     protected $id;
@@ -557,7 +557,7 @@  discard block
 block discarded – undo
557 557
             $n = count($resp['message']);
558 558
             $alttot = $n * 15;
559 559
             $x = 10;
560
-            $y = $this->hPrint/2 - $alttot/2;
560
+            $y = $this->hPrint / 2 - $alttot / 2;
561 561
             $h = 15;
562 562
             $w = $maxW - (2 * $x);
563 563
             $this->pdf->settextcolor(90, 90, 90);
@@ -1231,7 +1231,7 @@  discard block
 block discarded – undo
1231 1231
         $aFont = array('font' => $this->fontePadrao, 'size' => 8, 'style' => '');
1232 1232
         $this->pdf->textBox($x, $y, $x2, 8, $texto, $aFont, 'T', 'L', 0, '', false);
1233 1233
         //$y = $this->hPrint - 4;
1234
-        $y = $this->hPrint+8;
1234
+        $y = $this->hPrint + 8;
1235 1235
         $texto = "Impresso em  " . date('d/m/Y H:i:s') . ' ' . $this->creditos;
1236 1236
         $w = $this->wPrint - 4;
1237 1237
         $aFont = array('font' => $this->fontePadrao, 'size' => 6, 'style' => 'I');
Please login to merge, or discard this patch.
src/CTe/DacteOS.php 1 patch
Spacing   +18 added lines, -19 removed lines patch added patch discarded remove patch
@@ -267,7 +267,7 @@  discard block
 block discarded – undo
267 267
             $y += 19;
268 268
             $x = $xInic;
269 269
             $r = $this->seguro($x, $y);
270
-            $y = $y-12;
270
+            $y = $y - 12;
271 271
             switch ($this->modal) {
272 272
                 case '1':
273 273
                     $y += 24.9;
@@ -437,7 +437,7 @@  discard block
 block discarded – undo
437 437
             'font' => $this->fontePadrao,
438 438
             'size' => 7,
439 439
             'style' => '');
440
-        $fone = $this->getTagValue($this->enderEmit, "fone")!=""? $this->formatFone($this->enderEmit):'';
440
+        $fone = $this->getTagValue($this->enderEmit, "fone") != "" ? $this->formatFone($this->enderEmit) : '';
441 441
         $lgr = $this->getTagValue($this->enderEmit, "xLgr");
442 442
         $nro = $this->getTagValue($this->enderEmit, "nro");
443 443
         $cpl = $this->getTagValue($this->enderEmit, "xCpl");
@@ -710,7 +710,7 @@  discard block
 block discarded – undo
710 710
         $this->pdf->textBox($x, $y + 12, $wa, $h, $texto, $aFont, 'T', 'C', 0, '');
711 711
 
712 712
         if ($this->qrCodMDFe !== null) {
713
-            $this->qrCodeDacteOs($y-25);
713
+            $this->qrCodeDacteOs($y - 25);
714 714
             $w = 38;
715 715
             $x += 79;
716 716
             $this->pdf->textBox($x, $y - 34, $w + 0.5, $h + 41.5);
@@ -792,7 +792,7 @@  discard block
 block discarded – undo
792 792
             $n = count($resp['message']);
793 793
             $alttot = $n * 15;
794 794
             $x = 10;
795
-            $y = $this->hPrint/2 - $alttot/2;
795
+            $y = $this->hPrint / 2 - $alttot / 2;
796 796
             $h = 15;
797 797
             $w = $maxW - (2 * $x);
798 798
             $this->pdf->settextcolor(90, 90, 90);
@@ -889,13 +889,13 @@  discard block
 block discarded – undo
889 889
      */
890 890
     protected function rodape($x, $y)
891 891
     {
892
-        $texto = "Impresso em  " . date('d/m/Y   H:i:s') . ' ' .  $this->creditos;
892
+        $texto = "Impresso em  " . date('d/m/Y   H:i:s') . ' ' . $this->creditos;
893 893
         $w = $this->wPrint - 4;
894 894
         $aFont = array(
895 895
             'font' => $this->fontePadrao,
896 896
             'size' => 6,
897 897
             'style' => '');
898
-        $this->pdf->textBox($x-1, $y+2, $w, 4, $texto, $aFont, 'T', 'L', 0, '');
898
+        $this->pdf->textBox($x - 1, $y + 2, $w, 4, $texto, $aFont, 'T', 'L', 0, '');
899 899
         $texto = $this->powered ? "Powered by NFePHP®" : '';
900 900
         $this->pdf->textBox($x, $y, $w, 0, $texto, $aFont, 'T', 'R', false, '');
901 901
     }
@@ -984,7 +984,7 @@  discard block
 block discarded – undo
984 984
         $texto = 'FONE';
985 985
         $aFont = $this->formatPadrao;
986 986
         $this->pdf->textBox($x, $y, $w, $h, $texto, $aFont, 'T', 'L', 0, '');
987
-        $texto = $this->getTagValue($this->toma, "fone")!=""? $this->formatFone($this->toma):'';
987
+        $texto = $this->getTagValue($this->toma, "fone") != "" ? $this->formatFone($this->toma) : '';
988 988
         $aFont = $this->formatNegrito;
989 989
         $this->pdf->textBox($x + 8, $y, $w, $h, $texto, $aFont, 'T', 'L', 0, '');
990 990
     }
@@ -1124,7 +1124,7 @@  discard block
 block discarded – undo
1124 1124
         $aFont = $this->formatPadrao;
1125 1125
         $this->pdf->textBox($x, $y, $w * 0.14, $h, $texto, $aFont, 'T', 'L', 0, '');
1126 1126
 
1127
-        $wCol02=0.18;
1127
+        $wCol02 = 0.18;
1128 1128
         $x += $w * $wCol02;
1129 1129
         $this->pdf->line($x, $y, $x, $y + 9.5);
1130 1130
         $texto = 'ALÍQ ICMS';
@@ -1200,7 +1200,7 @@  discard block
 block discarded – undo
1200 1200
         $x += $w * $wCol02;
1201 1201
 
1202 1202
         $texto = !empty($this->ICMS->getElementsByTagName("pRedBC")->item(0)->nodeValue) ?
1203
-            number_format($this->getTagValue($this->ICMS, "pRedBC"), 2, ",", ".").'%' :'';
1203
+            number_format($this->getTagValue($this->ICMS, "pRedBC"), 2, ",", ".") . '%' : '';
1204 1204
         $aFont = $this->formatNegrito;
1205 1205
         $this->pdf->textBox($x, $y, $w * $wCol02, $h, $texto, $aFont, 'T', 'L', 0, '');
1206 1206
 
@@ -1428,14 +1428,14 @@  discard block
 block discarded – undo
1428 1428
             $texto .= $xObs;
1429 1429
         }
1430 1430
         $textoObs = explode("Motorista:", $texto);
1431
-        $textoObs[1] = isset($textoObs[1]) ? "Motorista: ".$textoObs[1]: '';
1431
+        $textoObs[1] = isset($textoObs[1]) ? "Motorista: " . $textoObs[1] : '';
1432 1432
         $texto .= $this->getTagValue($this->imp, "infAdFisco", "\r\n");
1433 1433
         $aFont = array(
1434 1434
             'font' => $this->fontePadrao,
1435 1435
             'size' => 7.5,
1436 1436
             'style' => '');
1437 1437
         $this->pdf->textBox($x, $y, $w, $h, $textoObs[0], $aFont, 'T', 'L', 0, '', false);
1438
-        $this->pdf->textBox($x, $y+11.5, $w, $h, $textoObs[1], $aFont, 'T', 'L', 0, '', false);
1438
+        $this->pdf->textBox($x, $y + 11.5, $w, $h, $textoObs[1], $aFont, 'T', 'L', 0, '', false);
1439 1439
     }
1440 1440
 
1441 1441
     /**
@@ -1473,7 +1473,7 @@  discard block
 block discarded – undo
1473 1473
         $aFont = $this->formatPadrao;
1474 1474
         $this->pdf->textBox($x, $y, $w * 0.33, $h, $texto, $aFont, 'T', 'L', 0, '');
1475 1475
 
1476
-        $wCol02=0.33;
1476
+        $wCol02 = 0.33;
1477 1477
         $x += $w * $wCol02;
1478 1478
         $this->pdf->line($x, $y, $x, $y + 9.5);
1479 1479
         $texto = 'NÚMERO DA APÓLICE';
@@ -1532,7 +1532,7 @@  discard block
 block discarded – undo
1532 1532
         $aFont = $this->formatPadrao;
1533 1533
         $this->pdf->textBox($x, $y, $w * 0.14, $h, $texto, $aFont, 'T', 'L', 0, '');
1534 1534
 
1535
-        $wCol02=0.18;
1535
+        $wCol02 = 0.18;
1536 1536
         $x += $w * $wCol02;
1537 1537
         $this->pdf->line($x, $y, $x, $y + 9.5);
1538 1538
         $texto = 'PLACA DO VEÍCULO';
@@ -1574,8 +1574,7 @@  discard block
 block discarded – undo
1574 1574
         $x += $w * $wCol02;
1575 1575
 
1576 1576
         $texto = !empty($this->getTagValue($this->veic->item(0), "CPF")) ?
1577
-            $this->getTagValue($this->veic->item(0), "CPF") :
1578
-            (!empty($this->getTagValue($this->veic->item(0), "CNPJ")) ?
1577
+            $this->getTagValue($this->veic->item(0), "CPF") : (!empty($this->getTagValue($this->veic->item(0), "CNPJ")) ?
1579 1578
             $this->getTagValue($this->veic->item(0), "CNPJ") : '');
1580 1579
         $aFont = $this->formatNegrito;
1581 1580
         $this->pdf->textBox($x, $y, $w * $wCol02, $h, $texto, $aFont, 'T', 'L', 0, '');
@@ -2044,7 +2043,7 @@  discard block
 block discarded – undo
2044 2043
      */
2045 2044
     protected function canhoto($x = 0, $y = 0)
2046 2045
     {
2047
-        $this->pdf->dashedHLine($x, $y+2, $this->wPrint, 0.1, 80);
2046
+        $this->pdf->dashedHLine($x, $y + 2, $this->wPrint, 0.1, 80);
2048 2047
         $y = $y + 2;
2049 2048
         $oldX = $x;
2050 2049
         $oldY = $y;
@@ -2083,7 +2082,7 @@  discard block
 block discarded – undo
2083 2082
 
2084 2083
         $this->pdf->line($x, $y, $x, $y + 16.5);
2085 2084
 
2086
-        $texto = 'TÉRMINO DA PRESTAÇÃO - DATA/HORA' . "\r\n" . "\r\n" . "\r\n". "\r\n";
2085
+        $texto = 'TÉRMINO DA PRESTAÇÃO - DATA/HORA' . "\r\n" . "\r\n" . "\r\n" . "\r\n";
2087 2086
         $texto .= ' INÍCIO DA PRESTAÇÃO - DATA/HORA';
2088 2087
         $aFont = array(
2089 2088
             'font' => $this->fontePadrao,
@@ -2093,14 +2092,14 @@  discard block
 block discarded – undo
2093 2092
         $x = $oldX;
2094 2093
         $y = $y + 5;
2095 2094
 
2096
-        $this->pdf->line($x, $y+3, $w * 0.255, $y+3); // LINHA HORIZONTAL ACIMA DO RG ABAIXO DO NOME
2095
+        $this->pdf->line($x, $y + 3, $w * 0.255, $y + 3); // LINHA HORIZONTAL ACIMA DO RG ABAIXO DO NOME
2097 2096
 
2098 2097
         $texto = 'RG';
2099 2098
         $aFont = array(
2100 2099
             'font' => $this->fontePadrao,
2101 2100
             'size' => 6,
2102 2101
             'style' => '');
2103
-        $this->pdf->textBox($x, $y+3, $w * 0.33, $h, $texto, $aFont, 'T', 'L', 0, '');
2102
+        $this->pdf->textBox($x, $y + 3, $w * 0.33, $h, $texto, $aFont, 'T', 'L', 0, '');
2104 2103
         $x += $w * 0.85;
2105 2104
 
2106 2105
         $this->pdf->line($x, $y + 11.5, $x, $y - 5); // LINHA VERTICAL PROXIMO AO CT-E
Please login to merge, or discard this patch.
src/CTe/Dacte.php 1 patch
Spacing   +6 added lines, -8 removed lines patch added patch discarded remove patch
@@ -945,7 +945,7 @@  discard block
 block discarded – undo
945 945
             $n = count($resp['message']);
946 946
             $alttot = $n * 15;
947 947
             $x = 10;
948
-            $y = $this->hPrint/2 - $alttot/2;
948
+            $y = $this->hPrint / 2 - $alttot / 2;
949 949
             $h = 15;
950 950
             $w = $maxW - (2 * $x);
951 951
             $this->pdf->settextcolor(90, 90, 90);
@@ -1271,8 +1271,7 @@  discard block
 block discarded – undo
1271 1271
             $texto = $this->getTagValue($this->enderExped, "xLgr") . ', ';
1272 1272
             $texto .= $this->getTagValue($this->enderExped, "nro");
1273 1273
             $texto .= $this->getTagValue($this->enderExped, "xCpl") != "" ?
1274
-                ' - ' . $this->getTagValue($this->enderExped, "xCpl") :
1275
-                '';
1274
+                ' - ' . $this->getTagValue($this->enderExped, "xCpl") : '';
1276 1275
         } else {
1277 1276
             $texto = '';
1278 1277
         }
@@ -1368,8 +1367,7 @@  discard block
 block discarded – undo
1368 1367
             $texto = $this->getTagValue($this->enderReceb, "xLgr") . ', ';
1369 1368
             $texto .= $this->getTagValue($this->enderReceb, "nro");
1370 1369
             $texto .= ($this->getTagValue($this->enderReceb, "xCpl") != "") ?
1371
-                ' - ' . $this->getTagValue($this->enderReceb, "xCpl") :
1372
-                '';
1370
+                ' - ' . $this->getTagValue($this->enderReceb, "xCpl") : '';
1373 1371
         } else {
1374 1372
             $texto = '';
1375 1373
         }
@@ -1625,7 +1623,7 @@  discard block
 block discarded – undo
1625 1623
         $qCarga = 0;
1626 1624
         foreach ($this->infQ as $infQ) {
1627 1625
             if ($this->getTagValue($infQ, "cUnid") == '00') {
1628
-                $qCarga += (float)$this->getTagValue($infQ, "qCarga");
1626
+                $qCarga += (float) $this->getTagValue($infQ, "qCarga");
1629 1627
             }
1630 1628
         }
1631 1629
         $texto = !empty($qCarga) ? number_format($qCarga, 3, ",", ".") : '';
@@ -1642,7 +1640,7 @@  discard block
 block discarded – undo
1642 1640
         $qCarga = 0;
1643 1641
         foreach ($this->infQ as $infQ) {
1644 1642
             if ($this->getTagValue($infQ, "cUnid") == '03') {
1645
-                $qCarga += (float)$this->getTagValue($infQ, "qCarga");
1643
+                $qCarga += (float) $this->getTagValue($infQ, "qCarga");
1646 1644
             }
1647 1645
         }
1648 1646
         $texto = !empty($qCarga) ? number_format($qCarga, 3, ",", ".") : '';
@@ -3572,7 +3570,7 @@  discard block
 block discarded – undo
3572 3570
         $y = $y + 5;
3573 3571
         $this->pdf->line($x, $y + 3, $w * 0.255, $y + 3); // LINHA HORIZONTAL ACIMA DO RG ABAIXO DO NOME
3574 3572
         $texto = 'RG';
3575
-        $aFont = ['font' => $this->fontePadrao,'size' => 6,'style' => ''];
3573
+        $aFont = ['font' => $this->fontePadrao, 'size' => 6, 'style' => ''];
3576 3574
         $this->pdf->textBox($x, $y + 3, $w * 0.33, $h, $texto, $aFont, 'T', 'L', 0, '');
3577 3575
         $x += $w * 0.85;
3578 3576
         $this->pdf->line($x, $y + 11.5, $x, $y - 5); // LINHA VERTICAL PROXIMO AO CT-E
Please login to merge, or discard this patch.