original_string: private function getSubmittedVersionNumber(RequestInterface $request)
      {
          $accept  = $request->getHeader('Accept');
          $matches = array();
  
          preg_match('/^application\/vnd\.([a-z.-_]+)\.v([\d]+)\+([a-z]+)$/', $accept, $matches);
  
          return isset($matches[2]) ? $matches[2] : null;
      }
code: private function getSubmittedVersionNumber(RequestInterface $request)
      {
          $accept  = $request->getHeader('Accept');
          $matches = array();
  
          preg_match('/^application\/vnd\.([a-z.-_]+)\.v([\d]+)\+([a-z]+)$/', $accept, $matches);
  
          return isset($matches[2]) ? $matches[2] : null;
      }
code_tokens: private function getSubmittedVersionNumber ( RequestInterface $ request ) { $ accept = $ request -> getHeader ( 'Accept' ) ; $ matches = array ( ) ; preg_match ( '/^application\/vnd\.([a-z.-_]+)\.v([\d]+)\+([a-z]+)$/' , $ accept , $ matches ) ; return isset ( $ matches [ 2 ] ) ? $ matches [ 2 ] : null ; }
docstring: Returns the version number which was submitted by the client in the
  accept header field
  
  @return integer
docstring_tokens: Returns the version number which was submitted by the client in the accept header field