Passed
Push — master ( 9896fb...0bec90 )
by Roberto
05:27 queued 02:47
created
src/NFe/Traits/TraitBlocoVIII.php 2 patches
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -8,6 +8,9 @@
 block discarded – undo
8 8
  */
9 9
 trait TraitBlocoVIII
10 10
 {
11
+    /**
12
+     * @param integer $y
13
+     */
11 14
     protected function blocoVIII($y)
12 15
     {
13 16
         $this->bloco8H = 50;
Please login to merge, or discard this 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/TraitBlocoX.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -7,6 +7,9 @@
 block discarded – undo
7 7
  */
8 8
 trait TraitBlocoX
9 9
 {
10
+    /**
11
+     * @param integer $y
12
+     */
10 13
     protected function blocoX($y)
11 14
     {
12 15
         $this->bloco9H = 3;
Please login to merge, or discard this patch.
src/NFe/Traits/TraitBlocoI.php 1 patch
Spacing   +12 added lines, -12 removed lines patch added patch discarded remove patch
@@ -31,13 +31,13 @@  discard block
 block discarded – undo
31 31
             $xImg = $this->margem;
32 32
             $yImg = $this->margem + 1;
33 33
             $logoInfo = getimagesize($this->logomarca);
34
-            $logoWmm = ($logoInfo[0]/72)*25.4;
35
-            $logoHmm = ($logoInfo[1]/72)*25.4;
36
-            $nImgW = $this->wPrint/4;
37
-            $nImgH = round($logoHmm * ($nImgW/$logoWmm), 0);
34
+            $logoWmm = ($logoInfo[0] / 72) * 25.4;
35
+            $logoHmm = ($logoInfo[1] / 72) * 25.4;
36
+            $nImgW = $this->wPrint / 4;
37
+            $nImgH = round($logoHmm * ($nImgW / $logoWmm), 0);
38 38
             if ($nImgH > $maxHimg) {
39 39
                 $nImgH = $maxHimg;
40
-                $nImgW = round($logoWmm * ($nImgH/$logoHmm), 0);
40
+                $nImgW = round($logoWmm * ($nImgH / $logoHmm), 0);
41 41
             }
42 42
             $xRs = ($nImgW) + $this->margem;
43 43
             $wRs = ($this->wPrint - $nImgW);
@@ -52,10 +52,10 @@  discard block
 block discarded – undo
52 52
         $aFont = ['font'=>$this->fontePadrao, 'size' => 8, 'style' => ''];
53 53
         $texto = "{$emitRazao}";
54 54
         $y += $this->pdf->textBox(
55
-            $xRs+2,
55
+            $xRs + 2,
56 56
             $this->margem,
57
-            $wRs-2,
58
-            $this->bloco1H-$this->margem-1,
57
+            $wRs - 2,
58
+            $this->bloco1H - $this->margem - 1,
59 59
             $texto,
60 60
             $aFont,
61 61
             'T',
@@ -68,13 +68,13 @@  discard block
 block discarded – undo
68 68
             $aFont = ['font'=>$this->fontePadrao, 'size' => $this->pdf->fontSizePt, 'style' => ''];
69 69
         }
70 70
         $texto = "CNPJ: {$emitCnpj} IE: {$emitIE}";
71
-        $y += $this->pdf->textBox($xRs+2, $y, $wRs-2, 3, $texto, $aFont, 'T', $alignH, false, '', true);
71
+        $y += $this->pdf->textBox($xRs + 2, $y, $wRs - 2, 3, $texto, $aFont, 'T', $alignH, false, '', true);
72 72
         $texto = $emitLgr . ", " . $emitNro;
73
-        $y += $this->pdf->textBox($xRs+2, $y, $wRs-2, 3, $texto, $aFont, 'T', $alignH, false, '', true);
73
+        $y += $this->pdf->textBox($xRs + 2, $y, $wRs - 2, 3, $texto, $aFont, 'T', $alignH, false, '', true);
74 74
         $texto = $emitBairro;
75
-        $y += $this->pdf->textBox($xRs+2, $y, $wRs-2, 3, $texto, $aFont, 'T', $alignH, false, '', true);
75
+        $y += $this->pdf->textBox($xRs + 2, $y, $wRs - 2, 3, $texto, $aFont, 'T', $alignH, false, '', true);
76 76
         $texto = $emitMun . "-" . $emitUF;
77
-        $y += $this->pdf->textBox($xRs+2, $y, $wRs-2, 3, $texto, $aFont, 'T', $alignH, false, '', true);
77
+        $y += $this->pdf->textBox($xRs + 2, $y, $wRs - 2, 3, $texto, $aFont, 'T', $alignH, false, '', true);
78 78
         $this->pdf->dashedHLine($this->margem, $this->bloco1H, $this->wPrint, 0.1, 30);
79 79
         return $this->bloco1H;
80 80
     }
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/TraitBlocoIV.php 1 patch
Spacing   +19 added lines, -19 removed lines patch added patch discarded remove patch
@@ -24,7 +24,7 @@  discard block
 block discarded – undo
24 24
         $this->pdf->textBox(
25 25
             $this->margem,
26 26
             $y,
27
-            $this->wPrint/2,
27
+            $this->wPrint / 2,
28 28
             3,
29 29
             $texto,
30 30
             $aFont,
@@ -35,9 +35,9 @@  discard block
 block discarded – undo
35 35
             false
36 36
         );
37 37
         $y1 = $this->pdf->textBox(
38
-            $this->margem+$this->wPrint/2,
38
+            $this->margem + $this->wPrint / 2,
39 39
             $y,
40
-            $this->wPrint/2,
40
+            $this->wPrint / 2,
41 41
             3,
42 42
             $qtd,
43 43
             $aFont,
@@ -51,8 +51,8 @@  discard block
 block discarded – undo
51 51
         $texto = "Valor Total R$";
52 52
         $this->pdf->textBox(
53 53
             $this->margem,
54
-            $y+$y1,
55
-            $this->wPrint/2,
54
+            $y + $y1,
55
+            $this->wPrint / 2,
56 56
             3,
57 57
             $texto,
58 58
             $aFont,
@@ -64,9 +64,9 @@  discard block
 block discarded – undo
64 64
         );
65 65
         $texto = number_format((float) $bruto, 2, ',', '.');
66 66
         $y2 = $this->pdf->textBox(
67
-            $this->margem+$this->wPrint/2,
68
-            $y+$y1,
69
-            $this->wPrint/2,
67
+            $this->margem + $this->wPrint / 2,
68
+            $y + $y1,
69
+            $this->wPrint / 2,
70 70
             3,
71 71
             $texto,
72 72
             $aFont,
@@ -80,8 +80,8 @@  discard block
 block discarded – undo
80 80
         $texto = "Desconto R$";
81 81
         $this->pdf->textBox(
82 82
             $this->margem,
83
-            $y+$y1+$y2,
84
-            $this->wPrint/2,
83
+            $y + $y1 + $y2,
84
+            $this->wPrint / 2,
85 85
             3,
86 86
             $texto,
87 87
             $aFont,
@@ -93,9 +93,9 @@  discard block
 block discarded – undo
93 93
         );
94 94
         $texto = number_format((float) $desconto, 2, ',', '.');
95 95
         $y3 = $this->pdf->textBox(
96
-            $this->margem+$this->wPrint/2,
97
-            $y+$y1+$y2,
98
-            $this->wPrint/2,
96
+            $this->margem + $this->wPrint / 2,
97
+            $y + $y1 + $y2,
98
+            $this->wPrint / 2,
99 99
             3,
100 100
             $texto,
101 101
             $aFont,
@@ -113,8 +113,8 @@  discard block
 block discarded – undo
113 113
         $texto = "Valor a Pagar R$";
114 114
         $this->pdf->textBox(
115 115
             $this->margem,
116
-            $y+$y1+$y2+$y3,
117
-            $this->wPrint/2,
116
+            $y + $y1 + $y2 + $y3,
117
+            $this->wPrint / 2,
118 118
             3,
119 119
             $texto,
120 120
             $aFont,
@@ -126,9 +126,9 @@  discard block
 block discarded – undo
126 126
         );
127 127
         $texto = number_format((float) $valor, 2, ',', '.');
128 128
         $y4 = $this->pdf->textBox(
129
-            $this->margem+$this->wPrint/2,
130
-            $y+$y1+$y2+$y3,
131
-            $this->wPrint/2,
129
+            $this->margem + $this->wPrint / 2,
130
+            $y + $y1 + $y2 + $y3,
131
+            $this->wPrint / 2,
132 132
             3,
133 133
             $texto,
134 134
             $aFont,
@@ -139,7 +139,7 @@  discard block
 block discarded – undo
139 139
             false
140 140
         );
141 141
         
142
-        $this->pdf->dashedHLine($this->margem, $this->bloco4H+$y, $this->wPrint, 0.1, 30);
142
+        $this->pdf->dashedHLine($this->margem, $this->bloco4H + $y, $this->wPrint, 0.1, 30);
143 143
         return $this->bloco4H + $y;
144 144
     }
145 145
 }
Please login to merge, or discard this patch.