Code Duplication    Length = 29-29 lines in 2 locations

src/CTe/Dacce.php 1 location

@@ 520-548 (lines=29) @@
517
     * @param number $x
518
     * @param number $y
519
     */
520
    protected function pFooter($x, $y)
521
    {
522
        $w = $this->wPrint;
523
        $texto = "Este documento é uma representação gráfica da CC-e e foi impresso apenas para sua"
524
            . " informação e não possue validade fiscal.\n A CC-e deve ser recebida e mantida em"
525
            . " arquivo eletrônico XML e pode ser consultada através dos Portais das SEFAZ.";
526
        $aFont = array(
527
            'font' => $this->fontePadrao,
528
            'size' => 10,
529
            'style' => 'I'
530
        );
531
        $this->pTextBox($x, $y, $w, 20, $texto, $aFont, 'T', 'C', 0, '', false);
532
        $y = $this->hPrint - 4;
533
        $texto = "Impresso em  " . date('d/m/Y   H:i:s');
534
        $w = $this->wPrint - 4;
535
        $aFont = array(
536
            'font' => $this->fontePadrao,
537
            'size' => 6,
538
            'style' => 'I'
539
        );
540
        $this->pTextBox($x, $y, $w, 4, $texto, $aFont, 'T', 'L', 0, '');
541
        $texto = "Dacce ver. " . $this->version . "  Powered by NFePHP (GNU/GPLv3 GNU/LGPLv3) © www.nfephp.org";
542
        $aFont = array(
543
            'font' => $this->fontePadrao,
544
            'size' => 6,
545
            'style' => 'I'
546
        );
547
        $this->pTextBox($x, $y, $w, 4, $texto, $aFont, 'T', 'R', 0, 'http://www.nfephp.org');
548
    }
549
550
    /**
551
     * printDocument

src/NFe/Dacce.php 1 location

@@ 478-506 (lines=29) @@
475
     * @param number $x
476
     * @param number $y
477
     */
478
    protected function pFooter($x, $y)
479
    {
480
        $w = $this->wPrint;
481
        $texto = "Este documento é uma representação gráfica da CC-e e foi impresso apenas para sua"
482
            . " informação e não possue validade fiscal.\n A CC-e deve ser recebida e mantida em"
483
            . " arquivo eletrônico XML e pode ser consultada através dos Portais das SEFAZ.";
484
        $aFont = array(
485
            'font' => $this->fontePadrao,
486
            'size' => 10,
487
            'style' => 'I'
488
        );
489
        $this->pTextBox($x, $y, $w, 20, $texto, $aFont, 'T', 'C', 0, '', false);
490
        $y = $this->hPrint - 4;
491
        $texto = "Impresso em  " . date('d/m/Y   H:i:s');
492
        $w = $this->wPrint - 4;
493
        $aFont = array(
494
            'font' => $this->fontePadrao,
495
            'size' => 6,
496
            'style' => 'I'
497
        );
498
        $this->pTextBox($x, $y, $w, 4, $texto, $aFont, 'T', 'L', 0, '');
499
        $texto = "Dacce ver. " . $this->version . "  Powered by NFePHP (GNU/GPLv3 GNU/LGPLv3) © www.nfephp.org";
500
        $aFont = array(
501
            'font' => $this->fontePadrao,
502
            'size' => 6,
503
            'style' => 'I'
504
        );
505
        $this->pTextBox($x, $y, $w, 4, $texto, $aFont, 'T', 'R', 0, 'http://www.nfephp.org');
506
    }
507
508
    /**
509
     * printDocument