Total Complexity | 3 |
Total Lines | 22 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 1 |
1 | <?php |
||
8 | final class ConfigTemplateCreator |
||
9 | { |
||
10 | private const FILENAME = 'namespace-protector-config.json'; |
||
11 | private const FILENAME_VISIBILITY = 'namespace-protector-visibility.json'; |
||
12 | private const TEMPLATE_CONFIG_JSON = 'template-config-json'; |
||
13 | |||
14 | public static function createJsonTemplateConfig(PathInterface $baseComposerJsonDirectory): void |
||
17 | } |
||
18 | |||
19 | public static function createJsonTemplateVisibility(): void |
||
22 | } |
||
23 | |||
24 | private static function createFileWithBackup(string $fileName, string $templateFile): void |
||
32 |
If you suppress an error, we recommend checking for the error condition explicitly: