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 = 23-23 lines in 3 locations

modules/member/member.controller.php 3 locations

@@ 731-753 (lines=23) @@
728
	 *
729
	 * @return void|Object (void : success, Object : fail)
730
	 */
731
	function procMemberInsertProfileImage()
732
	{
733
		// Check if the file is successfully uploaded
734
		$file = $_FILES['profile_image'];
735
		if(!is_uploaded_file($file['tmp_name'])) return $this->stop('msg_not_uploaded_profile_image');
736
		// Ignore if member_srl is invalid or doesn't exist.
737
		$member_srl = Context::get('member_srl');
738
		if(!$member_srl) return $this->stop('msg_not_uploaded_profile_image');
739
740
		$logged_info = Context::get('logged_info');
741
		if($logged_info->is_admin != 'Y' && $logged_info->member_srl != $member_srl) return $this->stop('msg_not_uploaded_profile_image');
742
		// Return if member module is set not to use an image name or the user is not an administrator ;
743
		$oModuleModel = getModel('module');
744
		$config = $oModuleModel->getModuleConfig('member');
745
		if($logged_info->is_admin != 'Y' && $config->profile_image != 'Y') return $this->stop('msg_not_uploaded_profile_image');
746
747
		$this->insertProfileImage($member_srl, $file['tmp_name']);
748
		// Page refresh
749
		//$this->setRefreshPage();
750
751
		$returnUrl = Context::get('success_return_url') ? Context::get('success_return_url') : getNotEncodedUrl('', 'mid', Context::get('mid'), 'act', 'dispMemberModifyInfo');
752
		$this->setRedirectUrl($returnUrl);
753
	}
754
755
	/**
756
	 * Insert a profile image
@@ 810-832 (lines=23) @@
807
	 *
808
	 * @return void|Object (void : success, Object : fail)
809
	 */
810
	function procMemberInsertImageName()
811
	{
812
		// Check if the file is successfully uploaded
813
		$file = $_FILES['image_name'];
814
		if(!is_uploaded_file($file['tmp_name'])) return $this->stop('msg_not_uploaded_image_name');
815
		// Ignore if member_srl is invalid or doesn't exist.
816
		$member_srl = Context::get('member_srl');
817
		if(!$member_srl) return $this->stop('msg_not_uploaded_image_name');
818
819
		$logged_info = Context::get('logged_info');
820
		if($logged_info->is_admin != 'Y' && $logged_info->member_srl != $member_srl) return $this->stop('msg_not_uploaded_image_name');
821
		// Return if member module is set not to use an image name or the user is not an administrator ;
822
		$oModuleModel = getModel('module');
823
		$config = $oModuleModel->getModuleConfig('member');
824
		if($logged_info->is_admin != 'Y' && $config->image_name != 'Y') return $this->stop('msg_not_uploaded_image_name');
825
826
		$this->insertImageName($member_srl, $file['tmp_name']);
827
		// Page refresh
828
		//$this->setRefreshPage();
829
830
		$returnUrl = Context::get('success_return_url') ? Context::get('success_return_url') : getNotEncodedUrl('', 'mid', Context::get('mid'), 'act', 'dispMemberModifyInfo');
831
		$this->setRedirectUrl($returnUrl);
832
	}
833
834
	/**
835
	 * Insert a image name
@@ 919-941 (lines=23) @@
916
	 *
917
	 * @return void|Object (void : success, Object : fail)
918
	 */
919
	function procMemberInsertImageMark()
920
	{
921
		// Check if the file is successfully uploaded
922
		$file = $_FILES['image_mark'];
923
		if(!is_uploaded_file($file['tmp_name'])) return $this->stop('msg_not_uploaded_image_mark');
924
		// Ignore if member_srl is invalid or doesn't exist.
925
		$member_srl = Context::get('member_srl');
926
		if(!$member_srl) return $this->stop('msg_not_uploaded_image_mark');
927
928
		$logged_info = Context::get('logged_info');
929
		if($logged_info->is_admin != 'Y' && $logged_info->member_srl != $member_srl) return $this->stop('msg_not_uploaded_image_mark');
930
		// Membership in the images mark the module using the ban was set by an administrator or return;
931
		$oModuleModel = getModel('module');
932
		$config = $oModuleModel->getModuleConfig('member');
933
		if($logged_info->is_admin != 'Y' && $config->image_mark != 'Y') return $this->stop('msg_not_uploaded_image_mark');
934
935
		$this->insertImageMark($member_srl, $file['tmp_name']);
936
		// Page refresh
937
		//$this->setRefreshPage();
938
939
		$returnUrl = Context::get('success_return_url') ? Context::get('success_return_url') : getNotEncodedUrl('', 'mid', Context::get('mid'), 'act', 'dispMemberModifyInfo');
940
		$this->setRedirectUrl($returnUrl);
941
	}
942
943
	/**
944
	 * Insert a image mark