Code Duplication    Length = 3-3 lines in 2 locations

lib/PDF.php 2 locations

@@ 328-330 (lines=3) @@
325
        }
326
        // Header
327
        $x = $this->GetX();
328
        foreach($headers as $i => $header) {
329
            $this->Cell($options['width'][$i], $options['height'], $headers[$i], 1, 0, $options['align'][$i], 1);
330
        }
331
        $this->Ln();
332
        $y = $this->GetY();
333
        // Color and font restoration
@@ 383-385 (lines=3) @@
380
                $this->rollbackTransaction(true);
381
                $this->AddPage();
382
                $this->SetX($x);
383
                foreach($headers as $i => $header) {
384
                    $this->Cell($options['width'][$i], $options['height'], $headers[$i], 1, 0, $options['align'][$i], 1);
385
                }
386
                $this->Ln();
387
                $this->SetX($x);
388
                $y_0 = $this->GetY();