original_string: protected function getReturnTypeFromDocBlock(\ReflectionMethod $reflection)
      {
          $type = null;
          $phpdoc = new DocBlock($reflection);
  
          if ($phpdoc->hasTag('return')) {
              $type = $phpdoc->getTagsByName('return')[0]->getType();
          }
  
          return $type;
      }
code: protected function getReturnTypeFromDocBlock(\ReflectionMethod $reflection)
      {
          $type = null;
          $phpdoc = new DocBlock($reflection);
  
          if ($phpdoc->hasTag('return')) {
              $type = $phpdoc->getTagsByName('return')[0]->getType();
          }
  
          return $type;
      }
code_tokens: protected function getReturnTypeFromDocBlock ( \ ReflectionMethod $ reflection ) { $ type = null ; $ phpdoc = new DocBlock ( $ reflection ) ; if ( $ phpdoc -> hasTag ( 'return' ) ) { $ type = $ phpdoc -> getTagsByName ( 'return' ) [ 0 ] -> getType ( ) ; } return $ type ; }
docstring: Get method return type based on it DocBlock comment
  
  @param \ReflectionMethod $reflection
  
  @return null|string
docstring_tokens: Get method return type based on it DocBlock comment