Code Duplication    Length = 7-7 lines in 4 locations

lib/Sii/Dte/PDF/Dte.php 4 locations

@@ 609-615 (lines=7) @@
606
            $this->setFont('', '', null);
607
            $this->MultiTexto($receptor['RznSocRecep'], $x+$offset+2, null, '', $x==10?105:0);
608
        }
609
        if (!empty($receptor['GiroRecep'])) {
610
            $this->setFont('', 'B', null);
611
            $this->Texto('Giro', $x);
612
            $this->Texto(':', $x+$offset);
613
            $this->setFont('', '', null);
614
            $this->MultiTexto($receptor['GiroRecep'], $x+$offset+2);
615
        }
616
        if (!empty($receptor['DirRecep'])) {
617
            $this->setFont('', 'B', null);
618
            $this->Texto('Dirección', $x);
@@ 645-651 (lines=7) @@
642
            $contacto[] = $receptor['Contacto'];
643
        if (!empty($receptor['CorreoRecep']))
644
            $contacto[] = $receptor['CorreoRecep'];
645
        if (!empty($contacto)) {
646
            $this->setFont('', 'B', null);
647
            $this->Texto('Contacto', $x);
648
            $this->Texto(':', $x+$offset);
649
            $this->setFont('', '', null);
650
            $this->MultiTexto(implode(' / ', $contacto), $x+$offset+2);
651
        }
652
        if (!empty($Encabezado['RUTSolicita'])) {
653
            list($rut, $dv) = explode('-', $Encabezado['RUTSolicita']);
654
            $this->setFont('', 'B', null);
@@ 681-687 (lines=7) @@
678
    protected function agregarTraslado($IndTraslado, array $Transporte = null, $x = 10, $offset = 22)
679
    {
680
        // agregar tipo de traslado
681
        if ($IndTraslado) {
682
            $this->setFont('', 'B', null);
683
            $this->Texto('Tipo oper.', $x);
684
            $this->Texto(':', $x+$offset);
685
            $this->setFont('', '', null);
686
            $this->MultiTexto($this->traslados[$IndTraslado], $x+$offset+2);
687
        }
688
        // agregar información de transporte
689
        if ($Transporte) {
690
            $transporte = '';
@@ 704-710 (lines=7) @@
701
                if (!empty($Transporte['Chofer']['RUTChofer']))
702
                    $transporte .= ' ('.$Transporte['Chofer']['RUTChofer'].')';
703
            }
704
            if ($transporte) {
705
                $this->setFont('', 'B', null);
706
                $this->Texto('Traslado', $x);
707
                $this->Texto(':', $x+$offset);
708
                $this->setFont('', '', null);
709
                $this->MultiTexto(ucfirst(trim($transporte)), $x+$offset+2);
710
            }
711
        }
712
        // agregar información de aduana
713
        if (!empty($Transporte['Aduana']) and is_array($Transporte['Aduana'])) {