Code Duplication    Length = 7-7 lines in 2 locations

eccube_install.php 1 location

@@ 422-428 (lines=7) @@
419
    createPhp(getPathConfig(), $config_path.'/path.php');
420
}
421
422
function createPhp($config, $path)
423
{
424
    $content = var_export($config, true);
425
    $content = '<?php return '.$content.';'.PHP_EOL;
426
    $fs = new \Symfony\Component\Filesystem\Filesystem();
427
    $fs->dumpFile($path, $content);
428
}
429
430
function getConfig()
431
{

src/Eccube/Controller/Install/InstallController.php 1 location

@@ 636-642 (lines=7) @@
633
        return $this;
634
    }
635
636
    private function createPhp($path, $config)
637
    {
638
        $content = var_export($config, true);
639
        $content = '<?php return '.$content.';'.PHP_EOL;
640
        $fs = new Filesystem();
641
        $fs->dumpFile($path, $content);
642
    }
643
644
    private function addInstallStatus()
645
    {