Code Duplication    Length = 3-3 lines in 2 locations

src/Eccube/Application.php 2 locations

@@ 986-988 (lines=3) @@
983
            $config_yml_dist = $distPath.'/'.$config_name.'.yml.dist';
984
            if (file_exists($config_yml_dist)) {
985
                $config_dist = Yaml::parse(file_get_contents($config_yml_dist));
986
                if (isset($this['output_config_php']) && $this['output_config_php']) {
987
                    file_put_contents($config_php_dist, sprintf('<?php return %s', var_export($config_dist, true)).';');
988
                }
989
            }
990
        } else {
991
            $config_dist = require $config_php_dist;
@@ 966-968 (lines=3) @@
963
            if (file_exists($config_yml)) {
964
                $config = Yaml::parse(file_get_contents($config_yml));
965
                $config = empty($config) ? array() : $config;
966
                if (isset($this['output_config_php']) && $this['output_config_php']) {
967
                    file_put_contents($config_php, sprintf('<?php return %s', var_export($config, true)).';');
968
                }
969
            }
970
        } else {
971
            $config = require $config_php;