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 2 locations

modules/document/document.controller.php 2 locations

@@ 308-326 (lines=19) @@
305
		}
306
		// Insert extra variables if the document successfully inserted.
307
		$extra_keys = $oDocumentModel->getExtraKeys($obj->module_srl);
308
		if(count($extra_keys))
309
		{
310
			foreach($extra_keys as $idx => $extra_item)
311
			{
312
				$value = NULL;
313
				if(isset($obj->{'extra_vars'.$idx}))
314
				{
315
					$tmp = $obj->{'extra_vars'.$idx};
316
					if(is_array($tmp))
317
						$value = implode('|@|', $tmp);
318
					else
319
						$value = trim($tmp);
320
				}
321
				else if(isset($obj->{$extra_item->name})) $value = trim($obj->{$extra_item->name});
322
				if($value == NULL) continue;
323
324
				$this->insertDocumentExtraVar($obj->module_srl, $obj->document_srl, $idx, $value, $extra_item->eid);
325
			}
326
		}
327
		// Update the category if the category_srl exists.
328
		if($obj->category_srl) $this->updateCategoryCount($obj->module_srl, $obj->category_srl);
329
		// Call a trigger (after)
@@ 534-551 (lines=18) @@
531
			$this->deleteDocumentExtraVars($source_obj->get('module_srl'), $obj->document_srl, null, Context::getLangType());
532
			// Insert extra variables if the document successfully inserted.
533
			$extra_keys = $oDocumentModel->getExtraKeys($obj->module_srl);
534
			if(count($extra_keys))
535
			{
536
				foreach($extra_keys as $idx => $extra_item)
537
				{
538
					$value = NULL;
539
					if(isset($obj->{'extra_vars'.$idx}))
540
					{
541
						$tmp = $obj->{'extra_vars'.$idx};
542
						if(is_array($tmp))
543
							$value = implode('|@|', $tmp);
544
						else
545
							$value = trim($tmp);
546
					}
547
					else if(isset($obj->{$extra_item->name})) $value = trim($obj->{$extra_item->name});
548
					if($value == NULL) continue;
549
					$this->insertDocumentExtraVar($obj->module_srl, $obj->document_srl, $idx, $value, $extra_item->eid);
550
				}
551
			}
552
			// Inert extra vars for multi-language support of title and contents.
553
			if($extra_content->title) $this->insertDocumentExtraVar($obj->module_srl, $obj->document_srl, -1, $extra_content->title, 'title_'.Context::getLangType());
554
			if($extra_content->content) $this->insertDocumentExtraVar($obj->module_srl, $obj->document_srl, -2, $extra_content->content, 'content_'.Context::getLangType());