Code Duplication    Length = 10-10 lines in 2 locations

htdocs/xoops_lib/Xoops/Core/Kernel/Handlers/XoopsBlock.php 2 locations

@@ 425-434 (lines=10) @@
422
                $xoops->loadLanguage('blocks', $this->getVar('dirname'));
423
                include_once $this->xoops_root_path . '/modules/' . $this->getVar('dirname') . '/blocks/'
424
                    . $this->getVar('func_file');
425
                if (function_exists($edit_func)) {
426
                    // execute the function
427
                    $options = explode('|', $this->getVar('options'));
428
                    $edit_form = $edit_func($options);
429
                    if (!$edit_form) {
430
                        return false;
431
                    }
432
                } else {
433
                    return false;
434
                }
435
                return $edit_form;
436
            } else {
437
                return false;
@@ 485-494 (lines=10) @@
482
            $xoops->loadLocale($this->getVar('dirname'));
483
            include_once $func_file;
484
485
            if (function_exists($show_func)) {
486
                // execute the function
487
                $options = explode('|', $this->getVar('options'));
488
                $block = $show_func($options);
489
                if (!$block) {
490
                    return false;
491
                }
492
            } else {
493
                return false;
494
            }
495
        } else {
496
            // it is a custom block, so just return the contents
497
            $block['content'] = $this->getContent('s', $this->getVar('c_type'));