From 8b0f33e99e03f7134f65315e444be68105bbbac7 Mon Sep 17 00:00:00 2001 From: Roland Dalmulder Date: Fri, 25 Aug 2023 22:44:21 +0200 Subject: [PATCH] Codestyle fixes Signed-off-by: Roland Dalmulder --- .../com_patchtester/src/Extension/PatchtesterComponent.php | 3 +-- .../components/com_patchtester/src/Model/PullModel.php | 4 ++++ 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/administrator/components/com_patchtester/src/Extension/PatchtesterComponent.php b/administrator/components/com_patchtester/src/Extension/PatchtesterComponent.php index f9f95d0..8be0291 100644 --- a/administrator/components/com_patchtester/src/Extension/PatchtesterComponent.php +++ b/administrator/components/com_patchtester/src/Extension/PatchtesterComponent.php @@ -22,8 +22,7 @@ use Psr\Container\ContainerInterface; * * @since 4.0.0 */ -class PatchtesterComponent extends MVCComponent - implements BootableExtensionInterface +class PatchtesterComponent extends MVCComponent implements BootableExtensionInterface { /** * Booting the extension. This is the function to set up the environment of the extension like diff --git a/administrator/components/com_patchtester/src/Model/PullModel.php b/administrator/components/com_patchtester/src/Model/PullModel.php index 2b7f74c..e1198c3 100644 --- a/administrator/components/com_patchtester/src/Model/PullModel.php +++ b/administrator/components/com_patchtester/src/Model/PullModel.php @@ -40,6 +40,7 @@ use stdClass; class PullModel extends BaseDatabaseModel { use GithubCredentialsTrait; + /** * Array containing top level non-production folders * @@ -54,6 +55,7 @@ class PullModel extends BaseDatabaseModel 'tests', '.github', ]; + /** * Array containing non-production files * @@ -172,6 +174,7 @@ class PullModel extends BaseDatabaseModel 'userAgent', $version->getUserAgent('Joomla', true, false) ); + // Try to download the zip file try { $http = HttpFactory::getHttp($httpOption); @@ -275,6 +278,7 @@ class PullModel extends BaseDatabaseModel } catch (RuntimeException $exception) { Folder::delete($tempPath); Folder::move($backupsPath, $backupsPath . '_failed'); + throw new RuntimeException( Text::sprintf( 'COM_PATCHTESTER_FAILED_APPLYING_PATCH',