mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 06:08:52 +00:00
[ticket/14742] Fix comments in migrator
PHPBB3-14742
This commit is contained in:
parent
488fd8f54c
commit
e050cf5c11
5 changed files with 6 additions and 5 deletions
|
@ -152,7 +152,7 @@ class config implements \phpbb\db\migration\tool\tool_interface
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 'reverse':
|
case 'reverse':
|
||||||
// It's like double negative
|
// Reversing a reverse is just the call itself
|
||||||
$call = array_shift($arguments);
|
$call = array_shift($arguments);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
|
@ -117,7 +117,7 @@ class config_text implements \phpbb\db\migration\tool\tool_interface
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 'reverse':
|
case 'reverse':
|
||||||
// It's like double negative
|
// Reversing a reverse is just the call itself
|
||||||
$call = array_shift($arguments);
|
$call = array_shift($arguments);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
|
@ -456,7 +456,7 @@ class module implements \phpbb\db\migration\tool\tool_interface
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 'reverse':
|
case 'reverse':
|
||||||
// It's like double negative
|
// Reversing a reverse is just the call itself
|
||||||
$call = array_shift($arguments);
|
$call = array_shift($arguments);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
|
@ -639,7 +639,7 @@ class permission implements \phpbb\db\migration\tool\tool_interface
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 'reverse':
|
case 'reverse':
|
||||||
// It's like double negative
|
// Reversing a reverse is just the call itself
|
||||||
$call = array_shift($arguments);
|
$call = array_shift($arguments);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
|
@ -530,7 +530,8 @@ class migrator
|
||||||
// Set state to false since we reached the point we were at
|
// Set state to false since we reached the point we were at
|
||||||
$state = false;
|
$state = false;
|
||||||
|
|
||||||
// There is a tendency to get stuck in some cases
|
// If the last result is null or true, this means
|
||||||
|
// the last method call was finished and we can move on
|
||||||
if ($last_result === null || $last_result === true)
|
if ($last_result === null || $last_result === true)
|
||||||
{
|
{
|
||||||
continue;
|
continue;
|
||||||
|
|
Loading…
Add table
Reference in a new issue