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