Skip to content

Commit 8c44c3d

Browse files
committed
Remove create php-git-hooks.yml.default file.
1 parent dd37658 commit 8c44c3d

File tree

3 files changed

+0
-68
lines changed

3 files changed

+0
-68
lines changed

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff 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

src/PhpGitHooks/Module/Configuration/Infrastructure/Persistence/Disk/ConfigurationFileReader.php

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010
class 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
}

src/PhpGitHooks/Module/Configuration/Infrastructure/Persistence/Disk/php-git-hooks.yml.default

Lines changed: 0 additions & 52 deletions
This file was deleted.

0 commit comments

Comments
 (0)