Code Duplication    Length = 11-11 lines in 2 locations

htdocs/restorecaches.php 2 locations

@@ 390-400 (lines=11) @@
387
        if ($r['name'] != $nextcd[$wp]['name']) {
388
            append_data($data, $admins, $wp_oc, $r, 'name', $r['name'], $nextcd[$wp]['name']);
389
        }
390
        if ($r['type'] != $nextcd[$wp]['type']) {
391
            append_data(
392
                $data,
393
                $admins,
394
                $wp_oc,
395
                $r,
396
                'type',
397
                labels::getLabelValue('cache_type', $r['type']),
398
                labels::getLabelValue('cache_type', $nextcd[$wp]['type'])
399
            );
400
        }
401
        if ($r['size'] != $nextcd[$wp]['size']) {
402
            append_data(
403
                $data,
@@ 401-411 (lines=11) @@
398
                labels::getLabelValue('cache_type', $nextcd[$wp]['type'])
399
            );
400
        }
401
        if ($r['size'] != $nextcd[$wp]['size']) {
402
            append_data(
403
                $data,
404
                $admins,
405
                $wp_oc,
406
                $r,
407
                "size",
408
                labels::getLabelValue('cache_size', $r['size']),
409
                labels::getLabelValue('cache_size', $nextcd[$wp]['size'])
410
            );
411
        }
412
        if ($r['difficulty'] != $nextcd[$wp]['difficulty']) {
413
            append_data($data, $admins, $wp_oc, $r, "D", $r['difficulty'] / 2, $nextcd[$wp]['difficulty'] / 2);
414
        }