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
*/
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

View File

@ -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',