src/Phug/Formatter.php
public function setFormat($doctype)
    {
        $formats = $this->getOption('formats');
        $this->format = empty($formats[$doctype])
            ? $this->getOption('default_format')
            : $formats[$doctype];

        return $this;
    }
public function setFormat($doctype)
    {
        $formats = $this->getOption('formats');
        $this->format = empty($formats[$doctype])
            ? $this->getOption('default_format')
            : $formats[$doctype];

        return $this;
    }
public function setFormat ( $ doctype ) { $ formats = $ this -> getOption ( 'formats' ) ; $ this -> format = empty ( $ formats [ $ doctype ] ) ? $ this -> getOption ( 'default_format' ) : $ formats [ $ doctype ] ; return $ this ; }
Set a format name as the current or fallback to default if not available.

@param string $doctype format identifier

@return $this
Set a format name as the current or fallback to default if not available .