Code Duplication    Length = 10-11 lines in 3 locations

htdocs/restorecaches.php 3 locations

@@ 536-545 (lines=10) @@
533
            $next = $nextdesc[$r['cache_id']][$r['language']];
534
        }
535
536
        if ($r['dl'] + 0 != $next['dl'] + 0) {
537
            append_data(
538
                $data,
539
                $admins,
540
                $wp_oc,
541
                $r,
542
                'desc(' . $r['language'] . ')',
543
                $r['dl'] + 0,
544
                ($next['dl'] + 0) . ' bytes'
545
            );
546
        }
547
        if ($r['hl'] + 0 != $next['hl'] + 0) {
548
            append_data(
@@ 547-557 (lines=11) @@
544
                ($next['dl'] + 0) . ' bytes'
545
            );
546
        }
547
        if ($r['hl'] + 0 != $next['hl'] + 0) {
548
            append_data(
549
                $data,
550
                $admins,
551
                $wp_oc,
552
                $r,
553
                'hint(' . $r['language'] . ')',
554
                $r['hl'] + 0,
555
                ($next['hl'] + 0) . ' bytes'
556
            );
557
        }
558
        if ($r['sdl'] + 0 != $next['sdl'] + 0) {
559
            append_data(
560
                $data,
@@ 558-568 (lines=11) @@
555
                ($next['hl'] + 0) . ' bytes'
556
            );
557
        }
558
        if ($r['sdl'] + 0 != $next['sdl'] + 0) {
559
            append_data(
560
                $data,
561
                $admins,
562
                $wp_oc,
563
                $r,
564
                'shortdesc(' . $r['language'] . ')',
565
                $r['sdl'] + 0,
566
                ($next['sdl'] + 0) . ' bytes'
567
            );
568
        }
569
570
        $nextdesc[$r['cache_id']][$r['language']] = $r;
571
    }