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

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