From bc3f4e7b599477fbe3cb5003728aa9159373cf1f Mon Sep 17 00:00:00 2001 From: Dmitrii Derepko Date: Sun, 9 Jun 2024 13:58:21 +0300 Subject: [PATCH] Remove unused files --- src/Generator/AbstractGeneratorDTO.php | 47 ---------------------- src/Generator/Controller/ControllerDTO.php | 34 ---------------- 2 files changed, 81 deletions(-) delete mode 100644 src/Generator/AbstractGeneratorDTO.php delete mode 100644 src/Generator/Controller/ControllerDTO.php diff --git a/src/Generator/AbstractGeneratorDTO.php b/src/Generator/AbstractGeneratorDTO.php deleted file mode 100644 index 31715ccb..00000000 --- a/src/Generator/AbstractGeneratorDTO.php +++ /dev/null @@ -1,47 +0,0 @@ -getDataSet(); - $result = new Result(); - $templates = $dataSet->getTemplates(); - if ($templates === []) { - return $result; - } - if (!isset($templates[$value])) { - $result->addError('Invalid template selection.'); - } else { - $templatePath = $templates[$value]; - foreach ($dataSet->requiredTemplates() as $template) { - if (!is_file($dataSet->aliases->get($templatePath . '/' . $template))) { - $result->addError("Unable to find the required code template file '$template'."); - } - } - } - - return $result; - } -} diff --git a/src/Generator/Controller/ControllerDTO.php b/src/Generator/Controller/ControllerDTO.php deleted file mode 100644 index 5e9145f4..00000000 --- a/src/Generator/Controller/ControllerDTO.php +++ /dev/null @@ -1,34 +0,0 @@ -