original_string: function isSubmitterValid($shortCode, $newSubmitter){
  		$getSubmittersRequest = new getSubmitters ();
  		$getSubmittersRequest->projectShortCode = $shortCode;
  		$submitters = $this->userProfileService->getSubmitters ( $getSubmittersRequest )->return;
  		if(isset($submitters)){
  			foreach ($submitters as &$submitter){
  				if(isset($submitter)){
  					$info = $submitter;
  					if(isset($submitter->userInfo)){
  						$info = $submitter->userInfo;
  					}
  					if($info->userName == $newSubmitter && ($info->enabled=='1' || $info->enabled==1 || $info->enabled=='true' || $info->enabled==true)){
  						return true;
  					}
  				}
  			}
  		}
  		return false;
  	}
code: function isSubmitterValid($shortCode, $newSubmitter){
  		$getSubmittersRequest = new getSubmitters ();
  		$getSubmittersRequest->projectShortCode = $shortCode;
  		$submitters = $this->userProfileService->getSubmitters ( $getSubmittersRequest )->return;
  		if(isset($submitters)){
  			foreach ($submitters as &$submitter){
  				if(isset($submitter)){
  					$info = $submitter;
  					if(isset($submitter->userInfo)){
  						$info = $submitter->userInfo;
  					}
  					if($info->userName == $newSubmitter && ($info->enabled=='1' || $info->enabled==1 || $info->enabled=='true' || $info->enabled==true)){
  						return true;
  					}
  				}
  			}
  		}
  		return false;
  	}
code_tokens: function isSubmitterValid ( $ shortCode , $ newSubmitter ) { $ getSubmittersRequest = new getSubmitters ( ) ; $ getSubmittersRequest -> projectShortCode = $ shortCode ; $ submitters = $ this -> userProfileService -> getSubmitters ( $ getSubmittersRequest ) -> return ; if ( isset ( $ submitters ) ) { foreach ( $ submitters as & $ submitter ) { if ( isset ( $ submitter ) ) { $ info = $ submitter ; if ( isset ( $ submitter -> userInfo ) ) { $ info = $ submitter -> userInfo ; } if ( $ info -> userName == $ newSubmitter && ( $ info -> enabled == '1' || $ info -> enabled == 1 || $ info -> enabled == 'true' || $ info -> enabled == true ) ) { return true ; } } } } return false ; }
docstring: Validate Submission submitter
  
  @param
  $shortCode
  Project shortcode
  @param
  $submitter
  Username to validate
docstring_tokens: Validate Submission submitter