Code Duplication    Length = 7-7 lines in 2 locations

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
    {

eccube_install.php 1 location

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