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

@@ 538-566 (lines=29) @@
535
		return $content;
536
	}
537
538
	function getSummary($str_size = 50, $tail = '...')
539
	{
540
		$content = $this->getContent(FALSE, FALSE);
541
		
542
		$content = nl2br($content);
543
544
		// For a newlink, inert a whitespace
545
		$content = preg_replace('!(<br[\s]*/{0,1}>[\s]*)+!is', ' ', $content);
546
547
		// Replace tags such as </p> , </div> , </li> and others to a whitespace
548
		$content = str_replace(array('</p>', '</div>', '</li>', '-->'), ' ', $content);
549
550
		// Remove Tags
551
		$content = preg_replace('!<([^>]*?)>!is', '', $content);
552
553
		// Replace < , >, "
554
		$content = str_replace(array('&lt;', '&gt;', '&quot;', '&nbsp;'), array('<', '>', '"', ' '), $content);
555
556
		// Delete  a series of whitespaces
557
		$content = preg_replace('/ ( +)/is', ' ', $content);
558
559
		// Truncate string
560
		$content = trim(cut_str($content, $str_size, $tail));
561
562
		// Replace back < , <, "
563
		$content = str_replace(array('<', '>', '"'),array('&lt;', '&gt;', '&quot;'), $content);
564
565
		return $content;
566
	}
567
568
	function getRegdate($format = 'Y.m.d H:i:s')
569
	{