original_string: public function getBodyParams()
      {
          if (is_array($this->bodyParams)) {
              return $this->bodyParams;
          }
  
          $content = $this->getBody()->getContents();
          $contentType = $this->headers->get('content-type');
          if ($contentType === 'application/json') {
              $bodyParams = json_decode($content, true);
              $this->bodyParams = $bodyParams ? $bodyParams : [];
          } else {
              parse_str($content, $this->bodyParams);
          }
          return $this->bodyParams;
      }
code: public function getBodyParams()
      {
          if (is_array($this->bodyParams)) {
              return $this->bodyParams;
          }
  
          $content = $this->getBody()->getContents();
          $contentType = $this->headers->get('content-type');
          if ($contentType === 'application/json') {
              $bodyParams = json_decode($content, true);
              $this->bodyParams = $bodyParams ? $bodyParams : [];
          } else {
              parse_str($content, $this->bodyParams);
          }
          return $this->bodyParams;
      }
code_tokens: public function getBodyParams ( ) { if ( is_array ( $ this -> bodyParams ) ) { return $ this -> bodyParams ; } $ content = $ this -> getBody ( ) -> getContents ( ) ; $ contentType = $ this -> headers -> get ( 'content-type' ) ; if ( $ contentType === 'application/json' ) { $ bodyParams = json_decode ( $ content , true ) ; $ this -> bodyParams = $ bodyParams ? $ bodyParams : [ ] ; } else { parse_str ( $ content , $ this -> bodyParams ) ; } return $ this -> bodyParams ; }
docstring: Get all params of input body.
  
  @return array
docstring_tokens: Get all params of input body .