Code Duplication    Length = 7-7 lines in 2 locations

src/Intraface/LegacyCpdf.php 2 locations

@@ 583-589 (lines=7) @@
580
                        if (isset($o['info']['procset'])) {
581
                            $res.=" /ProcSet ".$o['info']['procset'];
582
                        }
583
                        if (isset($o['info']['fonts']) && count($o['info']['fonts'])) {
584
                            $res.=" /Font << ";
585
                            foreach ($o['info']['fonts'] as $finfo) {
586
                                $res.=" /F".$finfo['fontNum']." ".$finfo['objNum']." 0 R";
587
                            }
588
                            $res.=" >>";
589
                        }
590
                        if (isset($o['info']['xObjects']) && count($o['info']['xObjects'])) {
591
                            $res.=" /XObject << ";
592
                            foreach ($o['info']['xObjects'] as $finfo) {
@@ 590-596 (lines=7) @@
587
                            }
588
                            $res.=" >>";
589
                        }
590
                        if (isset($o['info']['xObjects']) && count($o['info']['xObjects'])) {
591
                            $res.=" /XObject << ";
592
                            foreach ($o['info']['xObjects'] as $finfo) {
593
                                $res.=" /".$finfo['label']." ".$finfo['objNum']." 0 R";
594
                            }
595
                            $res.=" >>";
596
                        }
597
                        $res.=" >>";
598
                        if (isset($o['info']['mediaBox'])) {
599
                            $tmp=$o['info']['mediaBox'];