mirror of
https://github.com/joomla-extensions/patchtester.git
synced 2024-11-15 17:47:10 +00:00
Merge pull request #248 from richard67/4.0-dev-fix-php-notices-controller
Fix PHP notice in ResetController
This commit is contained in:
commit
872b4fabdd
@ -35,7 +35,8 @@ class ResetController extends AbstractController
|
|||||||
{
|
{
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
$hasErrors = false;
|
$hasErrors = false;
|
||||||
|
$revertErrored = false;
|
||||||
|
|
||||||
$pullModel = new PullModel(null, Factory::getDbo());
|
$pullModel = new PullModel(null, Factory::getDbo());
|
||||||
$pullsModel = new PullsModel($this->context, null, Factory::getDbo());
|
$pullsModel = new PullsModel($this->context, null, Factory::getDbo());
|
||||||
@ -46,8 +47,6 @@ class ResetController extends AbstractController
|
|||||||
|
|
||||||
if (count($appliedPatches['git']))
|
if (count($appliedPatches['git']))
|
||||||
{
|
{
|
||||||
$revertErrored = false;
|
|
||||||
|
|
||||||
// Let's try to cleanly revert all applied patches
|
// Let's try to cleanly revert all applied patches
|
||||||
foreach ($appliedPatches['git'] as $patch)
|
foreach ($appliedPatches['git'] as $patch)
|
||||||
{
|
{
|
||||||
@ -64,8 +63,6 @@ class ResetController extends AbstractController
|
|||||||
|
|
||||||
if (count($appliedPatches['ci']))
|
if (count($appliedPatches['ci']))
|
||||||
{
|
{
|
||||||
$revertErrored = false;
|
|
||||||
|
|
||||||
// Let's try to cleanly revert all applied patches with ci
|
// Let's try to cleanly revert all applied patches with ci
|
||||||
foreach ($appliedPatches['ci'] as $patch)
|
foreach ($appliedPatches['ci'] as $patch)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user