Code Duplication    Length = 5-5 lines in 2 locations

tcpdi/fpdf_tpl.php 2 locations

@@ 285-289 (lines=5) @@
282
        
283
        $fontkey = $this->FontFamily . $this->FontStyle;
284
        
285
        if ($this->_intpl) {
286
            $this->_res['tpl'][$this->tpl]['fonts'][$fontkey] =& $this->fonts[$fontkey];
287
        } else {
288
            $this->_res['page'][$this->page]['fonts'][$fontkey] =& $this->fonts[$fontkey];
289
        }
290
    }
291
    
292
    /**
@@ 306-310 (lines=5) @@
303
        }
304
        
305
        $ret = parent::Image($file, $x, $y, $w, $h, $type, $link);
306
        if ($this->_intpl) {
307
            $this->_res['tpl'][$this->tpl]['images'][$file] =& $this->images[$file];
308
        } else {
309
            $this->_res['page'][$this->page]['images'][$file] =& $this->images[$file];
310
        }
311
        
312
        return $ret;
313
    }