Codestyle fixes

Signed-off-by: Roland Dalmulder <contact@rolandd.com>
This commit is contained in:
Roland Dalmulder 2023-08-25 22:44:21 +02:00
parent 8e9d4cb0ff
commit 8b0f33e99e
No known key found for this signature in database
GPG Key ID: 6D30CD38749A5B9E
2 changed files with 5 additions and 2 deletions

View File

@ -22,8 +22,7 @@ use Psr\Container\ContainerInterface;
* *
* @since 4.0.0 * @since 4.0.0
*/ */
class PatchtesterComponent extends MVCComponent class PatchtesterComponent extends MVCComponent implements BootableExtensionInterface
implements BootableExtensionInterface
{ {
/** /**
* Booting the extension. This is the function to set up the environment of the extension like * Booting the extension. This is the function to set up the environment of the extension like

View File

@ -40,6 +40,7 @@ use stdClass;
class PullModel extends BaseDatabaseModel class PullModel extends BaseDatabaseModel
{ {
use GithubCredentialsTrait; use GithubCredentialsTrait;
/** /**
* Array containing top level non-production folders * Array containing top level non-production folders
* *
@ -54,6 +55,7 @@ class PullModel extends BaseDatabaseModel
'tests', 'tests',
'.github', '.github',
]; ];
/** /**
* Array containing non-production files * Array containing non-production files
* *
@ -172,6 +174,7 @@ class PullModel extends BaseDatabaseModel
'userAgent', 'userAgent',
$version->getUserAgent('Joomla', true, false) $version->getUserAgent('Joomla', true, false)
); );
// Try to download the zip file // Try to download the zip file
try { try {
$http = HttpFactory::getHttp($httpOption); $http = HttpFactory::getHttp($httpOption);
@ -275,6 +278,7 @@ class PullModel extends BaseDatabaseModel
} catch (RuntimeException $exception) { } catch (RuntimeException $exception) {
Folder::delete($tempPath); Folder::delete($tempPath);
Folder::move($backupsPath, $backupsPath . '_failed'); Folder::move($backupsPath, $backupsPath . '_failed');
throw new RuntimeException( throw new RuntimeException(
Text::sprintf( Text::sprintf(
'COM_PATCHTESTER_FAILED_APPLYING_PATCH', 'COM_PATCHTESTER_FAILED_APPLYING_PATCH',