Code Duplication    Length = 2-2 lines in 4 locations

includes/libraries/Pdf/Tfpdf/tfpdf.class.php 4 locations

@@ 794-795 (lines=2) @@
791
    {
792
        $x = $this->x;
793
        $y = $this->y;
794
        if (strpos($border, 'L') !== false) {
795
                    $s .= sprintf('%.2F %.2F m %.2F %.2F l S ', $x * $k, ($this->h - $y) * $k, $x * $k, ($this->h - ($y + $h)) * $k);
796
        }
797
        if (strpos($border, 'T') !== false) {
798
                    $s .= sprintf('%.2F %.2F m %.2F %.2F l S ', $x * $k, ($this->h - $y) * $k, ($x + $w) * $k, ($this->h - $y) * $k);
@@ 797-798 (lines=2) @@
794
        if (strpos($border, 'L') !== false) {
795
                    $s .= sprintf('%.2F %.2F m %.2F %.2F l S ', $x * $k, ($this->h - $y) * $k, $x * $k, ($this->h - ($y + $h)) * $k);
796
        }
797
        if (strpos($border, 'T') !== false) {
798
                    $s .= sprintf('%.2F %.2F m %.2F %.2F l S ', $x * $k, ($this->h - $y) * $k, ($x + $w) * $k, ($this->h - $y) * $k);
799
        }
800
        if (strpos($border, 'R') !== false) {
801
                    $s .= sprintf('%.2F %.2F m %.2F %.2F l S ', ($x + $w) * $k, ($this->h - $y) * $k, ($x + $w) * $k, ($this->h - ($y + $h)) * $k);
@@ 800-801 (lines=2) @@
797
        if (strpos($border, 'T') !== false) {
798
                    $s .= sprintf('%.2F %.2F m %.2F %.2F l S ', $x * $k, ($this->h - $y) * $k, ($x + $w) * $k, ($this->h - $y) * $k);
799
        }
800
        if (strpos($border, 'R') !== false) {
801
                    $s .= sprintf('%.2F %.2F m %.2F %.2F l S ', ($x + $w) * $k, ($this->h - $y) * $k, ($x + $w) * $k, ($this->h - ($y + $h)) * $k);
802
        }
803
        if (strpos($border, 'B') !== false) {
804
                    $s .= sprintf('%.2F %.2F m %.2F %.2F l S ', $x * $k, ($this->h - ($y + $h)) * $k, ($x + $w) * $k, ($this->h - ($y + $h)) * $k);
@@ 803-804 (lines=2) @@
800
        if (strpos($border, 'R') !== false) {
801
                    $s .= sprintf('%.2F %.2F m %.2F %.2F l S ', ($x + $w) * $k, ($this->h - $y) * $k, ($x + $w) * $k, ($this->h - ($y + $h)) * $k);
802
        }
803
        if (strpos($border, 'B') !== false) {
804
                    $s .= sprintf('%.2F %.2F m %.2F %.2F l S ', $x * $k, ($this->h - ($y + $h)) * $k, ($x + $w) * $k, ($this->h - ($y + $h)) * $k);
805
        }
806
    }
807
    if ($txt !== '')