[ticket/14742] Fix comments in migrator

PHPBB3-14742
This commit is contained in:
Oliver Schramm 2016-08-20 03:35:38 +02:00
parent 488fd8f54c
commit e050cf5c11
5 changed files with 6 additions and 5 deletions

View file

@ -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;
} }

View file

@ -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;
} }

View file

@ -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;
} }

View file

@ -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;
} }

View file

@ -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;