Code Duplication    Length = 17-17 lines in 2 locations

class/utility.php 1 location

@@ 197-213 (lines=17) @@
194
    /**
195
     * @return string
196
     */
197
    public static function sf_getHelpPath()
198
    {
199
        $smartConfig = sf_getModuleConfig();
200
        switch ($smartConfig['helppath_select']) {
201
            case 'docs.xoops.org':
202
                return 'http://docs.xoops.org/help/sfaqh/index.htm';
203
                break;
204
205
            case 'inside':
206
                return XOOPS_URL . '/modules/smartfaq/doc/';
207
                break;
208
209
            case 'custom':
210
                return $smartConfig['helppath_custom'];
211
                break;
212
        }
213
    }
214
215
    /**
216
     * @param  array $errors

include/functions.php 1 location

@@ 57-73 (lines=17) @@
54
/**
55
 * @return string
56
 */
57
function sf_getHelpPath()
58
{
59
    $smartConfig = sf_getModuleConfig();
60
    switch ($smartConfig['helppath_select']) {
61
        case 'docs.xoops.org':
62
            return 'http://docs.xoops.org/help/sfaqh/index.htm';
63
            break;
64
65
        case 'inside':
66
            return XOOPS_URL . '/modules/smartfaq/doc/';
67
            break;
68
69
        case 'custom':
70
            return $smartConfig['helppath_custom'];
71
            break;
72
    }
73
}
74
75
/**
76
 * @param  array $errors