mirror of
https://github.com/joomla-extensions/patchtester.git
synced 2024-12-22 19:09:00 +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
|
* @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
|
||||||
|
@ -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',
|
||||||
|
Loading…
Reference in New Issue
Block a user