Code Duplication    Length = 10-10 lines in 2 locations

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

@@ 422-431 (lines=10) @@
419
            if (\XoopsLoad::fileExists($funcFile)) {
420
                $xoops->loadLanguage('blocks', $this->getVar('dirname'));
421
                include_once $funcFile;
422
                if (function_exists($edit_func)) {
423
                    // execute the function
424
                    $options = explode('|', $this->getVar('options'));
425
                    $edit_form = $edit_func($options);
426
                    if (!$edit_form) {
427
                        return false;
428
                    }
429
                } else {
430
                    return false;
431
                }
432
                return $edit_form;
433
            } else {
434
                return false;
@@ 482-491 (lines=10) @@
479
            $xoops->loadLocale($this->getVar('dirname'));
480
            include_once $func_file;
481
482
            if (function_exists($show_func)) {
483
                // execute the function
484
                $options = explode('|', $this->getVar('options'));
485
                $block = $show_func($options);
486
                if (!$block) {
487
                    return false;
488
                }
489
            } else {
490
                return false;
491
            }
492
        } else {
493
            // it is a custom block, so just return the contents
494
            $block['content'] = $this->getContent('s', $this->getVar('c_type'));