mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-31 09:06:17 +00:00
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:
parent
b5e3a55e03
commit
5693559919
1 changed files with 7 additions and 1 deletions
|
@ -157,8 +157,14 @@ class ConsoleScript extends Object {
|
||||||
* Outputs a series of minus characters to the standard output, acts as a visual separator.
|
* 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('---------------------------------------------------------------');
|
$this->out('---------------------------------------------------------------');
|
||||||
|
if ($newline) {
|
||||||
|
$this->out("\n");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
* Creates a file at given path.
|
* Creates a file at given path.
|
||||||
|
|
Loading…
Add table
Reference in a new issue