Code Duplication    Length = 9-9 lines in 2 locations

src/Console/Installer.php 2 locations

@@ 84-92 (lines=9) @@
81
     *
82
     * @return void
83
     */
84
    public static function createAppConfig($dir, $io)
85
    {
86
        $appConfig = $dir . '/config/app.php';
87
        $defaultConfig = $dir . '/config/app.default.php';
88
        if (!file_exists($appConfig)) {
89
            copy($defaultConfig, $appConfig);
90
            $io->write('Created `config/app.php` file');
91
        }
92
    }
93
94
    /**
95
     * Create the `logs` and `tmp` directories.
@@ 131-139 (lines=9) @@
128
     *
129
     * @return void
130
     */
131
    public static function createRecaptchaConfig($dir, $io)
132
    {
133
        $appConfig = $dir . '/config/recaptcha.php';
134
        $defaultConfig = $dir . '/config/recaptcha.default.php';
135
        if (!file_exists($appConfig)) {
136
            copy($defaultConfig, $appConfig);
137
            $io->write('Created `config/recaptcha.php` file');
138
        }
139
    }
140
141
    /**
142
     * Set globally writable permissions on the "tmp" and "logs" directory.