original_string: public static function getBucketLocation($bucket)
  	{
  		$rest = new S3Request('GET', $bucket, '', self::$endpoint);
  		$rest->setParameter('location', null);
  		$rest = $rest->getResponse();
  		if ($rest->error === false && $rest->code !== 200)
  			$rest->error = array('code' => $rest->code, 'message' => 'Unexpected HTTP status');
  		if ($rest->error !== false)
  		{
  			self::__triggerError(sprintf("S3::getBucketLocation({$bucket}): [%s] %s",
  			$rest->error['code'], $rest->error['message']), __FILE__, __LINE__);
  			return false;
  		}
  		return (isset($rest->body[0]) && (string)$rest->body[0] !== '') ? (string)$rest->body[0] : 'US';
  	}
code: public static function getBucketLocation($bucket)
  	{
  		$rest = new S3Request('GET', $bucket, '', self::$endpoint);
  		$rest->setParameter('location', null);
  		$rest = $rest->getResponse();
  		if ($rest->error === false && $rest->code !== 200)
  			$rest->error = array('code' => $rest->code, 'message' => 'Unexpected HTTP status');
  		if ($rest->error !== false)
  		{
  			self::__triggerError(sprintf("S3::getBucketLocation({$bucket}): [%s] %s",
  			$rest->error['code'], $rest->error['message']), __FILE__, __LINE__);
  			return false;
  		}
  		return (isset($rest->body[0]) && (string)$rest->body[0] !== '') ? (string)$rest->body[0] : 'US';
  	}
code_tokens: public static function getBucketLocation ( $ bucket ) { $ rest = new S3Request ( 'GET' , $ bucket , '' , self :: $ endpoint ) ; $ rest -> setParameter ( 'location' , null ) ; $ rest = $ rest -> getResponse ( ) ; if ( $ rest -> error === false && $ rest -> code !== 200 ) $ rest -> error = array ( 'code' => $ rest -> code , 'message' => 'Unexpected HTTP status' ) ; if ( $ rest -> error !== false ) { self :: __triggerError ( sprintf ( "S3::getBucketLocation({$bucket}): [%s] %s" , $ rest -> error [ 'code' ] , $ rest -> error [ 'message' ] ) , __FILE__ , __LINE__ ) ; return false ; } return ( isset ( $ rest -> body [ 0 ] ) && ( string ) $ rest -> body [ 0 ] !== '' ) ? ( string ) $ rest -> body [ 0 ] : 'US' ; }
docstring: Get a bucket's location
  
  @param string $bucket Bucket name
  @return string | false
docstring_tokens: Get a bucket s location