Code Duplication    Length = 6-6 lines in 2 locations

lib/FPDF/src/fpdf_tpl.php 1 location

@@ 308-313 (lines=6) @@
305
            $this->_out('/Resources ');
306
307
            $this->_out('<</ProcSet [/PDF /Text /ImageB /ImageC /ImageI]');
308
        	if (isset($this->_res['tpl'][$tplidx]['fonts']) && count($this->_res['tpl'][$tplidx]['fonts'])) {
309
            	$this->_out('/Font <<');
310
                foreach($this->_res['tpl'][$tplidx]['fonts'] as $font)
311
            		$this->_out('/F'.$font['i'].' '.$font['n'].' 0 R');
312
            	$this->_out('>>');
313
            }
314
        	if(isset($this->_res['tpl'][$tplidx]['images']) && count($this->_res['tpl'][$tplidx]['images']) ||
315
        	   isset($this->_res['tpl'][$tplidx]['tpls']) && count($this->_res['tpl'][$tplidx]['tpls']))
316
        	{

lib/FPDF/src/fpdi.php 1 location

@@ 306-311 (lines=6) @@
303
                $this->pdf_write_value($tpl['resources']); // "n" will be changed
304
            } else {
305
                $this->_out('<</ProcSet [/PDF /Text /ImageB /ImageC /ImageI]');
306
            	if (isset($this->_res['tpl'][$tplidx]['fonts']) && count($this->_res['tpl'][$tplidx]['fonts'])) {
307
                	$this->_out('/Font <<');
308
                    foreach($this->_res['tpl'][$tplidx]['fonts'] as $font)
309
                		$this->_out('/F'.$font['i'].' '.$font['n'].' 0 R');
310
                	$this->_out('>>');
311
                }
312
            	if(isset($this->_res['tpl'][$tplidx]['images']) && count($this->_res['tpl'][$tplidx]['images']) ||
313
            	   isset($this->_res['tpl'][$tplidx]['tpls']) && count($this->_res['tpl'][$tplidx]['tpls']))
314
            	{