Code Duplication    Length = 3-3 lines in 2 locations

src/Eccube/Application.php 2 locations

@@ 991-993 (lines=3) @@
988
            if (file_exists($config_yml)) {
989
                $config = Yaml::parse(file_get_contents($config_yml));
990
                $config = empty($config) ? array() : $config;
991
                if (isset($this['output_config_php']) && $this['output_config_php']) {
992
                    file_put_contents($config_php, sprintf('<?php return %s', var_export($config, true)).';');
993
                }
994
            }
995
        } else {
996
            $config = require $config_php;
@@ 1005-1007 (lines=3) @@
1002
            $config_yml_dist = $distPath.'/'.$config_name.'.yml.dist';
1003
            if (file_exists($config_yml_dist)) {
1004
                $config_dist = Yaml::parse(file_get_contents($config_yml_dist));
1005
                if (isset($this['output_config_php']) && $this['output_config_php']) {
1006
                    file_put_contents($config_php_dist, sprintf('<?php return %s', var_export($config_dist, true)).';');
1007
                }
1008
            }
1009
        } else {
1010
            $config_dist = require $config_php_dist;