Code Duplication    Length = 5-5 lines in 3 locations

htdocs/modules/system/class/avatar.php 1 location

@@ 42-46 (lines=5) @@
39
     */
40
    public function getForm()
41
    {
42
        if ($this->isNew()) {
43
            $blank_img = 'blank.gif';
44
        } else {
45
            $blank_img = str_replace('avatars/', '', $this->getVar('avatar_file', 'e'));
46
        }
47
        // Get User Config
48
        $config_handler  = xoops_getHandler('config');
49
        $xoopsConfigUser = $config_handler->getConfigsByCat(XOOPS_CONF_USER);

htdocs/modules/system/class/smilies.php 1 location

@@ 49-53 (lines=5) @@
46
     */
47
    public function getForm($action = false)
48
    {
49
        if ($this->isNew()) {
50
            $blank_img = 'blank.gif';
51
        } else {
52
            $blank_img = str_replace('smilies/', '', $this->getVar('smile_url', 'e'));
53
        }
54
        if ($action === false) {
55
            $action = $_SERVER['REQUEST_URI'];
56
        }

htdocs/modules/system/class/userrank.php 1 location

@@ 49-53 (lines=5) @@
46
     */
47
    public function getForm($action = false)
48
    {
49
        if ($this->isNew()) {
50
            $blank_img = 'blank.gif';
51
        } else {
52
            $blank_img = str_replace('ranks/', '', $this->getVar('rank_image', 'e'));
53
        }
54
        if ($action === false) {
55
            $action = $_SERVER['REQUEST_URI'];
56
        }