Passed
Push — master ( e0a4ae...027f65 )
by Roberto
05:39 queued 02:34
created
src/NFe/Traits/TraitBlocoIII.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -134,7 +134,7 @@  discard block
 block discarded – undo
134 134
                 $y2 += $it->height;
135 135
             }
136 136
         }
137
-        $this->pdf->dashedHLine($this->margem, $this->bloco3H+$y, $this->wPrint, 0.1, 30);
137
+        $this->pdf->dashedHLine($this->margem, $this->bloco3H + $y, $this->wPrint, 0.1, 30);
138 138
         return $this->bloco3H + $y;
139 139
     }
140 140
     
@@ -147,7 +147,7 @@  discard block
 block discarded – undo
147 147
         if ($this->paperwidth < 70) {
148 148
             $fsize = 5;
149 149
         }
150
-        $hfont = (imagefontheight($fsize)/72)*15;
150
+        $hfont = (imagefontheight($fsize) / 72) * 15;
151 151
         $aFont = ['font'=> $this->fontePadrao, 'size' => $fsize, 'style' => ''];
152 152
         $htot = 0;
153 153
         if ($this->det->length == 0) {
@@ -185,6 +185,6 @@  discard block
 block discarded – undo
185 185
                 $htot += $h;
186 186
             }
187 187
         }
188
-        return $htot+2;
188
+        return $htot + 2;
189 189
     }
190 190
 }
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.
src/NFe/Traits/TraitBlocoIX.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 TraitBlocoIX
9 9
 {
10
+    /**
11
+     * @param integer $y
12
+     */
10 13
     protected function blocoIX($y)
11 14
     {
12 15
         //$this->bloco9H = 4;
Please login to merge, or discard this patch.