Help_Command::indent │ private static │ WP-CLI 1.0

Метод класса: Help_Command{}

Хуков нет.

Возвращает

null. Ничего (null).

Использование

$result = Help_Command::indent( $whitespace, $text );
$whitespace(обязательный)
.
$text(обязательный)
.

Код Help_Command::indent() 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 );
}