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)
@@ 535-552 (lines=18) @@
532
			$this->deleteDocumentExtraVars($source_obj->get('module_srl'), $obj->document_srl, null, Context::getLangType());
533
			// Insert extra variables if the document successfully inserted.
534
			$extra_keys = $oDocumentModel->getExtraKeys($obj->module_srl);
535
			if(count($extra_keys))
536
			{
537
				foreach($extra_keys as $idx => $extra_item)
538
				{
539
					$value = NULL;
540
					if(isset($obj->{'extra_vars'.$idx}))
541
					{
542
						$tmp = $obj->{'extra_vars'.$idx};
543
						if(is_array($tmp))
544
							$value = implode('|@|', $tmp);
545
						else
546
							$value = trim($tmp);
547
					}
548
					else if(isset($obj->{$extra_item->name})) $value = trim($obj->{$extra_item->name});
549
					if($value == NULL) continue;
550
					$this->insertDocumentExtraVar($obj->module_srl, $obj->document_srl, $idx, $value, $extra_item->eid);
551
				}
552
			}
553
			// Inert extra vars for multi-language support of title and contents.
554
			if($extra_content->title) $this->insertDocumentExtraVar($obj->module_srl, $obj->document_srl, -1, $extra_content->title, 'title_'.Context::getLangType());
555
			if($extra_content->content) $this->insertDocumentExtraVar($obj->module_srl, $obj->document_srl, -2, $extra_content->content, 'content_'.Context::getLangType());