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

modules/document/document.model.php 2 locations

@@ 874-893 (lines=20) @@
871
	 * @param object $obj
872
	 * @return object
873
	 */
874
	function getMonthlyArchivedList($obj)
875
	{
876
		if($obj->mid)
877
		{
878
			$oModuleModel = getModel('module');
879
			$obj->module_srl = $oModuleModel->getModuleSrlByMid($obj->mid);
880
			unset($obj->mid);
881
		}
882
		// Module_srl passed the array may be a check whether the array
883
		$args = new stdClass;
884
		if(is_array($obj->module_srl)) $args->module_srl = implode(',', $obj->module_srl);
885
		else $args->module_srl = $obj->module_srl;
886
887
		$output = executeQuery('document.getMonthlyArchivedList', $args);
888
		if(!$output->toBool()||!$output->data) return $output;
889
890
		if(!is_array($output->data)) $output->data = array($output->data);
891
892
		return $output;
893
	}
894
895
	/**
896
	 * Bringing a month on the status of the daily posts
@@ 900-920 (lines=21) @@
897
	 * @param object $obj
898
	 * @return object
899
	 */
900
	function getDailyArchivedList($obj)
901
	{
902
		if($obj->mid)
903
		{
904
			$oModuleModel = getModel('module');
905
			$obj->module_srl = $oModuleModel->getModuleSrlByMid($obj->mid);
906
			unset($obj->mid);
907
		}
908
		// Module_srl passed the array may be a check whether the array
909
		$args = new stdClass;
910
		if(is_array($obj->module_srl)) $args->module_srl = implode(',', $obj->module_srl);
911
		else $args->module_srl = $obj->module_srl;
912
		$args->regdate = $obj->regdate;
913
914
		$output = executeQuery('document.getDailyArchivedList', $args);
915
		if(!$output->toBool()) return $output;
916
917
		if(!is_array($output->data)) $output->data = array($output->data);
918
919
		return $output;
920
	}
921
922
	/**
923
	 * Get a list for a particular module