Code Duplication    Length = 6-6 lines in 2 locations

lib/Sii/Dte/PDF/Dte.php 2 locations

@@ 368-373 (lines=6) @@
365
        }
366
        $this->Ln();
367
        $this->agregarDetalleContinuo($dte['Detalle']);
368
        if (!empty($dte['DscRcgGlobal'])) {
369
            $this->Ln();
370
            $this->Ln();
371
            $this->agregarSubTotal($dte['Detalle'], $x_start);
372
            $this->agregarDescuentosRecargos($dte['DscRcgGlobal'], $x_start);
373
        }
374
        if (!empty($dte['Encabezado']['IdDoc']['MntPagos'])) {
375
            $this->Ln();
376
            $this->Ln();
@@ 445-450 (lines=6) @@
442
        }
443
        $this->Ln();
444
        $this->agregarDetalleContinuo($dte['Detalle'], 3, [1, 53, 73, 83], true);
445
        if (!empty($dte['DscRcgGlobal'])) {
446
            $this->Ln();
447
            $this->Ln();
448
            $this->agregarSubTotal($dte['Detalle'], $x_start);
449
            $this->agregarDescuentosRecargos($dte['DscRcgGlobal'], $x_start);
450
        }
451
        if (!empty($dte['Encabezado']['IdDoc']['MntPagos'])) {
452
            $this->Ln();
453
            $this->Ln();