Completed
Push — master ( c36dee...d1009b )
by Roberto
03:31 queued 11s
created
src/NFe/Traits/TraitBlocoIX.php 2 patches
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
         $aFont = ['font'=> $this->fontePadrao, 'size' => 7, 'style' => ''];
Please login to merge, or discard this patch.
Spacing   +3 added lines, -3 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
             $this->infCpl,
40 40
             $aFont,
41 41
             'T',
@@ -66,7 +66,7 @@  discard block
 block discarded – undo
66 66
             $fsize = 5;
67 67
             $aFont = ['font'=> $this->fontePadrao, 'size' => 5, 'style' => ''];
68 68
         }
69
-        $hfont = (imagefontheight($fsize)/72)*13;
69
+        $hfont = (imagefontheight($fsize) / 72) * 13;
70 70
         $numlinhas = $pdf->getNumLines($this->infCpl, $wprint, $aFont);
71 71
         return (int) ($numlinhas * $hfont) + 2;
72 72
     }
Please login to merge, or discard this patch.
src/NFe/Danfce.php 1 patch
Spacing   +13 added lines, -13 removed lines patch added patch discarded remove patch
@@ -27,8 +27,8 @@  discard block
 block discarded – undo
27 27
     protected $paperwidth = 80;
28 28
     protected $descPercent = 0.38;
29 29
     protected $xml; // string XML NFe
30
-    protected $logomarca=''; // path para logomarca em jpg
31
-    protected $formatoChave="#### #### #### #### #### #### #### #### #### #### ####";
30
+    protected $logomarca = ''; // path para logomarca em jpg
31
+    protected $formatoChave = "#### #### #### #### #### #### #### #### #### #### ####";
32 32
     protected $nfeProc;
33 33
     protected $nfe;
34 34
     protected $infNFe;
@@ -221,10 +221,10 @@  discard block
 block discarded – undo
221 221
         //total inicial de paginas
222 222
         $totPag = 1;
223 223
         //largura imprimivel em mm: largura da folha menos as margens esq/direita
224
-        $this->wPrint = $maxW-($margEsq*2);
224
+        $this->wPrint = $maxW - ($margEsq * 2);
225 225
         //comprimento (altura) imprimivel em mm: altura da folha menos as margens
226 226
         //superior e inferior
227
-        $this->hPrint = $maxH-$margSup-$margInf;
227
+        $this->hPrint = $maxH - $margSup - $margInf;
228 228
         // estabelece contagem de paginas
229 229
         $this->pdf->aliasNbPages();
230 230
         $this->pdf->setMargins($margEsq, $margSup); // fixa as margens
@@ -248,7 +248,7 @@  discard block
 block discarded – undo
248 248
         $y = $this->blocoIX($y); //informações complementares e sobre tributos
249 249
         $y = $this->blocoX($y); //creditos
250 250
         
251
-        $ymark = $maxH/4;
251
+        $ymark = $maxH / 4;
252 252
         if ($this->tpAmb == 2) {
253 253
             $this->pdf->setTextColor(120, 120, 120);
254 254
             $texto = "SEM VALOR FISCAL\nEmitida em ambiente de homologacao";
@@ -257,7 +257,7 @@  discard block
 block discarded – undo
257 257
                 $this->margem,
258 258
                 $ymark,
259 259
                 $this->wPrint,
260
-                $maxH/2,
260
+                $maxH / 2,
261 261
                 $texto,
262 262
                 $aFont,
263 263
                 'T',
@@ -274,9 +274,9 @@  discard block
 block discarded – undo
274 274
             $aFont = ['font' => $this->fontePadrao, 'size' => 24, 'style' => 'B'];
275 275
             $this->pdf->textBox(
276 276
                 $this->margem,
277
-                $ymark+4,
277
+                $ymark + 4,
278 278
                 $this->wPrint,
279
-                $maxH/2,
279
+                $maxH / 2,
280 280
                 $texto,
281 281
                 $aFont,
282 282
                 'T',
@@ -288,9 +288,9 @@  discard block
 block discarded – undo
288 288
             $aFont = ['font' => $this->fontePadrao, 'size' => 10, 'style' => 'B'];
289 289
             $this->pdf->textBox(
290 290
                 $this->margem,
291
-                $ymark+14,
291
+                $ymark + 14,
292 292
                 $this->wPrint,
293
-                $maxH/2,
293
+                $maxH / 2,
294 294
                 $this->submessage,
295 295
                 $aFont,
296 296
                 'T',
@@ -318,7 +318,7 @@  discard block
 block discarded – undo
318 318
             $y = $this->blocoVIII($y); //QRCODE
319 319
             $y = $this->blocoIX($y); //informações sobre tributos
320 320
             $y = $this->blocoX($y); //creditos
321
-            $ymark = $maxH/4;
321
+            $ymark = $maxH / 4;
322 322
             if ($this->tpAmb == 2) {
323 323
                 $this->pdf->setTextColor(120, 120, 120);
324 324
                 $texto = "SEM VALOR FISCAL\nEmitida em ambiente de homologacao";
@@ -327,7 +327,7 @@  discard block
 block discarded – undo
327 327
                     $this->margem,
328 328
                     $ymark,
329 329
                     $this->wPrint,
330
-                    $maxH/2,
330
+                    $maxH / 2,
331 331
                     $texto,
332 332
                     $aFont,
333 333
                     'T',
@@ -413,7 +413,7 @@  discard block
 block discarded – undo
413 413
             } elseif (!empty($retEvento = $this->nfeProc->getElementsByTagName('retEvento')->item(0))) {
414 414
                 $infEvento = $retEvento->getElementsByTagName('infEvento')->item(0);
415 415
                 $cStat = $this->getTagValue($infEvento, "cStat");
416
-                $tpEvento= $this->getTagValue($infEvento, "tpEvento");
416
+                $tpEvento = $this->getTagValue($infEvento, "tpEvento");
417 417
                 $dhEvento = date(
418 418
                     "d/m/Y H:i:s",
419 419
                     $this->toTimestamp(
Please login to merge, or discard this patch.