Code Duplication    Length = 7-7 lines in 4 locations

lib/Sii/PDF/Dte.php 4 locations

@@ 760-766 (lines=7) @@
757
            $this->setFont('', '', null);
758
            $this->MultiTexto($receptor['RznSocRecep'], $x+$offset+2, null, '', $x==10?105:0);
759
        }
760
        if (!empty($receptor['GiroRecep'])) {
761
            $this->setFont('', 'B', null);
762
            $this->Texto('Giro', $x);
763
            $this->Texto(':', $x+$offset);
764
            $this->setFont('', '', null);
765
            $this->MultiTexto($receptor['GiroRecep'], $x+$offset+2);
766
        }
767
        if (!empty($receptor['DirRecep'])) {
768
            $this->setFont('', 'B', null);
769
            $this->Texto('Dirección', $x);
@@ 796-802 (lines=7) @@
793
            $contacto[] = $receptor['Contacto'];
794
        if (!empty($receptor['CorreoRecep']))
795
            $contacto[] = $receptor['CorreoRecep'];
796
        if (!empty($contacto)) {
797
            $this->setFont('', 'B', null);
798
            $this->Texto('Contacto', $x);
799
            $this->Texto(':', $x+$offset);
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);
@@ 832-838 (lines=7) @@
829
    protected function agregarTraslado($IndTraslado, array $Transporte = null, $x = 10, $offset = 22)
830
    {
831
        // agregar tipo de traslado
832
        if ($IndTraslado) {
833
            $this->setFont('', 'B', null);
834
            $this->Texto('Tipo oper.', $x);
835
            $this->Texto(':', $x+$offset);
836
            $this->setFont('', '', null);
837
            $this->MultiTexto($this->traslados[$IndTraslado], $x+$offset+2);
838
        }
839
        // agregar información de transporte
840
        if ($Transporte) {
841
            $transporte = '';
@@ 855-861 (lines=7) @@
852
                if (!empty($Transporte['Chofer']['RUTChofer']))
853
                    $transporte .= ' ('.$Transporte['Chofer']['RUTChofer'].')';
854
            }
855
            if ($transporte) {
856
                $this->setFont('', 'B', null);
857
                $this->Texto('Traslado', $x);
858
                $this->Texto(':', $x+$offset);
859
                $this->setFont('', '', null);
860
                $this->MultiTexto(ucfirst(trim($transporte)), $x+$offset+2);
861
            }
862
        }
863
        // agregar información de aduana
864
        if (!empty($Transporte['Aduana']) and is_array($Transporte['Aduana'])) {