Help_Command::indent()private staticWP-CLI 1.0

Method of the class: Help_Command{}

No Hooks.

Return

null. Nothing (null).

Usage

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

Help_Command::indent() code WP-CLI 2.8.0-alpha

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