original_string: private function getConnectorUrl() {
  		$url  = ((isset($_SERVER['HTTPS']) && strtolower($_SERVER['HTTPS']) !== 'off')? 'https://' : 'http://')
  		       . $_SERVER['SERVER_NAME']                                              // host
  		      . ($_SERVER['SERVER_PORT'] == 80 ? '' : ':' . $_SERVER['SERVER_PORT'])  // port
  		       . $_SERVER['REQUEST_URI'];                                             // path & query
  		list($url) = explode('?', $url);
  		return $url;
  	}
code: private function getConnectorUrl() {
  		$url  = ((isset($_SERVER['HTTPS']) && strtolower($_SERVER['HTTPS']) !== 'off')? 'https://' : 'http://')
  		       . $_SERVER['SERVER_NAME']                                              // host
  		      . ($_SERVER['SERVER_PORT'] == 80 ? '' : ':' . $_SERVER['SERVER_PORT'])  // port
  		       . $_SERVER['REQUEST_URI'];                                             // path & query
  		list($url) = explode('?', $url);
  		return $url;
  	}
code_tokens: private function getConnectorUrl ( ) { $ url = ( ( isset ( $ _SERVER [ 'HTTPS' ] ) && strtolower ( $ _SERVER [ 'HTTPS' ] ) !== 'off' ) ? 'https://' : 'http://' ) . $ _SERVER [ 'SERVER_NAME' ] // host . ( $ _SERVER [ 'SERVER_PORT' ] == 80 ? '' : ':' . $ _SERVER [ 'SERVER_PORT' ] ) // port . $ _SERVER [ 'REQUEST_URI' ] ; // path & query list ( $ url ) = explode ( '?' , $ url ) ; return $ url ; }
docstring: Get script url
  
  @return string full URL
  @author Naoki Sawada
docstring_tokens: Get script url