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

myth/Api/Server/ApiController.php 2 locations

@@ 576-608 (lines=33) @@
573
	 *
574
	 * @return string
575
	 */
576
	public function nextURL($path, $clean_get = false)
577
	{
578
		// If paging is turned off, get out of here
579
		if ($this->per_page == 0)
580
		{
581
			return null;
582
		}
583
584
		$params = [];
585
586
		$params['page'] = ($this->page > 1 ? $this->page + 1 : 2);
587
588
		if (! $clean_get)
589
		{
590
			if ( ! isset($_GET) || ! is_array($_GET) )
591
			{
592
				$_GET = [];
593
			}
594
595
			foreach ( $_GET as $key => $value )
596
			{
597
				$params[ $key ] = $value;
598
			}
599
600
			// Ensure we get a correct per_page value
601
			if (! array_key_exists('per_page', $params))
602
			{
603
				$params['per_page'] = $this->per_page;
604
			}
605
		}
606
607
		return site_url($path) .'?'. http_build_query($params);
608
	}
609
610
	//--------------------------------------------------------------------
611
@@ 628-660 (lines=33) @@
625
	 *
626
	 * @return string
627
	 */
628
	public function prevURL ($path, $clean_get = false)
629
	{
630
		// If paging is turned off, get out of here
631
		if ($this->per_page == 0)
632
		{
633
			return null;
634
		}
635
636
		$params = [];
637
638
		$params['page'] = ($this->page > 1 ? $this->page - 1 : 1);
639
640
		if (! $clean_get)
641
		{
642
			if ( ! isset($_GET) || ! is_array($_GET) )
643
			{
644
				$_GET = [];
645
			}
646
647
			foreach ( $_GET as $key => $value )
648
			{
649
				$params[$key] = $value;
650
			}
651
652
			// Ensure we get a correct per_page value
653
			if (! array_key_exists('per_page', $params))
654
			{
655
				$params['per_page'] = $this->per_page;
656
			}
657
		}
658
659
		return site_url($path) .'?'. http_build_query($params);
660
	}
661
662
	//--------------------------------------------------------------------
663