original_string: protected function getFileDescriptor($element)
      {
          $fileDescriptor = $element instanceof FileDescriptor
              ? $element
              : $element->getFile();
  
          if (!$fileDescriptor instanceof FileDescriptor) {
              throw new \UnexpectedValueException('An element should always have a file associated with it');
          }
  
          return $fileDescriptor;
      }
code: protected function getFileDescriptor($element)
      {
          $fileDescriptor = $element instanceof FileDescriptor
              ? $element
              : $element->getFile();
  
          if (!$fileDescriptor instanceof FileDescriptor) {
              throw new \UnexpectedValueException('An element should always have a file associated with it');
          }
  
          return $fileDescriptor;
      }
code_tokens: protected function getFileDescriptor ( $ element ) { $ fileDescriptor = $ element instanceof FileDescriptor ? $ element : $ element -> getFile ( ) ; if ( ! $ fileDescriptor instanceof FileDescriptor ) { throw new \ UnexpectedValueException ( 'An element should always have a file associated with it' ) ; } return $ fileDescriptor ; }
docstring: Retrieves the File Descriptor from the given element.
  
  @param DescriptorAbstract $element
  
  @throws \UnexpectedValueException if the provided element does not have a file associated with it.
  
  @return FileDescriptor
docstring_tokens: Retrieves the File Descriptor from the given element .