original_string: private function readContent(): bool
      {
          $rawContent = $this->getRequest()->getRawContent();
          if ($rawContent === '') {
              $this->content = null;
  
              return true;
          }
  
          $this->content = json_decode($rawContent, true);
          if (json_last_error() !== JSON_ERROR_NONE) {
              $this->getResponse()->setStatusCode(new StatusCode(StatusCode::BAD_REQUEST));
  
              return false;
          }
  
          return true;
      }
code: private function readContent(): bool
      {
          $rawContent = $this->getRequest()->getRawContent();
          if ($rawContent === '') {
              $this->content = null;
  
              return true;
          }
  
          $this->content = json_decode($rawContent, true);
          if (json_last_error() !== JSON_ERROR_NONE) {
              $this->getResponse()->setStatusCode(new StatusCode(StatusCode::BAD_REQUEST));
  
              return false;
          }
  
          return true;
      }
code_tokens: private function readContent ( ) : bool { $ rawContent = $ this -> getRequest ( ) -> getRawContent ( ) ; if ( $ rawContent === '' ) { $ this -> content = null ; return true ; } $ this -> content = json_decode ( $ rawContent , true ) ; if ( json_last_error ( ) !== JSON_ERROR_NONE ) { $ this -> getResponse ( ) -> setStatusCode ( new StatusCode ( StatusCode :: BAD_REQUEST ) ) ; return false ; } return true ; }
docstring: Reads the content.
  
  @return bool True if content was successfully read, false otherwise.
docstring_tokens: Reads the content .