Code Duplication    Length = 7-7 lines in 2 locations

htdocs/class/xoopsblock.php 1 location

@@ 68-74 (lines=7) @@
65
        $this->initVar('bcachetime', XOBJ_DTYPE_INT, 0, false);
66
        $this->initVar('last_modified', XOBJ_DTYPE_INT, 0, false);
67
68
        if (!empty($id)) {
69
            if (is_array($id)) {
70
                $this->assignVars($id);
71
            } else {
72
                $this->load((int)$id);
73
            }
74
        }
75
    }
76
77
    /**

htdocs/class/xoopscomments.php 1 location

@@ 66-72 (lines=7) @@
63
        $this->initVar('user_id', XOBJ_DTYPE_INT, null, false);
64
        $this->initVar('icon', XOBJ_DTYPE_OTHER, null, false);
65
        $this->initVar('prefix', XOBJ_DTYPE_OTHER, null, false);
66
        if (!empty($id)) {
67
            if (is_array($id)) {
68
                $this->assignVars($id);
69
            } else {
70
                $this->load((int)$id);
71
            }
72
        }
73
    }
74
75
    /**