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

modules/board/board.controller.php 2 locations

@@ 353-378 (lines=26) @@
350
	/**
351
	 * @brief delete the comment
352
	 **/
353
	function procBoardDeleteComment()
354
	{
355
		// get the comment_srl
356
		$comment_srl = Context::get('comment_srl');
357
		if(!$comment_srl)
358
		{
359
			return $this->doError('msg_invalid_request');
360
		}
361
362
		// generate comment  controller object
363
		$oCommentController = getController('comment');
364
365
		$output = $oCommentController->deleteComment($comment_srl, $this->grant->manager);
366
		if(!$output->toBool())
367
		{
368
			return $output;
369
		}
370
371
		$this->add('mid', Context::get('mid'));
372
		$this->add('page', Context::get('page'));
373
		$this->add('document_srl', $output->get('document_srl'));
374
		if(Context::get('xeVirtualRequestMethod') !== 'xml')
375
		{
376
			$this->setMessage('success_deleted');
377
		}
378
	}
379
380
	/**
381
	 * @brief delete the tracjback
@@ 383-405 (lines=23) @@
380
	/**
381
	 * @brief delete the tracjback
382
	 **/
383
	function procBoardDeleteTrackback()
384
	{
385
		$trackback_srl = Context::get('trackback_srl');
386
387
		// generate trackback module controller object
388
		$oTrackbackController = getController('trackback');
389
390
		if(!$oTrackbackController) return;
391
392
		$output = $oTrackbackController->deleteTrackback($trackback_srl, $this->grant->manager);
393
		if(!$output->toBool())
394
		{
395
			return $output;
396
		}
397
398
		$this->add('mid', Context::get('mid'));
399
		$this->add('page', Context::get('page'));
400
		$this->add('document_srl', $output->get('document_srl'));
401
		if(Context::get('xeVirtualRequestMethod') !== 'xml')
402
		{
403
			$this->setMessage('success_deleted');
404
		}
405
	}
406
407
	/**
408
	 * @brief check the password for document and comment