Code Duplication    Length = 4-4 lines in 2 locations

include/blocksadmin.inc.php 2 locations

@@ 491-494 (lines=4) @@
488
    $cblock->setVar('content', @$_POST['bcontent']);
489
    $cblock->setVar('c_type', @$_POST['bctype']);
490
    $cblock->setVar('bcachetime', $_POST['bcachetime']);
491
    if (isset($options) && (count($options) > 0)) {
492
        $options = implode('|', $options);
493
        $cblock->setVar('options', $options);
494
    }
495
    $cblock->setVar('bid', 0);
496
    $cblock->setVar('block_type', $block_type === 'C' ? 'C' : 'D');
497
    $cblock->setVar('func_num', 255);
@@ 579-582 (lines=4) @@
576
        $myblock->setVar('c_type', $bctype);
577
    }
578
    $myblock->setVar('bcachetime', $bcachetime);
579
    if (isset($options) && (count($options) > 0)) {
580
        $options = implode('|', $options);
581
        $myblock->setVar('options', $options);
582
    }
583
    if ($myblock->getVar('block_type') === 'C') {
584
        switch ($myblock->getVar('c_type')) {
585
            case 'H':