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 = 22-23 lines in 2 locations

modules/member/member.view.php 2 locations

@@ 357-379 (lines=23) @@
354
	/**
355
	 * @brief Display documents scrapped by the member
356
	 */
357
	function dispMemberScrappedDocument()
358
	{
359
		$oMemberModel = getModel('member');
360
		// A message appears if the user is not logged-in
361
		if(!$oMemberModel->isLogged()) return $this->stop('msg_not_logged');
362
363
		$logged_info = Context::get('logged_info');
364
		$args = new stdClass();
365
		$args->member_srl = $logged_info->member_srl;
366
		$args->page = (int)Context::get('page');
367
368
		$output = executeQuery('member.getScrapDocumentList', $args);
369
		Context::set('total_count', $output->total_count);
370
		Context::set('total_page', $output->total_page);
371
		Context::set('page', $output->page);
372
		Context::set('document_list', $output->data);
373
		Context::set('page_navigation', $output->page_navigation);
374
375
		$security = new Security($output->data);
376
		$security->encodeHTML('..nick_name');
377
378
		$this->setTemplateFile('scrapped_list');
379
	}
380
381
	/**
382
	 * @brief Display documents saved by the member
@@ 384-405 (lines=22) @@
381
	/**
382
	 * @brief Display documents saved by the member
383
	 */
384
	function dispMemberSavedDocument()
385
	{
386
		$oMemberModel = getModel('member');
387
		// A message appears if the user is not logged-in
388
		if(!$oMemberModel->isLogged()) return $this->stop('msg_not_logged');
389
		// Get the saved document(module_srl is set to member_srl instead)
390
		$logged_info = Context::get('logged_info');
391
		$args = new stdClass();
392
		$args->member_srl = $logged_info->member_srl;
393
		$args->page = (int)Context::get('page');
394
		$args->statusList = array('TEMP');
395
396
		$oDocumentModel = getModel('document');
397
		$output = $oDocumentModel->getDocumentList($args, true);
398
		Context::set('total_count', $output->total_count);
399
		Context::set('total_page', $output->total_page);
400
		Context::set('page', $output->page);
401
		Context::set('document_list', $output->data);
402
		Context::set('page_navigation', $output->page_navigation);
403
404
		$this->setTemplateFile('saved_list');
405
	}
406
407
	/**
408
	 * @brief Display the login form