Code Duplication    Length = 6-6 lines in 2 locations

code/tests/apc.php 2 locations

@@ 450-455 (lines=6) @@
447
                    if (($angle_to+$fuzz)>1) {
448
                        $angle_to = 1;
449
                    }
450
                    if (($angle_to*360) - ($angle_from*360) >= 1) {
451
                        fill_arc($image, $x, $y, $size, $angle_from*360, $angle_to*360, $col_black, $col_red);
452
                        if (($angle_to-$angle_from)>0.05) {
453
                            array_push($string_placement, array($angle_from, $angle_to));
454
                        }
455
                    }
456
                    $angle_from = $angle_to;
457
                }
458
                $angle_to = $angle_from+($block['size'])/$s;
@@ 462-467 (lines=6) @@
459
                if (($angle_to+$fuzz)>1) {
460
                    $angle_to = 1;
461
                }
462
                if (($angle_to*360) - ($angle_from*360) >= 1) {
463
                    fill_arc($image, $x, $y, $size, $angle_from*360, $angle_to*360, $col_black, $col_green);
464
                    if (($angle_to-$angle_from)>0.05) {
465
                        array_push($string_placement, array($angle_from, $angle_to));
466
                    }
467
                }
468
                $angle_from = $angle_to;
469
                $ptr = $block['offset']+$block['size'];
470
            }