Code Duplication    Length = 11-11 lines in 2 locations

src/Intraface/LegacyCpdf.php 2 locations

@@ 2867-2877 (lines=11) @@
2864
                                        $x=$tmp[0];
2865
                                        $y=$tmp[1];
2866
                                        $ret = $this->$func($info);
2867
                                        if (is_array($ret)) {
2868
                                            // then the return from the callback function could set the position, to start with, later will do font colour, and font
2869
                                            foreach ($ret as $rk => $rv) {
2870
                                                switch ($rk) {
2871
                                                    case 'x':
2872
                                                    case 'y':
2873
                                                        $$rk=$rv;
2874
                                                        break;
2875
                                                }
2876
                                            }
2877
                                        }
2878
                                        // also remove from to the stack
2879
                                        // for simplicity, just take from the end, fix this another day
2880
                                        $this->nCallback--;
@@ 2938-2948 (lines=11) @@
2935
                                    $this->callback[$this->nCallback]=$info;
2936
                                }
2937
                                $ret = $this->$func($info);
2938
                                if (is_array($ret)) {
2939
                                    // then the return from the callback function could set the position, to start with, later will do font colour, and font
2940
                                    foreach ($ret as $rk => $rv) {
2941
                                        switch ($rk) {
2942
                                            case 'x':
2943
                                            case 'y':
2944
                                                $$rk=$rv;
2945
                                                break;
2946
                                        }
2947
                                    }
2948
                                }
2949
                            }
2950
                        }
2951
                    }