src/Micrometa/Ports/Parser.php
protected function createDom($uri, $source = null, array $httpOptions = [])
    {
        return (($source !== null) && strlen(trim($source))) ?
            Dom::createFromString($source) : Dom::createFromUri($uri, $httpOptions);
    }
protected function createDom($uri, $source = null, array $httpOptions = [])
    {
        return (($source !== null) && strlen(trim($source))) ?
            Dom::createFromString($source) : Dom::createFromUri($uri, $httpOptions);
    }
protected function createDom ( $ uri , $ source = null , array $ httpOptions = [ ] ) { return ( ( $ source !== null ) && strlen ( trim ( $ source ) ) ) ? Dom :: createFromString ( $ source ) : Dom :: createFromUri ( $ uri , $ httpOptions ) ; }
Create the DOM document to parse

@param string $uri         URI
@param string|null $source Source code
@param array $httpOptions  HTTP request options

@return \DOMDocument DOM document
Create the DOM document to parse