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

@@ 656-663 (lines=8) @@
653
		{
654
			if($sort_check->sort_index === 'list_order' || $sort_check->sort_index === 'update_order')
655
			{
656
				if($args->order_type === 'desc')
657
				{
658
					$args->{'rev_' . $sort_check->sort_index} = $oDocument->get($sort_check->sort_index);
659
				}
660
				else
661
				{
662
					$args->{$sort_check->sort_index} = $oDocument->get($sort_check->sort_index);
663
				}
664
			}
665
			elseif($sort_check->sort_index === 'regdate')
666
			{
@@ 665-677 (lines=13) @@
662
					$args->{$sort_check->sort_index} = $oDocument->get($sort_check->sort_index);
663
				}
664
			}
665
			elseif($sort_check->sort_index === 'regdate')
666
			{
667
668
				if($args->order_type === 'asc')
669
				{
670
					$args->{'rev_' . $sort_check->sort_index} = $oDocument->get($sort_check->sort_index);
671
				}
672
				else
673
				{
674
					$args->{$sort_check->sort_index} = $oDocument->get($sort_check->sort_index);
675
				}
676
677
			}
678
			else
679
			{
680
				return 1;