Code Duplication    Length = 11-11 lines in 2 locations

Console/Installers/Scripts/ConfigureDatabase.php 2 locations

@@ 83-93 (lines=11) @@
80
    /**
81
     * @return string
82
     */
83
    protected function askDatabaseName()
84
    {
85
        do {
86
            $name = $this->command->ask('Enter your database name');
87
            if ($name == '') {
88
                $this->command->error('Database name is required');
89
            }
90
        } while (!$name);
91
92
        return $name;
93
    }
94
95
    /**
96
     * @param
@@ 99-109 (lines=11) @@
96
     * @param
97
     * @return string
98
     */
99
    protected function askDatabaseUsername()
100
    {
101
        do {
102
            $user = $this->command->ask('Enter your database username', 'root');
103
            if ($user == '') {
104
                $this->command->error('Database username is required');
105
            }
106
        } while (!$user);
107
108
        return $user;
109
    }
110
111
    /**
112
     * @param