Code Duplication    Length = 2-5 lines in 2 locations

lib/Sii/PDF/Dte.php 2 locations

@@ 344-345 (lines=2) @@
341
            $this->agregarSubTotal($dte['Detalle']);
342
            $this->agregarDescuentosRecargos($dte['DscRcgGlobal']);
343
        }
344
        if (!empty($dte['Encabezado']['IdDoc']['MntPagos'])) {
345
            $this->agregarPagos($dte['Encabezado']['IdDoc']['MntPagos']);
346
        }
347
        // agregar observaciones
348
        $this->x_fin_datos = $this->getY();
@@ 415-419 (lines=5) @@
412
            $this->agregarSubTotal($dte['Detalle'], $x_start);
413
            $this->agregarDescuentosRecargos($dte['DscRcgGlobal'], $x_start);
414
        }
415
        if (!empty($dte['Encabezado']['IdDoc']['MntPagos'])) {
416
            $this->Ln();
417
            $this->Ln();
418
            $this->agregarPagos($dte['Encabezado']['IdDoc']['MntPagos'], $x_start);
419
        }
420
        $this->agregarTotales($dte['Encabezado']['Totales'], !empty($dte['Encabezado']['OtraMoneda']) ? $dte['Encabezado']['OtraMoneda'] : null, $this->y+6, 23, 17);
421
        // agregar acuse de recibo y leyenda cedible
422
        if ($this->cedible and !in_array($dte['Encabezado']['IdDoc']['TipoDTE'], $this->sinAcuseRecibo)) {