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 = 15-16 lines in 2 locations

modules/member/member.admin.model.php 1 location

@@ 196-210 (lines=15) @@
193
	function getMemberAdminColorset()
194
	{
195
		$skin = Context::get('skin');
196
		if(!$skin) $tpl = "";
197
		else
198
		{
199
			$oModuleModel = getModel('module');
200
			$skin_info = $oModuleModel->loadSkinInfo($this->module_path, $skin);
201
			Context::set('skin_info', $skin_info);
202
203
			$oModuleModel = getModel('module');
204
			$config = $oModuleModel->getModuleConfig('member');
205
			if(!$config->colorset) $config->colorset = "white";
206
			Context::set('config', $config);
207
208
			$oTemplate = &TemplateHandler::getInstance();
209
			$tpl = $oTemplate->compile($this->module_path.'tpl', 'new_colorset_list');
210
		}
211
212
		$this->add('tpl', $tpl);
213
	}

modules/message/message.admin.model.php 1 location

@@ 11-26 (lines=16) @@
8
		Context::set('type', $type);
9
		$dir = $type == 'P' ? 'skins' : 'm.skins';
10
11
		if(!$skin)
12
		{
13
			$tpl = '';
14
		}
15
		else
16
		{
17
			$oModuleModel = getModel('module'); /* @var $oModuleModel moduleModel */
18
			$skin_info = $oModuleModel->loadSkinInfo($this->module_path, $skin, $dir);
19
			Context::set('skin_info', $skin_info);
20
21
			$config = $oModuleModel->getModuleConfig('message');
22
			Context::set('config', $config);
23
24
			$oTemplate = TemplateHandler::getInstance();
25
			$tpl = $oTemplate->compile($this->module_path.'tpl', 'colorset_list');
26
		}
27
28
		$this->add('tpl', $tpl);
29
	}