GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.

Code Duplication    Length = 17-27 lines in 3 locations

modules/addon/addon.class.php 1 location

@@ 38-64 (lines=27) @@
35
	 *
36
	 * @return bool
37
	 */
38
	function checkUpdate()
39
	{
40
		$oDB = DB::getInstance();
41
		$oModuleModel = getModel('module');
42
		$oModuleController = getController('module');
43
		$version_update_id = implode('.', array(__CLASS__, __XE_VERSION__, 'updated'));
44
		{
45
			if(!$oDB->isColumnExists("addons", "is_used_m"))
46
			{
47
				return TRUE;
48
			}
49
			if(!$oDB->isColumnExists("addons_site", "is_used_m"))
50
			{
51
				return TRUE;
52
			}
53
54
			// 2011. 7. 29. add is_fixed column
55
			if(!$oDB->isColumnExists('addons', 'is_fixed'))
56
			{
57
				return TRUE;
58
			}
59
60
			$oModuleController->insertUpdatedLog($version_update_id);
61
		}
62
63
		return FALSE;
64
	}
65
66
	/**
67
	 * Execute update

modules/counter/counter.class.php 1 location

@@ 34-57 (lines=24) @@
31
	 *
32
	 * @return bool
33
	 */
34
	function checkUpdate()
35
	{
36
		// Add site_srl to the counter
37
		$oDB = DB::getInstance();
38
		$oModuleModel = getModel('module');
39
		$oModuleController = getController('module');
40
		$version_update_id = implode('.', array(__CLASS__, __XE_VERSION__, 'updated'));
41
		if($oModuleModel->needUpdate($version_update_id))
42
		{
43
			if(!$oDB->isColumnExists('counter_log', 'site_srl'))
44
			{
45
				return TRUE;
46
			}
47
48
			if(!$oDB->isIndexExists('counter_log', 'idx_site_counter_log'))
49
			{
50
				return TRUE;
51
			}
52
53
			$oModuleController->insertUpdatedLog($version_update_id);
54
		}
55
56
		return FALSE;
57
	}
58
59
	/**
60
	 * Module update

modules/session/session.class.php 1 location

@@ 35-51 (lines=17) @@
32
	/**
33
	 * @brief A method to check if the installation has been successful
34
	 */
35
	function checkUpdate()
36
	{
37
		$oDB = &DB::getInstance();
38
		$oModuleModel = getModel('module');
39
		$oModuleController = getController('module');
40
		$version_update_id = implode('.', array(__CLASS__, __XE_VERSION__, 'updated'));
41
		if($oModuleModel->needUpdate($version_update_id))
42
		{
43
			if(!$oDB->isTableExists('session')) return true;
44
			if(!$oDB->isColumnExists("session","cur_mid")) return true;
45
			if(!$oDB->isIndexExists("session","idx_session_update_mid")) return true;
46
47
			$oModuleController->insertUpdatedLog($version_update_id);
48
		}
49
50
		return false;
51
	}
52
53
	/**
54
	 * @brief Execute update