Code Duplication    Length = 5-5 lines in 2 locations

tcpdi/fpdf_tpl.php 1 location

@@ 443-447 (lines=5) @@
440
    function _putxobjectdict() {
441
        parent::_putxobjectdict();
442
        
443
        if (count($this->tpls)) {
444
            foreach($this->tpls as $tplidx => $tpl) {
445
                $this->_out(sprintf('%s%d %d 0 R', $this->tplprefix, $tplidx, $tpl['n']));
446
            }
447
        }
448
    }
449
450
    /**

tcpdi/tcpdi.php 1 location

@@ 748-752 (lines=5) @@
745
746
    protected function _getxobjectdict() {
747
        $out = parent::_getxobjectdict();
748
        if (count($this->tpls)) {
749
            foreach($this->tpls as $tplidx => $tpl) {
750
                $out .= sprintf('%s%d %d 0 R', $this->tplprefix, $tplidx, $tpl['n']);
751
            }
752
        }
753
754
        return $out;
755
    }