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

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