Code Duplication    Length = 5-5 lines in 2 locations

htdocs/class/xoopsform/renderer/XoopsFormRendererBootstrap3.php 1 location

@@ 588-592 (lines=5) @@
585
    public function renderFormTextDateSelect(XoopsFormTextDateSelect $element)
586
    {
587
        static $included = false;
588
        if (file_exists(XOOPS_ROOT_PATH . '/language/' . $GLOBALS['xoopsConfig']['language'] . '/calendar.php')) {
589
            include_once XOOPS_ROOT_PATH . '/language/' . $GLOBALS['xoopsConfig']['language'] . '/calendar.php';
590
        } else {
591
            include_once XOOPS_ROOT_PATH . '/language/english/calendar.php';
592
        }
593
594
        $ele_name  = $element->getName();
595
        $ele_value = $element->getValue(false);

htdocs/class/xoopsform/renderer/XoopsFormRendererLegacy.php 1 location

@@ 485-489 (lines=5) @@
482
    public function renderFormTextDateSelect(XoopsFormTextDateSelect $element)
483
    {
484
        static $included = false;
485
        if (file_exists(XOOPS_ROOT_PATH . '/language/' . $GLOBALS['xoopsConfig']['language'] . '/calendar.php')) {
486
            include_once XOOPS_ROOT_PATH . '/language/' . $GLOBALS['xoopsConfig']['language'] . '/calendar.php';
487
        } else {
488
            include_once XOOPS_ROOT_PATH . '/language/english/calendar.php';
489
        }
490
491
        $ele_name  = $element->getName();
492
        $ele_value = $element->getValue(false);