| Total Complexity | 3 |
| Total Lines | 21 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 8 | final class ConfigTemplateCreator implements ConfigTemplateCreatorInterface |
||
| 9 | { |
||
| 10 | /** @var string */ |
||
| 11 | private $templateName; |
||
| 12 | |||
| 13 | public function __construct(string $templateName) |
||
| 14 | { |
||
| 15 | $this->templateName = $templateName; |
||
| 16 | } |
||
| 17 | |||
| 18 | public function create(PathInterface $destinationPathFileJson): void |
||
| 21 | } |
||
| 22 | |||
| 23 | private function createFileWithBackup(string $fileName, string $templateFile): void |
||
| 31 |
If you suppress an error, we recommend checking for the error condition explicitly: