Code Duplication    Length = 8-8 lines in 3 locations

src/Option/Configuration.php 3 locations

@@ 196-203 (lines=8) @@
193
     *
194
     * @return string       The database name.
195
     */
196
    protected static function makeDbName($name)
197
    {
198
        $dbname = self::sanitizeValue($name);
199
        $dbname = str_replace('-', '_', $dbname);
200
        $dbname = strtolower($dbname);
201
202
        return "wp_{$dbname}";
203
    }
204
205
    /**
206
     * Creates the URL from the initialization name.
@@ 212-219 (lines=8) @@
209
     *
210
     * @return string       The URL.
211
     */
212
    protected static function makeURL($name)
213
    {
214
        $url = self::sanitizeValue($name);
215
        $url = str_replace('_', '-', $url);
216
        $url = strtolower($url);
217
218
        return "http://{$url}.dev";
219
    }
220
221
    /**
222
     * Creates the theme name from the initialization name.
@@ 228-235 (lines=8) @@
225
     *
226
     * @return string       The theme name.
227
     */
228
    protected static function makeThemeName($name)
229
    {
230
        $themeName = self::sanitizeValue($name);
231
        $themeName = str_replace('_', '-', $themeName);
232
        $themeName = strtolower($themeName);
233
234
        return $themeName;
235
    }
236
237
    /**
238
     * Creates the database name from the initialization name.