Passed
Pull Request — master (#514)
by
unknown
01:47
created
src/Legacy/FPDF/Fpdf181.php 1 patch
Spacing   +56 added lines, -56 removed lines patch added patch discarded remove patch
@@ -7,64 +7,64 @@  discard block
 block discarded – undo
7 7
     const FPDF_VERSION = '1.81';
8 8
     const FPDF_FONTPATH = 'font/';
9 9
 
10
-    protected $page;               // current page number
11
-    protected $n;                  // current object number
12
-    protected $offsets;            // array of object offsets
13
-    protected $buffer;             // buffer holding in-memory PDF
14
-    protected $pages;              // array containing pages
15
-    protected $state;              // current document state
16
-    protected $compress;           // compression flag
17
-    public $k;                  // scale factor (number of points in user unit)
18
-    protected $defOrientation;     // default orientation
19
-    protected $curOrientation;     // current orientation
20
-    protected $stdPageSizes;       // standard page sizes
21
-    protected $defPageSize;        // default page size
22
-    protected $curPageSize;        // current page size
23
-    protected $curRotation;        // current page rotation
24
-    protected $pageInfo;           // page-related data
10
+    protected $page; // current page number
11
+    protected $n; // current object number
12
+    protected $offsets; // array of object offsets
13
+    protected $buffer; // buffer holding in-memory PDF
14
+    protected $pages; // array containing pages
15
+    protected $state; // current document state
16
+    protected $compress; // compression flag
17
+    public $k; // scale factor (number of points in user unit)
18
+    protected $defOrientation; // default orientation
19
+    protected $curOrientation; // current orientation
20
+    protected $stdPageSizes; // standard page sizes
21
+    protected $defPageSize; // default page size
22
+    protected $curPageSize; // current page size
23
+    protected $curRotation; // current page rotation
24
+    protected $pageInfo; // page-related data
25 25
     protected $wPt;
26
-    protected $hPt;          // dimensions of current page in points
26
+    protected $hPt; // dimensions of current page in points
27 27
     protected $w;
28
-    protected $h;              // dimensions of current page in user unit
29
-    protected $lMargin;            // left margin
30
-    protected $tMargin;            // top margin
31
-    protected $rMargin;            // right margin
32
-    protected $bMargin;            // page break margin
33
-    protected $cMargin;            // cell margin
28
+    protected $h; // dimensions of current page in user unit
29
+    protected $lMargin; // left margin
30
+    protected $tMargin; // top margin
31
+    protected $rMargin; // right margin
32
+    protected $bMargin; // page break margin
33
+    protected $cMargin; // cell margin
34 34
     protected $x;
35
-    protected $y;              // current position in user unit
36
-    protected $lasth;              // height of last printed cell
37
-    protected $lineWidth;          // line width in user unit
38
-    protected $fontpath;           // path containing fonts
39
-    protected $coreFonts;          // array of core font names
40
-    protected $fonts;              // array of used fonts
41
-    protected $fontFiles;          // array of font files
42
-    protected $encodings;          // array of encodings
43
-    protected $cmaps;              // array of ToUnicode CMaps
44
-    protected $fontFamily;         // current font family
45
-    protected $fontStyle;          // current font style
46
-    protected $underline;          // underlining flag
47
-    protected $currentFont;        // current font info
48
-    protected $fontSizePt;         // current font size in points
49
-    public $fontSize;           // current font size in user unit
50
-    protected $drawColor;          // commands for drawing color
51
-    protected $fillColor;          // commands for filling color
52
-    protected $textColor;          // commands for text color
53
-    protected $colorFlag;          // indicates whether fill and text colors are different
54
-    protected $withAlpha;          // indicates whether alpha channel is used
55
-    protected $ws;                 // word spacing
56
-    protected $images;             // array of used images
57
-    protected $pageLinks;          // array of links in pages
58
-    protected $links;              // array of internal links
59
-    protected $autoPageBreak;      // automatic page breaking
60
-    protected $pageBreakTrigger;   // threshold used to trigger page breaks
61
-    protected $inHeader;           // flag set when processing header
62
-    protected $infooter;           // flag set when processing footer
63
-    protected $aliasNbPages;       // alias for total number of pages
64
-    protected $zoomMode;           // zoom display mode
65
-    protected $layoutMode;         // layout display mode
66
-    protected $metadata;           // document properties
67
-    protected $pdfVersion;         // PDF version number
35
+    protected $y; // current position in user unit
36
+    protected $lasth; // height of last printed cell
37
+    protected $lineWidth; // line width in user unit
38
+    protected $fontpath; // path containing fonts
39
+    protected $coreFonts; // array of core font names
40
+    protected $fonts; // array of used fonts
41
+    protected $fontFiles; // array of font files
42
+    protected $encodings; // array of encodings
43
+    protected $cmaps; // array of ToUnicode CMaps
44
+    protected $fontFamily; // current font family
45
+    protected $fontStyle; // current font style
46
+    protected $underline; // underlining flag
47
+    protected $currentFont; // current font info
48
+    protected $fontSizePt; // current font size in points
49
+    public $fontSize; // current font size in user unit
50
+    protected $drawColor; // commands for drawing color
51
+    protected $fillColor; // commands for filling color
52
+    protected $textColor; // commands for text color
53
+    protected $colorFlag; // indicates whether fill and text colors are different
54
+    protected $withAlpha; // indicates whether alpha channel is used
55
+    protected $ws; // word spacing
56
+    protected $images; // array of used images
57
+    protected $pageLinks; // array of links in pages
58
+    protected $links; // array of internal links
59
+    protected $autoPageBreak; // automatic page breaking
60
+    protected $pageBreakTrigger; // threshold used to trigger page breaks
61
+    protected $inHeader; // flag set when processing header
62
+    protected $infooter; // flag set when processing footer
63
+    protected $aliasNbPages; // alias for total number of pages
64
+    protected $zoomMode; // zoom display mode
65
+    protected $layoutMode; // layout display mode
66
+    protected $metadata; // document properties
67
+    protected $pdfVersion; // PDF version number
68 68
 
69 69
     public function __construct($orientation = 'P', $unit = 'mm', $size = 'A4')
70 70
     {
@@ -97,7 +97,7 @@  discard block
 block discarded – undo
97 97
         $this->withAlpha = false;
98 98
         $this->ws = 0;
99 99
 
100
-        $this->fontpath = __DIR__. FPDF_FONTPATH;
100
+        $this->fontpath = __DIR__ . FPDF_FONTPATH;
101 101
 
102 102
         // Core fonts
103 103
         $this->coreFonts = [
Please login to merge, or discard this patch.
src/NFe/Traits/TraitBlocoII.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -34,7 +34,7 @@  discard block
 block discarded – undo
34 34
             $aFont = ['font'=> $this->fontePadrao, 'size' => 7, 'style' => ''];
35 35
             $y1 += $this->pdf->textBox(
36 36
                 $this->margem,
37
-                $y+$y1,
37
+                $y + $y1,
38 38
                 $this->wPrint,
39 39
                 2,
40 40
                 $texto,
@@ -50,7 +50,7 @@  discard block
 block discarded – undo
50 50
             $aFont = ['font'=> $this->fontePadrao, 'size' => 10, 'style' => 'B'];
51 51
             $y2 = $this->pdf->textBox(
52 52
                 $this->margem,
53
-                $y+$y1,
53
+                $y + $y1,
54 54
                 $this->wPrint,
55 55
                 4,
56 56
                 $texto,
@@ -66,7 +66,7 @@  discard block
 block discarded – undo
66 66
             $aFont = ['font'=> $this->fontePadrao, 'size' => 8, 'style' => 'I'];
67 67
             $this->pdf->textBox(
68 68
                 $this->margem,
69
-                $y+$y1+$y2,
69
+                $y + $y1 + $y2,
70 70
                 $this->wPrint,
71 71
                 3,
72 72
                 $texto,
@@ -83,7 +83,7 @@  discard block
 block discarded – undo
83 83
             $aFont = ['font'=> $this->fontePadrao, 'size' => 7, 'style' => ''];
84 84
             $y1 = $this->pdf->textBox(
85 85
                 $this->margem,
86
-                $this->bloco1H-2,
86
+                $this->bloco1H - 2,
87 87
                 $this->wPrint,
88 88
                 $this->bloco2H,
89 89
                 $texto,
@@ -95,7 +95,7 @@  discard block
 block discarded – undo
95 95
                 true
96 96
             );
97 97
         }
98
-        $this->pdf->dashedHLine($this->margem, $this->bloco2H+$y, $this->wPrint, 0.1, 30);
98
+        $this->pdf->dashedHLine($this->margem, $this->bloco2H + $y, $this->wPrint, 0.1, 30);
99 99
         return $this->bloco2H + $y;
100 100
     }
101 101
 }
Please login to merge, or discard this patch.
src/NFe/Traits/TraitBlocoVI.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -30,11 +30,11 @@  discard block
 block discarded – undo
30 30
             false
31 31
         );
32 32
         
33
-        $texto =  $this->urlChave;
33
+        $texto = $this->urlChave;
34 34
         $aFont = ['font'=> $this->fontePadrao, 'size' => 7, 'style' => ''];
35 35
         $y2 = $this->pdf->textBox(
36 36
             $this->margem,
37
-            $y+$y1,
37
+            $y + $y1,
38 38
             $this->wPrint,
39 39
             2,
40 40
             $texto,
@@ -46,12 +46,12 @@  discard block
 block discarded – undo
46 46
             false
47 47
         );
48 48
         
49
-        $chave =  str_replace('NFe', '', $this->infNFe->getAttribute("Id"));
49
+        $chave = str_replace('NFe', '', $this->infNFe->getAttribute("Id"));
50 50
         $texto = $this->formatField($chave, $this->formatoChave);
51 51
         $aFont = ['font'=> $this->fontePadrao, 'size' => 7, 'style' => ''];
52 52
         $y3 = $this->pdf->textBox(
53 53
             $this->margem,
54
-            $y+$y1+$y2+1,
54
+            $y + $y1 + $y2 + 1,
55 55
             $this->wPrint,
56 56
             2,
57 57
             $texto,
@@ -62,7 +62,7 @@  discard block
 block discarded – undo
62 62
             '',
63 63
             true
64 64
         );
65
-        $this->pdf->dashedHLine($this->margem, $this->bloco6H+$y, $this->wPrint, 0.1, 30);
65
+        $this->pdf->dashedHLine($this->margem, $this->bloco6H + $y, $this->wPrint, 0.1, 30);
66 66
         return $this->bloco6H + $y;
67 67
     }
68 68
 }
Please login to merge, or discard this patch.
src/NFe/Traits/TraitBlocoVIII.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -19,7 +19,7 @@  discard block
 block discarded – undo
19 19
         */
20 20
         
21 21
         $maxW = $this->wPrint;
22
-        $w = ($maxW*1)+4;
22
+        $w = ($maxW * 1) + 4;
23 23
         $barcode = new Barcode();
24 24
         $bobj = $barcode->getBarcodeObj(
25 25
             'QRCODE,M',
@@ -33,10 +33,10 @@  discard block
 block discarded – undo
33 33
         $wQr = 50;
34 34
         $hQr = 50;
35 35
         $yQr = ($y);
36
-        $xQr = ($w/2) - ($wQr/2);
36
+        $xQr = ($w / 2) - ($wQr / 2);
37 37
         $pic = 'data://text/plain;base64,' . base64_encode($qrcode);
38 38
         $info = getimagesize($pic);
39 39
         $this->pdf->image($pic, $xQr, $yQr, $wQr, $hQr, 'PNG');
40
-        return $this->bloco8H+$y;
40
+        return $this->bloco8H + $y;
41 41
     }
42 42
 }
Please login to merge, or discard this patch.
src/NFe/Traits/TraitBlocoV.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -58,11 +58,11 @@
 block discarded – undo
58 58
         
59 59
         $texto = "Troco R$";
60 60
         $this->pdf->textBox($this->margem, $z, $this->wPrint, 3, $texto, $aFont, 'T', 'L', false, '', false);
61
-        $texto =  !empty($this->vTroco) ? number_format((float) $this->vTroco, 2, ',', '.') : '0,00';
61
+        $texto = !empty($this->vTroco) ? number_format((float) $this->vTroco, 2, ',', '.') : '0,00';
62 62
         $y1 = $this->pdf->textBox($this->margem, $z, $this->wPrint, 3, $texto, $aFont, 'T', 'R', false, '', false);
63 63
         
64 64
         
65
-        $this->pdf->dashedHLine($this->margem, $this->bloco5H+$y, $this->wPrint, 0.1, 30);
65
+        $this->pdf->dashedHLine($this->margem, $this->bloco5H + $y, $this->wPrint, 0.1, 30);
66 66
         return $this->bloco5H + $y;
67 67
     }
68 68
     
Please login to merge, or discard this patch.
src/NFe/Traits/TraitBlocoIII.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -131,7 +131,7 @@  discard block
 block discarded – undo
131 131
                 $y2 += $it->height;
132 132
             }
133 133
         }
134
-        $this->pdf->dashedHLine($this->margem, $this->bloco3H+$y, $this->wPrint, 0.1, 30);
134
+        $this->pdf->dashedHLine($this->margem, $this->bloco3H + $y, $this->wPrint, 0.1, 30);
135 135
         return $this->bloco3H + $y;
136 136
     }
137 137
     
@@ -144,7 +144,7 @@  discard block
 block discarded – undo
144 144
         if ($this->paperwidth < 70) {
145 145
             $fsize = 5;
146 146
         }
147
-        $hfont = (imagefontheight($fsize)/72)*15;
147
+        $hfont = (imagefontheight($fsize) / 72) * 15;
148 148
         $aFont = ['font'=> $this->fontePadrao, 'size' => $fsize, 'style' => ''];
149 149
         $htot = 0;
150 150
         if ($this->det->length == 0) {
@@ -169,7 +169,7 @@  discard block
 block discarded – undo
169 169
                     $p = $xProd;
170 170
                     $n = $tempPDF->wordWrap($p, $descriptionWidth);
171 171
                 }
172
-                $h = ($hfont * $n)+0.5;
172
+                $h = ($hfont * $n) + 0.5;
173 173
                 $this->itens[] = [
174 174
                     "codigo" => $cProd,
175 175
                     "desc" => $xProd,
@@ -182,6 +182,6 @@  discard block
 block discarded – undo
182 182
                 $htot += $h;
183 183
             }
184 184
         }
185
-        return $htot+2;
185
+        return $htot + 2;
186 186
     }
187 187
 }
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/NFe/DanfeSimples.php 2 patches
Indentation   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -305,7 +305,7 @@  discard block
 block discarded – undo
305 305
             $c1,
306 306
             5,
307 307
             "{$this->nfeArray['NFe']['infNFe']['ide']['tpNF']} - " .
308
-                                  ($this->nfeArray['NFe']['infNFe']['ide']['tpNF']==1 ? 'Saida':'Entrada'),
308
+                                    ($this->nfeArray['NFe']['infNFe']['ide']['tpNF']==1 ? 'Saida':'Entrada'),
309 309
             1,
310 310
             0,
311 311
             'C',
@@ -396,8 +396,8 @@  discard block
 block discarded – undo
396 396
         );
397 397
 
398 398
         $enderecoEmit  = "{$this->nfeArray['NFe']['infNFe']['emit']['enderEmit']['xMun']}"
399
-                       . " / {$this->nfeArray['NFe']['infNFe']['emit']['enderEmit']['UF']}"
400
-                       . " - CEP {$this->nfeArray['NFe']['infNFe']['emit']['enderEmit']['CEP']}";
399
+                        . " / {$this->nfeArray['NFe']['infNFe']['emit']['enderEmit']['UF']}"
400
+                        . " - CEP {$this->nfeArray['NFe']['infNFe']['emit']['enderEmit']['CEP']}";
401 401
 
402 402
         // LINHA 9
403 403
         $this->pdf->setFont('Arial', '', $pequeno ? 9 : 10);
@@ -443,8 +443,8 @@  discard block
 block discarded – undo
443 443
                 $enderecoLinha2 .= "{$this->nfeArray['NFe']['infNFe']['entrega']['xCpl']} - ";
444 444
             }
445 445
             $enderecoLinha2 .= "{$this->nfeArray['NFe']['infNFe']['entrega']['xMun']}"
446
-                             . " / {$this->nfeArray['NFe']['infNFe']['entrega']['UF']}"
447
-                             . " - CEP {$this->nfeArray['NFe']['infNFe']['entrega']['CEP']}";
446
+                                . " / {$this->nfeArray['NFe']['infNFe']['entrega']['UF']}"
447
+                                . " - CEP {$this->nfeArray['NFe']['infNFe']['entrega']['CEP']}";
448 448
         } else {
449 449
             $enderecoLinha1 = "{$this->nfeArray['NFe']['infNFe']['dest']['enderDest']['xLgr']}";
450 450
             if (!empty($this->nfeArray['NFe']['infNFe']['dest']['enderDest']['nro'])) {
@@ -455,8 +455,8 @@  discard block
 block discarded – undo
455 455
                 $enderecoLinha2 .= "{$this->nfeArray['NFe']['infNFe']['dest']['enderDest']['xCpl']} - ";
456 456
             }
457 457
             $enderecoLinha2 .= "{$this->nfeArray['NFe']['infNFe']['dest']['enderDest']['xMun']}"
458
-                             . " / {$this->nfeArray['NFe']['infNFe']['dest']['enderDest']['UF']}"
459
-                             . " - CEP {$this->nfeArray['NFe']['infNFe']['dest']['enderDest']['CEP']}";
458
+                                . " / {$this->nfeArray['NFe']['infNFe']['dest']['enderDest']['UF']}"
459
+                                . " - CEP {$this->nfeArray['NFe']['infNFe']['dest']['enderDest']['CEP']}";
460 460
         }
461 461
 
462 462
         $this->pdf->setFont('Arial', '', $pequeno ? 9 : 10);
Please login to merge, or discard this patch.
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -272,7 +272,7 @@  discard block
 block discarded – undo
272 272
 
273 273
         foreach ($this->nfeArray['NFe']['infNFe']['transp']['vol'] as $vol) {
274 274
 
275
-            $espVolume = isset($vol['esp']) ? $vol['esp'] : 'VOLUME';  //Caso não esteja especificado no xml, irá ser mostrado no danfe a palavra VOLUME
275
+            $espVolume = isset($vol['esp']) ? $vol['esp'] : 'VOLUME'; //Caso não esteja especificado no xml, irá ser mostrado no danfe a palavra VOLUME
276 276
 
277 277
             if (!isset($volumes[$espVolume])) {
278 278
                 $volumes[$espVolume] = 0;
@@ -310,7 +310,7 @@  discard block
 block discarded – undo
310 310
             $c1,
311 311
             5,
312 312
             "{$this->nfeArray['NFe']['infNFe']['ide']['tpNF']} - " .
313
-                                  ($this->nfeArray['NFe']['infNFe']['ide']['tpNF']==1 ? 'Saida':'Entrada'),
313
+                                  ($this->nfeArray['NFe']['infNFe']['ide']['tpNF'] == 1 ? 'Saida' : 'Entrada'),
314 314
             1,
315 315
             0,
316 316
             'C',
@@ -361,7 +361,7 @@  discard block
 block discarded – undo
361 361
             //que uma impressora de 203dpi consiga imprimir um código legível
362 362
             $this->pdf->code128($this->margesq * 2, $y, $chave, ($this->maxW - $this->margesq * 4), 15);
363 363
         } else {
364
-            $this->pdf->code128(($c1/2), $y, $chave, ($c1 * 3), 15);
364
+            $this->pdf->code128(($c1 / 2), $y, $chave, ($c1 * 3), 15);
365 365
         }
366 366
         $this->pdf->setFillColor(255, 255, 255);
367 367
         $this->pdf->ln();
@@ -400,7 +400,7 @@  discard block
 block discarded – undo
400 400
             1
401 401
         );
402 402
 
403
-        $enderecoEmit  = "{$this->nfeArray['NFe']['infNFe']['emit']['enderEmit']['xMun']}"
403
+        $enderecoEmit = "{$this->nfeArray['NFe']['infNFe']['emit']['enderEmit']['xMun']}"
404 404
                        . " / {$this->nfeArray['NFe']['infNFe']['emit']['enderEmit']['UF']}"
405 405
                        . " - CEP {$this->nfeArray['NFe']['infNFe']['emit']['enderEmit']['CEP']}";
406 406
 
Please login to merge, or discard this patch.
src/NFe/Traits/TraitBlocoIX.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -33,9 +33,9 @@  discard block
 block discarded – undo
33 33
         }
34 34
         $this->pdf->textBox(
35 35
             $this->margem,
36
-            $y+3,
36
+            $y + 3,
37 37
             $this->wPrint,
38
-            $this->bloco9H-4,
38
+            $this->bloco9H - 4,
39 39
             str_replace(";", "\n", $this->infCpl),
40 40
             $aFont,
41 41
             'T',
@@ -67,8 +67,8 @@  discard block
 block discarded – undo
67 67
             $aFont = ['font'=> $this->fontePadrao, 'size' => 5, 'style' => ''];
68 68
         }
69 69
         $linhas = str_replace(';', "\n", $this->infCpl);
70
-        $hfont = (imagefontheight($fsize)/72)*13;
71
-        $numlinhas = $pdf->getNumLines($linhas, $wprint, $aFont)+2;
70
+        $hfont = (imagefontheight($fsize) / 72) * 13;
71
+        $numlinhas = $pdf->getNumLines($linhas, $wprint, $aFont) + 2;
72 72
         return (int) ($numlinhas * $hfont) + 2;
73 73
     }
74 74
 }
Please login to merge, or discard this patch.