original_string: public function getContentLength()
      {
          if (null !== $this->requestStack && null !== $request = $this->requestStack->getCurrentRequest()) {
              return $request->server->get('CONTENT_LENGTH');
          }
  
          return isset($_SERVER['CONTENT_LENGTH'])
              ? (int) $_SERVER['CONTENT_LENGTH']
              : null;
      }
code: public function getContentLength()
      {
          if (null !== $this->requestStack && null !== $request = $this->requestStack->getCurrentRequest()) {
              return $request->server->get('CONTENT_LENGTH');
          }
  
          return isset($_SERVER['CONTENT_LENGTH'])
              ? (int) $_SERVER['CONTENT_LENGTH']
              : null;
      }
code_tokens: public function getContentLength ( ) { if ( null !== $ this -> requestStack && null !== $ request = $ this -> requestStack -> getCurrentRequest ( ) ) { return $ request -> server -> get ( 'CONTENT_LENGTH' ) ; } return isset ( $ _SERVER [ 'CONTENT_LENGTH' ] ) ? ( int ) $ _SERVER [ 'CONTENT_LENGTH' ] : null ; }
docstring: Returns the content length of the request.
  
  @return mixed The request content length
docstring_tokens: Returns the content length of the request .