original_string: public function determineIfLocal() {
  
  		// Default it to false
  		$this->local = false;
  
  		// Compare the MPD host a few different ways to try and determine if it's local to the Apache server
  		if( 	( stream_is_local( $this->socket )) ||
  			( $this->host == (isset($_SERVER["SERVER_ADDR"]) ? $_SERVER["SERVER_ADDR"] : getHostByName( getHostName() ))) ||
  			( $this->host == 'localhost' ) || 
  			( $this->host == '127.0.0.1' )) {
  
  			$this->local = true;
  		}
  	}
code: public function determineIfLocal() {
  
  		// Default it to false
  		$this->local = false;
  
  		// Compare the MPD host a few different ways to try and determine if it's local to the Apache server
  		if( 	( stream_is_local( $this->socket )) ||
  			( $this->host == (isset($_SERVER["SERVER_ADDR"]) ? $_SERVER["SERVER_ADDR"] : getHostByName( getHostName() ))) ||
  			( $this->host == 'localhost' ) || 
  			( $this->host == '127.0.0.1' )) {
  
  			$this->local = true;
  		}
  	}
code_tokens: public function determineIfLocal ( ) { // Default it to false $ this -> local = false ; // Compare the MPD host a few different ways to try and determine if it's local to the Apache server if ( ( stream_is_local ( $ this -> socket ) ) || ( $ this -> host == ( isset ( $ _SERVER [ "SERVER_ADDR" ] ) ? $ _SERVER [ "SERVER_ADDR" ] : getHostByName ( getHostName ( ) ) ) ) || ( $ this -> host == 'localhost' ) || ( $ this -> host == '127.0.0.1' ) ) { $ this -> local = true ; } }
docstring: determineIfLocal tries to determine if the connection to MPD is local
  @return bool
docstring_tokens: determineIfLocal tries to determine if the connection to MPD is local