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.model.php 2 locations

@@ 180-195 (lines=16) @@
177
		if(!is_array($document_list)) $document_list = array($document_list);
178
179
		$document_count = count($document_list);
180
		foreach($document_list as $key => $attribute)
181
		{
182
			$document_srl = $attribute->document_srl;
183
			if(!$document_srl) continue;
184
185
			if(!$GLOBALS['XE_DOCUMENT_LIST'][$document_srl])
186
			{
187
				$oDocument = null;
188
				$oDocument = new documentItem();
189
				$oDocument->setAttribute($attribute, false);
190
				if($is_admin) $oDocument->setGrant();
191
				$GLOBALS['XE_DOCUMENT_LIST'][$document_srl] = $oDocument;
192
			}
193
194
			$result[$attribute->document_srl] = $GLOBALS['XE_DOCUMENT_LIST'][$document_srl];
195
		}
196
197
		if($load_extra_vars) $this->setToAllDocumentExtraVars();
198
@@ 361-374 (lines=14) @@
358
		$output = executeQueryArray('document.getNoticeList', $args, $columnList);
359
		if(!$output->toBool()||!$output->data) return;
360
361
		foreach($output->data as $key => $val)
362
		{
363
			$document_srl = $val->document_srl;
364
			if(!$document_srl) continue;
365
366
			if(!$GLOBALS['XE_DOCUMENT_LIST'][$document_srl])
367
			{
368
				$oDocument = null;
369
				$oDocument = new documentItem();
370
				$oDocument->setAttribute($val, false);
371
				$GLOBALS['XE_DOCUMENT_LIST'][$document_srl] = $oDocument;
372
			}
373
			$result->data[$document_srl] = $GLOBALS['XE_DOCUMENT_LIST'][$document_srl];
374
		}
375
		$this->setToAllDocumentExtraVars();
376
377
		foreach($result->data as $document_srl => $val)