src/phpDocumentor/Compiler/Pass/MarkerFromTagsExtractor.php
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;
    }
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;
    }
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 ; }
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
Retrieves the File Descriptor from the given element .