Formatting.

pull/57/merge
Mike Cao 11 years ago
parent 6a7622d99b
commit 3fde3685c5

@ -226,10 +226,14 @@ class Request {
return '';
}
/**
* Get variable from $_SERVER using $default if not provided
*/
private function server($var, $default='') {
return isset($_SERVER[$var]) ? $_SERVER[$var] : $default;
}
/**
* Get variable from $_SERVER using $default if not provided
*
* @param string $var Variable name
* @param string $default Default value to substitute
* @return string Server variable value
*/
private function server($var, $default='') {
return isset($_SERVER[$var]) ? $_SERVER[$var] : $default;
}
}

Loading…
Cancel
Save