Adding newlines to ConsoleScript::hr()

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4990 3807eeeb-6ff5-0310-8944-8be069107fe0
This commit is contained in:
nate 2007-05-02 18:41:55 +00:00
parent b5e3a55e03
commit 5693559919

View file

@ -157,8 +157,14 @@ class ConsoleScript extends Object {
* Outputs a series of minus characters to the standard output, acts as a visual separator.
*
*/
function hr() {
function hr($newline = false) {
if ($newline) {
$this->out("\n");
}
$this->out('---------------------------------------------------------------');
if ($newline) {
$this->out("\n");
}
}
/**
* Creates a file at given path.