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-20 lines in 2 locations

modules/module/module.controller.php 2 locations

@@ 126-145 (lines=20) @@
123
	 * @brief Delete module trigger
124
	 *
125
	 */
126
	function deleteModuleTriggers($module)
127
	{
128
		$args = new stdClass();
129
		$args->module = $module;
130
131
		$output = executeQuery('module.deleteModuleTriggers', $args);
132
		if($output->toBool())
133
		{
134
			//remove from cache
135
			$GLOBALS['__triggers__'] = NULL;
136
			$oCacheHandler = CacheHandler::getInstance('object', NULL, TRUE);
137
			if($oCacheHandler->isSupport())
138
			{
139
				$cache_key = 'triggers';
140
				$oCacheHandler->delete($cache_key);
141
			}
142
		}
143
144
		return $output;
145
	}
146
147
	/**
148
	 * @brief Add module extend
@@ 1087-1103 (lines=17) @@
1084
	/**
1085
	 * @brief Remove extra vars from the module
1086
	 */
1087
	function deleteModuleExtraVars($module_srl)
1088
	{
1089
		$args = new stdClass();
1090
		$args->module_srl = $module_srl;
1091
		$output = executeQuery('module.deleteModuleExtraVars', $args);
1092
1093
		//remove from cache
1094
		$oCacheHandler = CacheHandler::getInstance('object', null, true);
1095
		if($oCacheHandler->isSupport())
1096
		{
1097
			$object_key = 'module_extra_vars:'.$module_srl;
1098
			$cache_key = $oCacheHandler->getGroupKey('site_and_module', $object_key);
1099
			$oCacheHandler->delete($cache_key);
1100
		}
1101
1102
		return $output;
1103
	}
1104
1105
	/**
1106
	 * @brief Grant permission to the module