diff options
-rw-r--r-- | inc/request.inc.php | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/inc/request.inc.php b/inc/request.inc.php index 0052fb24..515f723d 100644 --- a/inc/request.inc.php +++ b/inc/request.inc.php @@ -47,16 +47,19 @@ class Request } /** - * @return true iff the request is a GET request + * @return true iff the request is a POST request */ - public static function isPost() { - return $_SERVER['REQUEST_METHOD'] == 'POST'; + public static function isPost() + { + return $_SERVER['REQUEST_METHOD'] === 'POST'; } /** - * @return true iff the request is a POST request + * @return true iff the request is a GET request */ - public static function isGet() { - return $_SERVER['REQUEST_METHOD'] == 'GET'; + public static function isGet() + { + return $_SERVER['REQUEST_METHOD'] === 'GET'; } + } |