Code Duplication    Length = 7-7 lines in 2 locations

src/Magestead/Installers/MagentoProject.php 1 location

@@ 181-187 (lines=7) @@
178
     * @param OutputInterface $output
179
     * @return VersionControl|null
180
     */
181
    protected function processVcs(array $options, $projectPath, OutputInterface $output)
182
    {
183
        if (!empty($options['repo_url'])) {
184
            copy($projectPath . "/puphpet/magestead/magento/stubs/gitignore.tmp", $projectPath . "/.gitignore");
185
            return new VersionControl($options['repo_url'], $projectPath, $output);
186
        }
187
    }
188
189
    /**
190
     * @param $projectPath

src/Magestead/Installers/Magento2Project.php 1 location

@@ 252-258 (lines=7) @@
249
     * @param OutputInterface $output
250
     * @return VersionControl|null
251
     */
252
    protected function processVcs(array $options, $projectPath, OutputInterface $output)
253
    {
254
        if (!empty($options['repo_url'])) {
255
            copy($projectPath . "/puphpet/magestead/magento2/stubs/gitignore.tmp", $projectPath . "/.gitignore");
256
            return new VersionControl($options['repo_url'], $projectPath, $output);
257
        }
258
    }
259
260
    /**
261
     * @param $projectPath