src/Result.php
public function prettyPrint(PrettyPrinterAbstract $printer = null): string
    {
        if (!$printer) {
            $printer = new Standard();
        }
        return $printer->prettyPrintFile($this->getStubStmts());
    }
public function prettyPrint(PrettyPrinterAbstract $printer = null): string
    {
        if (!$printer) {
            $printer = new Standard();
        }
        return $printer->prettyPrintFile($this->getStubStmts());
    }
public function prettyPrint ( PrettyPrinterAbstract $ printer = null ) : string { if ( ! $ printer ) { $ printer = new Standard ( ) ; } return $ printer -> prettyPrintFile ( $ this -> getStubStmts ( ) ) ; }
Shortcut to pretty print all the stubs as one file.

If no `$printer` is provided, a `\PhpParser\PrettyPrinter\Standard` will
be used.

@param PrettyPrinterAbstract|null $printer Pretty printer instance.

@return string The pretty printed version.
Shortcut to pretty print all the stubs as one file .