Code Duplication    Length = 9-9 lines in 2 locations

htdocs/modules/userconfigs/class/config.php 1 location

@@ 85-93 (lines=9) @@
82
     *
83
     * @return   UserconfigsItem {@link UserconfigsItem}
84
     */
85
    public function getConfig($id, $withoptions = false)
86
    {
87
        /* @var $config UserconfigsItem */
88
        $config = $this->_iHandler->get($id);
89
        if ($withoptions == true) {
90
            $config->setConfOptions($this->getConfigOptions(new Criteria('conf_id', $id)));
91
        }
92
        return $config;
93
    }
94
95
    /**
96
     * insert a new config in the database

htdocs/xoops_lib/Xoops/Core/Kernel/Handlers/XoopsConfigHandler.php 1 location

@@ 93-101 (lines=9) @@
90
     *
91
     * @return   XoopsConfigItem
92
     */
93
    public function getConfig($id, $withoptions = false)
94
    {
95
        /* @var $config XoopsConfigItem */
96
        $config = $this->itemHandler->get($id);
97
        if ($withoptions == true) {
98
            $config->setConfOptions($this->getConfigOptions(new Criteria('conf_id', $id)));
99
        }
100
        return $config;
101
    }
102
103
    /**
104
     * insert a new config in the database