mirror of
https://github.com/joomla-extensions/patchtester.git
synced 2024-12-22 10:58:58 +00:00
Codestyle fixes
Signed-off-by: Roland Dalmulder <contact@rolandd.com>
This commit is contained in:
parent
8e9d4cb0ff
commit
8b0f33e99e
@ -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
|
||||
|
@ -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',
|
||||
|
Loading…
Reference in New Issue
Block a user