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 = 18-19 lines in 5 locations

modules/syndication/syndication.controller.php 5 locations

@@ 14-31 (lines=18) @@
11
{
12
	var $ping_message = '';
13
14
	function triggerInsertDocument(&$obj) {
15
		if($obj->module_srl < 1) return $this->makeObject();
16
17
		$oSyndicationModel = getModel('syndication');
18
		$oModuleModel = getModel('module');
19
20
		if($oSyndicationModel->isExceptedModules($obj->module_srl)) return $this->makeObject();
21
22
		$config = $oModuleModel->getModuleConfig('syndication');
23
24
		if($config->syndication_use!='Y') return $this->makeObject();
25
26
		$target_id = sprintf('%s-%s', $obj->module_srl, $obj->document_srl);
27
		$id = $oSyndicationModel->getID('article', $target_id);
28
		$this->ping($id, 'article');
29
30
		return $this->makeObject();
31
	}
32
33
	function triggerUpdateDocument(&$obj) {
34
		if($obj->module_srl < 1) return $this->makeObject();
@@ 33-50 (lines=18) @@
30
		return $this->makeObject();
31
	}
32
33
	function triggerUpdateDocument(&$obj) {
34
		if($obj->module_srl < 1) return $this->makeObject();
35
36
		$oSyndicationModel = getModel('syndication');
37
		$oModuleModel = getModel('module');
38
39
		if($oSyndicationModel->isExceptedModules($obj->module_srl)) return $this->makeObject();
40
41
		$config = $oModuleModel->getModuleConfig('syndication');
42
43
		if($config->syndication_use!='Y') return $this->makeObject();
44
45
		$target_id = sprintf('%s-%s', $obj->module_srl, $obj->document_srl);
46
		$id = $oSyndicationModel->getID('article', $target_id);
47
		$this->ping($id, 'article');
48
49
		return $this->makeObject();
50
	}
51
52
	function triggerDeleteDocument(&$obj) {
53
		if($obj->module_srl < 1) return $this->makeObject();
@@ 74-92 (lines=19) @@
71
	}
72
73
	// @deplicate
74
	function triggerDeleteModule(&$obj) {
75
		$oSyndicationModel = getModel('syndication');
76
		$oModuleModel = getModel('module');
77
78
		if($oSyndicationModel->isExceptedModules($obj->module_srl)) return $this->makeObject();
79
80
		$config = $oModuleModel->getModuleConfig('syndication');
81
82
		if($config->syndication_use!='Y') return $this->makeObject();
83
84
		$output = executeQuery('syndication.getExceptModule', $obj);
85
		if($output->data->count) return $this->makeObject();
86
		
87
88
		$id = $oSyndicationModel->getID('site', $obj->module_srl);
89
		$this->ping($id, 'deleted');
90
91
		return $this->makeObject();
92
	}
93
94
	function triggerMoveDocumentModule(&$obj)
95
	{
@@ 120-137 (lines=18) @@
117
		return $this->makeObject();
118
	}
119
120
	function triggerMoveDocumentToTrash(&$obj) {
121
		$oSyndicationModel = getModel('syndication');
122
		$oModuleModel = getModel('module');
123
124
		if($oSyndicationModel->isExceptedModules($obj->module_srl)) return $this->makeObject();
125
126
		$config = $oModuleModel->getModuleConfig('syndication');
127
128
		if($config->syndication_use!='Y') return $this->makeObject();
129
130
		$this->insertLog($obj->module_srl, $obj->document_srl, '', '');
131
132
		$target_id = sprintf('%s-%s', $obj->module_srl, $obj->document_srl);
133
		$id = $oSyndicationModel->getID('article', $target_id);
134
		$this->ping($id, 'deleted');
135
136
		return $this->makeObject();
137
	}
138
139
	function triggerRestoreTrash(&$obj) {
140
		$oSyndicationModel = getModel('syndication');
@@ 139-157 (lines=19) @@
136
		return $this->makeObject();
137
	}
138
139
	function triggerRestoreTrash(&$obj) {
140
		$oSyndicationModel = getModel('syndication');
141
		$oModuleModel = getModel('module');
142
143
		if($oSyndicationModel->isExceptedModules($obj->module_srl)) return $this->makeObject();
144
145
		$config = $oModuleModel->getModuleConfig('syndication');
146
147
		if($config->syndication_use!='Y') return $this->makeObject();
148
149
		// 신디케이션 삭제 로그 제거
150
		$this->deleteLog($obj->module_srl, $obj->document_srl);
151
152
		$target_id = sprintf('%s-%s', $obj->module_srl, $obj->document_srl);
153
		$id = $oSyndicationModel->getID('article', $target_id);
154
		$this->ping($id, 'article');
155
156
		return $this->makeObject();
157
	}
158
159
	function insertLog($module_srl, $document_srl, $title = null, $summary = null)
160
	{