Automattic\WooCommerce\Vendor\GraphQL\Language
Printer::indent
Method of the class: Printer{}
No Hooks.
Returns
null. Nothing (null).
Usage
$result = Printer::indent( $string ): string;
- $string(string) (required)
- .
Printer::indent() Printer::indent code WC 10.9.1
protected static function indent(string $string): string
{
if ($string === '') {
return '';
}
return ' ' . str_replace("\n", "\n ", $string);
}