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

modules/document/document.class.php 2 locations

@@ 231-244 (lines=14) @@
228
229
		// 2009. 03. 19: Add a column(eid)
230
		// 2009. 04. 12: Fixed the issue(#17922959) that changes another column values when adding eid column
231
		if(!$oDB->isColumnExists("document_extra_keys","eid"))
232
		{
233
			$oDB->addColumn("document_extra_keys","eid","varchar",40);
234
235
			$output = executeQuery('document.getGroupsExtraKeys', $obj);
236
			if($output->toBool() && $output->data && count($output->data)) {
237
				foreach($output->data as $extra_keys) {
238
					$args->module_srl = $extra_keys->module_srl;
239
					$args->var_idx = $extra_keys->idx;
240
					$args->new_eid = "extra_vars".$extra_keys->idx;
241
					$output = executeQuery('document.updateDocumentExtraKeyEid', $args);
242
				}
243
			}
244
		}
245
246
		if(!$oDB->isColumnExists("document_extra_vars","eid"))
247
		{
@@ 246-261 (lines=16) @@
243
			}
244
		}
245
246
		if(!$oDB->isColumnExists("document_extra_vars","eid"))
247
		{
248
			$oDB->addColumn("document_extra_vars","eid","varchar",40);
249
			$obj->var_idx = '-1,-2';
250
			$output = executeQuery('document.getGroupsExtraVars', $obj);
251
			if($output->toBool() && $output->data && count($output->data))
252
			{
253
				foreach($output->data as $extra_vars)
254
				{
255
					$args->module_srl = $extra_vars->module_srl;
256
					$args->var_idx = $extra_vars->idx;
257
					$args->new_eid = "extra_vars".$extra_vars->idx;
258
					$output = executeQuery('document.updateDocumentExtraVarEid', $args);
259
				}
260
			}
261
		}
262
263
		// 2011. 03. 30 Cubrid index Check the index in the document_extra_vars table
264
		if(!$oDB->isIndexExists("document_extra_vars", "idx_document_list_order"))