diff options
| author | Oliver Schramm <oliver.schramm97@gmail.com> | 2016-08-20 03:35:38 +0200 |
|---|---|---|
| committer | Oliver Schramm <oliver.schramm97@gmail.com> | 2016-08-20 03:35:38 +0200 |
| commit | e050cf5c1163dc18e948ac0706b86743243d72f5 (patch) | |
| tree | 3c7c6f3a69ccd48dd158e9ddd1eef6435b19cc14 /phpBB/phpbb | |
| parent | 488fd8f54c1ef7f1703942477d014ac071e5cc56 (diff) | |
| download | forums-e050cf5c1163dc18e948ac0706b86743243d72f5.tar forums-e050cf5c1163dc18e948ac0706b86743243d72f5.tar.gz forums-e050cf5c1163dc18e948ac0706b86743243d72f5.tar.bz2 forums-e050cf5c1163dc18e948ac0706b86743243d72f5.tar.xz forums-e050cf5c1163dc18e948ac0706b86743243d72f5.zip | |
[ticket/14742] Fix comments in migrator
PHPBB3-14742
Diffstat (limited to 'phpBB/phpbb')
| -rw-r--r-- | phpBB/phpbb/db/migration/tool/config.php | 2 | ||||
| -rw-r--r-- | phpBB/phpbb/db/migration/tool/config_text.php | 2 | ||||
| -rw-r--r-- | phpBB/phpbb/db/migration/tool/module.php | 2 | ||||
| -rw-r--r-- | phpBB/phpbb/db/migration/tool/permission.php | 2 | ||||
| -rw-r--r-- | phpBB/phpbb/db/migrator.php | 3 |
5 files changed, 6 insertions, 5 deletions
diff --git a/phpBB/phpbb/db/migration/tool/config.php b/phpBB/phpbb/db/migration/tool/config.php index 2a76409db5..33aa8ff026 100644 --- a/phpBB/phpbb/db/migration/tool/config.php +++ b/phpBB/phpbb/db/migration/tool/config.php @@ -152,7 +152,7 @@ class config implements \phpbb\db\migration\tool\tool_interface break; case 'reverse': - // It's like double negative + // Reversing a reverse is just the call itself $call = array_shift($arguments); break; } diff --git a/phpBB/phpbb/db/migration/tool/config_text.php b/phpBB/phpbb/db/migration/tool/config_text.php index 21b8a8b3a0..54b45f6f6d 100644 --- a/phpBB/phpbb/db/migration/tool/config_text.php +++ b/phpBB/phpbb/db/migration/tool/config_text.php @@ -117,7 +117,7 @@ class config_text implements \phpbb\db\migration\tool\tool_interface break; case 'reverse': - // It's like double negative + // Reversing a reverse is just the call itself $call = array_shift($arguments); break; } diff --git a/phpBB/phpbb/db/migration/tool/module.php b/phpBB/phpbb/db/migration/tool/module.php index a6baf40dc1..59719db9a4 100644 --- a/phpBB/phpbb/db/migration/tool/module.php +++ b/phpBB/phpbb/db/migration/tool/module.php @@ -456,7 +456,7 @@ class module implements \phpbb\db\migration\tool\tool_interface break; case 'reverse': - // It's like double negative + // Reversing a reverse is just the call itself $call = array_shift($arguments); break; } diff --git a/phpBB/phpbb/db/migration/tool/permission.php b/phpBB/phpbb/db/migration/tool/permission.php index 3a1e2e344b..9688420025 100644 --- a/phpBB/phpbb/db/migration/tool/permission.php +++ b/phpBB/phpbb/db/migration/tool/permission.php @@ -639,7 +639,7 @@ class permission implements \phpbb\db\migration\tool\tool_interface break; case 'reverse': - // It's like double negative + // Reversing a reverse is just the call itself $call = array_shift($arguments); break; } diff --git a/phpBB/phpbb/db/migrator.php b/phpBB/phpbb/db/migrator.php index 65db4b74bf..9bfafd4d3f 100644 --- a/phpBB/phpbb/db/migrator.php +++ b/phpBB/phpbb/db/migrator.php @@ -530,7 +530,8 @@ class migrator // Set state to false since we reached the point we were at $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) { continue; |
