Skip to content

Commit fe8eb48

Browse files
Extracted one more constant in class
Signed-off-by: Christian Wolf <[email protected]>
1 parent ca52a4c commit fe8eb48

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/Helper/RestParameterParser.php

+2-1
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
class RestParameterParser {
99
private const CHARSET = 'charset';
1010
private const CONTENT_TYPE = 'CONTENT_TYPE';
11+
private const REQUEST_METHOD = 'REQUEST_METHOD';
1112

1213
/**
1314
* @var IL10N
@@ -143,6 +144,6 @@ private function getEncoding(string $header): string {
143144
* @return bool true, if the request is a POST request.
144145
*/
145146
private function isPost(): bool {
146-
return $_SERVER['REQUEST_METHOD'] === 'POST';
147+
return $_SERVER[self::REQUEST_METHOD] === 'POST';
147148
}
148149
}

0 commit comments

Comments
 (0)