Code Duplication    Length = 2-5 lines in 2 locations

lib/Sii/PDF/Dte.php 2 locations

@@ 356-357 (lines=2) @@
353
            $this->agregarSubTotal($dte['Detalle']);
354
            $this->agregarDescuentosRecargos($dte['DscRcgGlobal']);
355
        }
356
        if (!empty($dte['Encabezado']['IdDoc']['MntPagos'])) {
357
            $this->agregarPagos($dte['Encabezado']['IdDoc']['MntPagos']);
358
        }
359
        // agregar observaciones
360
        $this->x_fin_datos = $this->getY();
@@ 427-431 (lines=5) @@
424
            $this->agregarSubTotal($dte['Detalle'], $x_start);
425
            $this->agregarDescuentosRecargos($dte['DscRcgGlobal'], $x_start);
426
        }
427
        if (!empty($dte['Encabezado']['IdDoc']['MntPagos'])) {
428
            $this->Ln();
429
            $this->Ln();
430
            $this->agregarPagos($dte['Encabezado']['IdDoc']['MntPagos'], $x_start);
431
        }
432
        $this->agregarTotales($dte['Encabezado']['Totales'], !empty($dte['Encabezado']['OtraMoneda']) ? $dte['Encabezado']['OtraMoneda'] : null, $this->y+6, 23, 17);
433
        // agregar acuse de recibo y leyenda cedible
434
        if ($this->cedible and !in_array($dte['Encabezado']['IdDoc']['TipoDTE'], $this->sinAcuseRecibo)) {