From 155ab21b4d80adf136d4ab0c90b97762459ff5a8 Mon Sep 17 00:00:00 2001 From: Alexis Guyomar Date: Tue, 17 Dec 2024 14:29:25 +0100 Subject: [PATCH] fix: cs fixer --- .../self-managed/UpdatePageVersionChoiceController.php | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/controllers/admin/self-managed/UpdatePageVersionChoiceController.php b/controllers/admin/self-managed/UpdatePageVersionChoiceController.php index f17c1d012..420d7b3da 100644 --- a/controllers/admin/self-managed/UpdatePageVersionChoiceController.php +++ b/controllers/admin/self-managed/UpdatePageVersionChoiceController.php @@ -33,13 +33,10 @@ use PrestaShop\Module\AutoUpgrade\Parameters\UpgradeConfiguration; use PrestaShop\Module\AutoUpgrade\Parameters\UpgradeFileNames; use PrestaShop\Module\AutoUpgrade\Router\Routes; -use PrestaShop\Module\AutoUpgrade\Services\DistributionApiService; -use PrestaShop\Module\AutoUpgrade\Services\PhpVersionResolverService; use PrestaShop\Module\AutoUpgrade\Twig\PageSelectors; use PrestaShop\Module\AutoUpgrade\Twig\UpdateSteps; use PrestaShop\Module\AutoUpgrade\Twig\ValidatorToFormFormater; use PrestaShop\Module\AutoUpgrade\UpgradeContainer; -use PrestaShop\Module\AutoUpgrade\UpgradeSelfCheck; use PrestaShop\Module\AutoUpgrade\VersionUtils; use Symfony\Component\HttpFoundation\JsonResponse; @@ -245,7 +242,7 @@ public function coreTemperedFilesDialog(): JsonResponse 'title' => $this->upgradeContainer->getTranslator()->trans('List of core alterations'), 'description' => $this->upgradeContainer->getTranslator()->trans('Some core files have been altered, customization made on these files will be lost during the update.'), 'missing_files' => $this->upgradeContainer->getUpgradeSelfCheck()->getCoreMissingFiles(), - 'altered_files' => $this->upgradeContainer->getUpgradeSelfCheck()->getCoreAlteredFiles() + 'altered_files' => $this->upgradeContainer->getUpgradeSelfCheck()->getCoreAlteredFiles(), ]) ); } @@ -258,7 +255,7 @@ public function themeTemperedFilesDialog(): JsonResponse 'title' => $this->upgradeContainer->getTranslator()->trans('List of theme alterations'), 'description' => $this->upgradeContainer->getTranslator()->trans('Some theme files have been altered, customization made on these files will be lost during the update.'), 'missing_files' => $this->upgradeContainer->getUpgradeSelfCheck()->getThemeMissingFiles(), - 'altered_files' => $this->upgradeContainer->getUpgradeSelfCheck()->getThemeAlteredFiles() + 'altered_files' => $this->upgradeContainer->getUpgradeSelfCheck()->getThemeAlteredFiles(), ]) ); } @@ -266,7 +263,7 @@ public function themeTemperedFilesDialog(): JsonResponse /** * @param array $params */ - private function getTemperedFilesDialog($params) + private function getTemperedFilesDialog($params): string { return $this->getTwig()->render( '@ModuleAutoUpgrade/dialogs/dialog-tempered-files.html.twig',