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

modules/document/document.model.php 2 locations

@@ 663-670 (lines=8) @@
660
		{
661
			if($sort_check->sort_index === 'list_order' || $sort_check->sort_index === 'update_order')
662
			{
663
				if($args->order_type === 'desc')
664
				{
665
					$args->{'rev_' . $sort_check->sort_index} = $oDocument->get($sort_check->sort_index);
666
				}
667
				else
668
				{
669
					$args->{$sort_check->sort_index} = $oDocument->get($sort_check->sort_index);
670
				}
671
			}
672
			elseif($sort_check->sort_index === 'regdate')
673
			{
@@ 672-684 (lines=13) @@
669
					$args->{$sort_check->sort_index} = $oDocument->get($sort_check->sort_index);
670
				}
671
			}
672
			elseif($sort_check->sort_index === 'regdate')
673
			{
674
675
				if($args->order_type === 'asc')
676
				{
677
					$args->{'rev_' . $sort_check->sort_index} = $oDocument->get($sort_check->sort_index);
678
				}
679
				else
680
				{
681
					$args->{$sort_check->sort_index} = $oDocument->get($sort_check->sort_index);
682
				}
683
684
			}
685
			else
686
			{
687
				return 1;