protected function runContentBlock(Closure $block)
    {
        ob_start();
        $result   = $block();
        $contents = ob_get_clean();
        return $result ?: $contents;
    }
protected function runContentBlock(Closure $block)
    {
        ob_start();
        $result   = $block();
        $contents = ob_get_clean();
        return $result ?: $contents;
    }
protected function runContentBlock ( Closure $ block ) { ob_start ( ) ; $ result = $ block ( ) ; $ contents = ob_get_clean ( ) ; return $ result ? : $ contents ; }
Runs a Closure that can either output content itself or
return the content as a string.

@param Closure $block
@return string
Runs a Closure that can either output content itself or return the content as a string .