public function format(OutputBlock $block, SourceMapGenerator $sourceMapGenerator = null)
    {
        $this->sourceMapGenerator = null;

        if ($sourceMapGenerator) {
            $this->currentLine = 1;
            $this->currentColumn = 0;
            $this->sourceMapGenerator = $sourceMapGenerator;
        }

        ob_start();

        $this->block($block);

        $out = ob_get_clean();

        return $out;
    }
public function format(OutputBlock $block, SourceMapGenerator $sourceMapGenerator = null)
    {
        $this->sourceMapGenerator = null;

        if ($sourceMapGenerator) {
            $this->currentLine = 1;
            $this->currentColumn = 0;
            $this->sourceMapGenerator = $sourceMapGenerator;
        }

        ob_start();

        $this->block($block);

        $out = ob_get_clean();

        return $out;
    }
public function format ( OutputBlock $ block , SourceMapGenerator $ sourceMapGenerator = null ) { $ this -> sourceMapGenerator = null ; if ( $ sourceMapGenerator ) { $ this -> currentLine = 1 ; $ this -> currentColumn = 0 ; $ this -> sourceMapGenerator = $ sourceMapGenerator ; } ob_start ( ) ; $ this -> block ( $ block ) ; $ out = ob_get_clean ( ) ; return $ out ; }
Entry point to formatting a block

@api

@param \Leafo\ScssPhp\Formatter\OutputBlock             $block              An abstract syntax tree
@param \Leafo\ScssPhp\SourceMap\SourceMapGenerator|null $sourceMapGenerator Optional source map generator

@return string
Entry point to formatting a block