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
@@ 1099-1115 (lines=17) @@
1096
	/**
1097
	 * @brief Remove extra vars from the module
1098
	 */
1099
	function deleteModuleExtraVars($module_srl)
1100
	{
1101
		$args = new stdClass();
1102
		$args->module_srl = $module_srl;
1103
		$output = executeQuery('module.deleteModuleExtraVars', $args);
1104
1105
		//remove from cache
1106
		$oCacheHandler = CacheHandler::getInstance('object', null, true);
1107
		if($oCacheHandler->isSupport())
1108
		{
1109
			$object_key = 'module_extra_vars:'.$module_srl;
1110
			$cache_key = $oCacheHandler->getGroupKey('site_and_module', $object_key);
1111
			$oCacheHandler->delete($cache_key);
1112
		}
1113
1114
		return $output;
1115
	}
1116
1117
	/**
1118
	 * @brief Grant permission to the module