Code Duplication    Length = 3-3 lines in 2 locations

lib/PDF.php 2 locations

@@ 321-323 (lines=3) @@
318
        }
319
        // Header
320
        $x = $this->GetX();
321
        foreach($headers as $i => $header) {
322
            $this->Cell($options['width'][$i], $options['height'], $headers[$i], 1, 0, $options['align'][$i], 1);
323
        }
324
        $this->Ln();
325
        $y = $this->GetY();
326
        // Color and font restoration
@@ 374-376 (lines=3) @@
371
                $this->rollbackTransaction(true);
372
                $this->AddPage();
373
                $this->SetX($x);
374
                foreach($headers as $i => $header) {
375
                    $this->Cell($options['width'][$i], $options['height'], $headers[$i], 1, 0, $options['align'][$i], 1);
376
                }
377
                $this->Ln();
378
                $this->SetX($x);
379
                $y_0 = $this->GetY();