Completed
Pull Request — master (#34)
by
unknown
06:36
created
src/Params/InputParam.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -12,7 +12,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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 '';
Please login to merge, or discard this patch.