Formatting.

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

@ -226,10 +226,14 @@ class Request {
return ''; return '';
} }
/** /**
* Get variable from $_SERVER using $default if not provided * Get variable from $_SERVER using $default if not provided
*/ *
private function server($var, $default='') { * @param string $var Variable name
return isset($_SERVER[$var]) ? $_SERVER[$var] : $default; * @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