aboutsummaryrefslogtreecommitdiff
path: root/db
diff options
context:
space:
mode:
authorValentin Popov <info@valentineus.link>2018-10-22 02:55:15 +0300
committerValentin Popov <info@valentineus.link>2018-10-22 03:04:35 +0300
commitd8f5be667076ed3236b69125c1562337cf6f5fd2 (patch)
treea1ff00df9dcfc2cdef40cef256991921db3b1d2a /db
parent99c835a63d806874e943273dfb0afa3465fe1d92 (diff)
downloadlocal_webhooks-d8f5be667076ed3236b69125c1562337cf6f5fd2.tar.xz
local_webhooks-d8f5be667076ed3236b69125c1562337cf6f5fd2.zip
Moodle style fixes
Signed-off-by: Valentin Popov <info@valentineus.link>
Diffstat (limited to 'db')
-rw-r--r--db/upgrade.php12
1 files changed, 6 insertions, 6 deletions
diff --git a/db/upgrade.php b/db/upgrade.php
index 968c32e..d47312d 100644
--- a/db/upgrade.php
+++ b/db/upgrade.php
@@ -27,18 +27,18 @@ defined('MOODLE_INTERNAL') || die();
/**
* Function to upgrade 'local_webhooks'.
*
- * @param int $old_version
+ * @param int $oldversion
*
* @return boolean
* @throws \dml_exception
* @throws \downgrade_exception
* @throws \upgrade_exception
*/
-function xmldb_local_webhooks_upgrade($old_version = 0) {
+function xmldb_local_webhooks_upgrade($oldversion = 0) {
global $DB;
/* Update from versions 3.* */
- if ($old_version < 2017112600 || $old_version === 2018061900) {
+ if ($oldversion < 2017112600 || $oldversion === 2018061900) {
$rs = $DB->get_recordset('local_webhooks_service', null, 'id', '*', 0, 0);
foreach ($rs as $record) {
@@ -55,15 +55,15 @@ function xmldb_local_webhooks_upgrade($old_version = 0) {
/* Update from version 4.0.0-rc.1 */
- /* if ($old_version === 2017122900) {} */
+ /* if ($oldversion === 2017122900) {} */
/* Update from version 4.0.0-rc.2 */
- /* if ($old_version === 2018022200) {} */
+ /* if ($oldversion === 2018022200) {} */
/* Update from version 4.0.0-rc.3 */
- /* if ($old_version === 2018022500) {} */
+ /* if ($oldversion === 2018022500) {} */
return true;
} \ No newline at end of file