summaryrefslogtreecommitdiffstats
path: root/inc/request.inc.php
diff options
context:
space:
mode:
authorSimon Rettberg2016-06-16 11:54:46 +0200
committerSimon Rettberg2016-06-16 11:54:46 +0200
commita22271102b72e87289afdd81a1d74904bbbe19df (patch)
treee6a249b48cefe23c9496f2e8eda590d7e613a394 /inc/request.inc.php
parentMerge branch 'modularization' of git.openslx.org:openslx-ng/slx-admin into mo... (diff)
downloadslx-admin-a22271102b72e87289afdd81a1d74904bbbe19df.tar.gz
slx-admin-a22271102b72e87289afdd81a1d74904bbbe19df.tar.xz
slx-admin-a22271102b72e87289afdd81a1d74904bbbe19df.zip
[Request] fix comments of isGet and isPost :)
Diffstat (limited to 'inc/request.inc.php')
-rw-r--r--inc/request.inc.php15
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';
}
+
}