From a22271102b72e87289afdd81a1d74904bbbe19df Mon Sep 17 00:00:00 2001 From: Simon Rettberg Date: Thu, 16 Jun 2016 11:54:46 +0200 Subject: [Request] fix comments of isGet and isPost :) --- inc/request.inc.php | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) (limited to 'inc/request.inc.php') 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'; } + } -- cgit v1.2.3-55-g7522