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 = 27-29 lines in 2 locations

modules/comment/comment.item.php 1 location

@@ 352-378 (lines=27) @@
349
	 * Return summary content
350
	 * @return string
351
	 */
352
	function getSummary($str_size = 50, $tail = '...')
353
	{
354
		$content = $this->getContent(FALSE, FALSE);
355
356
		// for newline, insert a blank.
357
		$content = preg_replace('!(<br[\s]*/{0,1}>[\s]*)+!is', ' ', $content);
358
359
		// replace tags such as </p> , </div> , </li> by blanks.
360
		$content = str_replace(array('</p>', '</div>', '</li>', '-->'), ' ', $content);
361
362
		// Remove tags
363
		$content = preg_replace('!<([^>]*?)>!is', '', $content);
364
365
		// replace < , >, " 
366
		$content = str_replace(array('&lt;', '&gt;', '&quot;', '&nbsp;'), array('<', '>', '"', ' '), $content);
367
368
		// delete a series of blanks
369
		$content = preg_replace('/ ( +)/is', ' ', $content);
370
371
		// truncate strings
372
		$content = trim(cut_str($content, $str_size, $tail));
373
374
		// restore >, <, , "\
375
		$content = str_replace(array('<', '>', '"'), array('&lt;', '&gt;', '&quot;'), $content);
376
377
		return $content;
378
	}
379
380
	function getRegdate($format = 'Y.m.d H:i:s')
381
	{

modules/document/document.item.php 1 location

@@ 524-552 (lines=29) @@
521
		return $content;
522
	}
523
524
	function getSummary($str_size = 50, $tail = '...')
525
	{
526
		$content = $this->getContent(FALSE, FALSE);
527
		
528
		$content = nl2br($content);
529
530
		// For a newlink, inert a whitespace
531
		$content = preg_replace('!(<br[\s]*/{0,1}>[\s]*)+!is', ' ', $content);
532
533
		// Replace tags such as </p> , </div> , </li> and others to a whitespace
534
		$content = str_replace(array('</p>', '</div>', '</li>', '-->'), ' ', $content);
535
536
		// Remove Tags
537
		$content = preg_replace('!<([^>]*?)>!is', '', $content);
538
539
		// Replace < , >, "
540
		$content = str_replace(array('&lt;', '&gt;', '&quot;', '&nbsp;'), array('<', '>', '"', ' '), $content);
541
542
		// Delete  a series of whitespaces
543
		$content = preg_replace('/ ( +)/is', ' ', $content);
544
545
		// Truncate string
546
		$content = trim(cut_str($content, $str_size, $tail));
547
548
		// Replace back < , <, "
549
		$content = str_replace(array('<', '>', '"'),array('&lt;', '&gt;', '&quot;'), $content);
550
551
		return $content;
552
	}
553
554
	function getRegdate($format = 'Y.m.d H:i:s')
555
	{