Help_Command::indent
Method of the class: Help_Command{}
No Hooks.
Returns
null. Nothing (null).
Usage
$result = Help_Command::indent( $whitespace, $text );
- $whitespace(required)
- .
- $text(required)
- .
Help_Command::indent() Help Command::indent code WP-CLI 2.13.0-alpha
private static function indent( $whitespace, $text ) {
$lines = explode( "\n", $text );
foreach ( $lines as &$line ) {
$line = $whitespace . $line;
}
return implode( "\n", $lines );
}