Code Duplication    Length = 11-11 lines in 2 locations

class/Utility.php 1 location

@@ 218-228 (lines=11) @@
215
     * @param        $defaut
216
     * @return XoopsFormSelect
217
     */
218
    public static function getListAndOr($name = 'andor', $caption = '', $defaut)
219
    {
220
        global $xoopsUser;
221
222
        $select = new \XoopsFormSelect($caption, $name, $defaut);
223
224
        $select->addOption('AND', _MD_EXTCAL_AND);
225
        $select->addOption('OR', _MD_EXTCAL_OR);
226
227
        return $select;
228
    }
229
230
    /*******************************************************************
231
     *

include/functions0.php 1 location

@@ 205-215 (lines=11) @@
202
 * @param        $defaut
203
 * @return XoopsFormSelect
204
 */
205
function getListAndOr($name = 'andor', $caption = '', $defaut)
206
{
207
    global $xoopsUser;
208
209
    $select = new \XoopsFormSelect($caption, $name, $defaut);
210
211
    $select->addOption('AND', _MD_EXTCAL_AND);
212
    $select->addOption('OR', _MD_EXTCAL_OR);
213
214
    return $select;
215
}
216
217
/*******************************************************************
218
 *