Code Duplication    Length = 8-8 lines in 2 locations

htdocs/class/database/manager.php 1 location

@@ 103-110 (lines=8) @@
100
     *
101
     * @return bool return if successful
102
     */
103
    public function createDB()
104
    {
105
        $this->db->connect(false);
106
107
        $result = $this->db->query("CREATE DATABASE " . \XoopsBaseConfig::get('db-name'));
108
109
        return ($result != false) ? true : false;
110
    }
111
112
    /**
113
     * Loads a query from a file

upgrade/upd-2.4.x-to-2.5.0/dbmanager.php 1 location

@@ 53-60 (lines=8) @@
50
        return ($this->db->connect() != false) ? true : false;
51
    }
52
53
    function createDB()
54
    {
55
        $this->db->connect(false);
56
57
        $result = $this->db->query("CREATE DATABASE " . XOOPS_DB_NAME);
58
59
        return ($result != false) ? true : false;
60
    }
61
62
    function queryFromFile($sql_file_path)
63
    {