Code Duplication    Length = 8-8 lines in 2 locations

lib/Sii/PDF/Dte.php 2 locations

@@ 743-750 (lines=8) @@
740
    protected function agregarReceptor(array $Encabezado, $x = 10, $offset = 22)
741
    {
742
        $receptor = $Encabezado['Receptor'];
743
        if (!empty($receptor['RUTRecep']) and $receptor['RUTRecep']!='66666666-6') {
744
            list($rut, $dv) = explode('-', $receptor['RUTRecep']);
745
            $this->setFont('', 'B', null);
746
            $this->Texto('R.U.T.', $x);
747
            $this->Texto(':', $x+$offset);
748
            $this->setFont('', '', null);
749
            $this->MultiTexto($this->num($rut).'-'.$dv, $x+$offset+2);
750
        }
751
        if (!empty($receptor['RznSocRecep'])) {
752
            $this->setFont('', 'B', null);
753
            $this->Texto('Señor(es)', $x);
@@ 801-808 (lines=8) @@
798
            $this->setFont('', '', null);
799
            $this->MultiTexto(implode(' / ', $contacto), $x+$offset+2);
800
        }
801
        if (!empty($Encabezado['RUTSolicita'])) {
802
            list($rut, $dv) = explode('-', $Encabezado['RUTSolicita']);
803
            $this->setFont('', 'B', null);
804
            $this->Texto('RUT solicita', $x);
805
            $this->Texto(':', $x+$offset);
806
            $this->setFont('', '', null);
807
            $this->MultiTexto($this->num($rut).'-'.$dv, $x+$offset+2);
808
        }
809
        if (!empty($receptor['CdgIntRecep'])) {
810
            $this->setFont('', 'B', null);
811
            $this->Texto('Cód. recep.', $x);