Help_Command::indent()private staticWP-CLI 1.0

{} It's a method of the class: Help_Command{}

No Hooks.

Return

null. Nothing.

Usage

$result = Help_Command::indent( $whitespace, $text );
$whitespace (required)
-
$text (required)
-

Code of Help_Command::indent() WP-CLI 2.7.0-alpha

private static function indent( $whitespace, $text ) {
	$lines = explode( "\n", $text );
	foreach ( $lines as &$line ) {
		$line = $whitespace . $line;
	}
	return implode( "\n", $lines );
}