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

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