Code Duplication    Length = 2-2 lines in 2 locations

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

@@ 1792-1793 (lines=2) @@
1789
        // Replace number of pages in fonts using subsets
1790
        $alias = $this->UTF8ToUTF16BE($this->AliasNbPages, false);
1791
        $r = $this->UTF8ToUTF16BE("$nb", false);
1792
        for ($n = 1; $n <= $nb; $n++) {
1793
                    $this->pages[$n] = str_replace($alias, $r, $this->pages[$n]);
1794
        }
1795
        // Now repeat for no pages in non-subset fonts
1796
        for ($n = 1; $n <= $nb; $n++) {
@@ 1796-1797 (lines=2) @@
1793
                    $this->pages[$n] = str_replace($alias, $r, $this->pages[$n]);
1794
        }
1795
        // Now repeat for no pages in non-subset fonts
1796
        for ($n = 1; $n <= $nb; $n++) {
1797
                    $this->pages[$n] = str_replace($this->AliasNbPages, $nb, $this->pages[$n]);
1798
        }
1799
    }
1800
    if ($this->DefOrientation == 'P')