private function buildDirectories(SimpleXMLElement $phpDocumentor): array
    {
        if ((array) $phpDocumentor->files === []) {
            return $this->directories;
        }

        if ((string) $phpDocumentor->files->directory === '') {
            return $this->directories;
        }

        return (array) $phpDocumentor->files->directory;
    }
private function buildDirectories(SimpleXMLElement $phpDocumentor): array
    {
        if ((array) $phpDocumentor->files === []) {
            return $this->directories;
        }

        if ((string) $phpDocumentor->files->directory === '') {
            return $this->directories;
        }

        return (array) $phpDocumentor->files->directory;
    }
private function buildDirectories ( SimpleXMLElement $ phpDocumentor ) : array { if ( ( array ) $ phpDocumentor -> files === [ ] ) { return $ this -> directories ; } if ( ( string ) $ phpDocumentor -> files -> directory === '' ) { return $ this -> directories ; } return ( array ) $ phpDocumentor -> files -> directory ; }
Builds the directories that are used in the sourcePaths.

@return string[]
Builds the directories that are used in the sourcePaths .