lithium\console\command\Help::_pad()

protected method

Add left padding for prettier display.

Parameters

  • string $message

    the text to render.

  • integer|string $level

    the level of indentation.

Returns

string

Source

	protected function _pad($message, $level = 1) {
		$padding = str_repeat(' ', $level * 4);
		return $padding . str_replace("\n", "\n{$padding}", $message);
	}