@@ -12,7 +12,7 @@ discard block |
||
12 | 12 | const TYPE_FILE = 'FILE'; |
13 | 13 | const TYPE_COOKIE = 'COOKIE'; |
14 | 14 | const TYPE_POST_RAW = 'POST_RAW'; |
15 | - const TYPE_POST_JSON_RAW = 'POST_JSON_RAW'; |
|
15 | + const TYPE_POST_JSON_RAW = 'POST_JSON_RAW'; |
|
16 | 16 | |
17 | 17 | const OPTIONAL = false; |
18 | 18 | const REQUIRED = true; |
@@ -167,7 +167,7 @@ discard block |
||
167 | 167 | if ($this->type == self::TYPE_POST_JSON_RAW) { |
168 | 168 | $body = file_get_contents("php://input"); |
169 | 169 | $body = @json_decode($body, TRUE); |
170 | - if ( isset($body[$this->key]) ) { |
|
170 | + if (isset($body[$this->key])) { |
|
171 | 171 | return $body[$this->key]; |
172 | 172 | } |
173 | 173 | return ''; |