Code Duplication    Length = 5-5 lines in 2 locations

lib/FPDF/src/fpdf_tpl.php 2 locations

@@ 233-237 (lines=5) @@
230
231
        $fontkey = $this->FontFamily.$this->FontStyle;
232
233
        if ($this->_intpl) {
234
            $this->_res['tpl'][$this->tpl]['fonts'][$fontkey] =& $this->fonts[$fontkey];
235
        } else {
236
            $this->_res['page'][$this->page]['fonts'][$fontkey] =& $this->fonts[$fontkey];
237
        }
238
    }
239
240
    /**
@@ 251-255 (lines=5) @@
248
249
        //parent::Image($file, $x, $y, $w, $h, $type, $link, $align, $resize, $dpi);
250
        parent::Image($file, $x, $y, $w, $h, $type, $link);
251
        if ($this->_intpl) {
252
            $this->_res['tpl'][$this->tpl]['images'][$file] =& $this->images[$file];
253
        } else {
254
            $this->_res['page'][$this->page]['images'][$file] =& $this->images[$file];
255
        }
256
    }
257
258
    /**