Code Duplication    Length = 8-8 lines in 2 locations

lib/Sii/PDF/Dte.php 2 locations

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