File tree Expand file tree Collapse file tree 3 files changed +0
-68
lines changed
src/PhpGitHooks/Module/Configuration/Infrastructure/Persistence/Disk Expand file tree Collapse file tree 3 files changed +0
-68
lines changed Original file line number Diff line number Diff line change @@ -7,4 +7,3 @@ php-git-hooks.yml
77# composer.lock
88# Entry generated by php-git-hooks tool.
99.guard_coverage
10- .idea
Original file line number Diff line number Diff line change 1010class ConfigurationFileReader implements ConfigurationFileReaderInterface
1111{
1212 const CONFIG_FILE = 'php-git-hooks.yml ' ;
13- const DEFAULT_CONFIG_FILE = 'php-git-hooks.yml.default ' ;
1413
1514 /**
1615 * @return Config
@@ -19,10 +18,6 @@ public function getData()
1918 {
2019 $ data = true === $ this ->configFileExists () ? $ this ->getConfigData () : [];
2120
22- $ defaultData = $ this ->getDefaultConfigData ();
23-
24- $ data = array_replace_recursive ($ defaultData , $ data );
25-
2621 return ConfigFactory::fromArray ($ data );
2722 }
2823
@@ -41,14 +36,4 @@ private function getConfigData()
4136 {
4237 return Yaml::parse (file_get_contents (self ::CONFIG_FILE ));
4338 }
44-
45- /**
46- * @return array
47- */
48- private function getDefaultConfigData ()
49- {
50- return Yaml::parse (
51- file_get_contents (__DIR__ . '/ ' . self ::DEFAULT_CONFIG_FILE )
52- );
53- }
5439}
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments