Code Duplication    Length = 15-15 lines in 2 locations

blocks/efqdir_menu.php 1 location

@@ 73-87 (lines=15) @@
70
 * @param $options
71
 * @return string
72
 */
73
function b_efqdiralpha1_menu_edit($options)
74
{
75
    $form = '' . _MB_EFQDIR_DISP . ' ';
76
    $form .= "<input type='hidden' name='options[]' value='";
77
    if ($options[0] === 'date') {
78
        $form .= "date'";
79
    } else {
80
        $form .= "hits'";
81
    }
82
    $form .= '>';
83
    $form .= "<input type='text' name='options[]' value='" . $options[1] . '\'>&nbsp;' . _MB_EFQDIR_LISTINGS . '';
84
    $form .= '&nbsp;<br>' . _MB_EFQDIR_CHARS . "&nbsp;<input type='text' name='options[]' value='" . $options[2] . '\'>&nbsp;' . _MB_EFQDIR_LENGTH . '';
85
86
    return $form;
87
}
88

blocks/efqdiralpha1_menu.php 1 location

@@ 68-82 (lines=15) @@
65
 * @param $options
66
 * @return string
67
 */
68
function b_efqdiralpha1_menu_edit($options)
69
{
70
    $form = '' . _MB_EFQDIR_DISP . '&nbsp;';
71
    $form .= "<input type='hidden' name='options[]' value='";
72
    if ($options[0] === 'date') {
73
        $form .= "date'";
74
    } else {
75
        $form .= "hits'";
76
    }
77
    $form .= '>';
78
    $form .= "<input type='text' name='options[]' value='" . $options[1] . '\'>&nbsp;' . _MB_EFQDIR_LISTINGS . '';
79
    $form .= '&nbsp;<br>' . _MB_EFQDIR_CHARS . "&nbsp;<input type='text' name='options[]' value='" . $options[2] . '\'>&nbsp;' . _MB_EFQDIR_LENGTH . '';
80
81
    return $form;
82
}
83