Automattic\WooCommerce\Vendor\GraphQL\Language

Printer::indentprotected staticWC 1.0

Method of the class: Printer{}

No Hooks.

Returns

null. Nothing (null).

Usage

$result = Printer::indent( $string ): string;
$string(string) (required)
.

Printer::indent() code WC 10.9.1

protected static function indent(string $string): string
{
    if ($string === '') {
        return '';
    }

    return '  ' . str_replace("\n", "\n  ", $string);
}