original_string: public function getImapStream($forceConnection = true) {
  		static $imapStream;
  		if($forceConnection) {
  			if($imapStream && (!is_resource($imapStream) || !imap_ping($imapStream))) {
  				$this->disconnect();
  				$imapStream = null;
  			}
  			if(!$imapStream) {
  				$imapStream = $this->initImapStream();
  			}
  		}
  		return $imapStream;
  	}
code: public function getImapStream($forceConnection = true) {
  		static $imapStream;
  		if($forceConnection) {
  			if($imapStream && (!is_resource($imapStream) || !imap_ping($imapStream))) {
  				$this->disconnect();
  				$imapStream = null;
  			}
  			if(!$imapStream) {
  				$imapStream = $this->initImapStream();
  			}
  		}
  		return $imapStream;
  	}
code_tokens: public function getImapStream ( $ forceConnection = true ) { static $ imapStream ; if ( $ forceConnection ) { if ( $ imapStream && ( ! is_resource ( $ imapStream ) || ! imap_ping ( $ imapStream ) ) ) { $ this -> disconnect ( ) ; $ imapStream = null ; } if ( ! $ imapStream ) { $ imapStream = $ this -> initImapStream ( ) ; } } return $ imapStream ; }
docstring: Get IMAP mailbox connection stream
  @param bool $forceConnection Initialize connection if it's not initialized
  @return null|resource
docstring_tokens: Get IMAP mailbox connection stream