From a883e0da4335f0744c4c24dae0d8df150f34530a Mon Sep 17 00:00:00 2001 From: mark_story Date: Fri, 11 Apr 2014 09:21:13 -0400 Subject: [PATCH] Default to 79 dashes in a bar. --- src/Console/ConsoleIo.php | 4 ++-- tests/TestCase/Console/ConsoleIoTest.php | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Console/ConsoleIo.php b/src/Console/ConsoleIo.php index bcc60c4c76d..fa22869935a 100644 --- a/src/Console/ConsoleIo.php +++ b/src/Console/ConsoleIo.php @@ -213,10 +213,10 @@ public function nl($multiplier = 1) { * Outputs a series of minus characters to the standard output, acts as a visual separator. * * @param integer $newlines Number of newlines to pre- and append - * @param integer $width Width of the line, defaults to 63 + * @param integer $width Width of the line, defaults to 79 * @return void */ - public function hr($newlines = 0, $width = 63) { + public function hr($newlines = 0, $width = 79) { $this->out(null, $newlines); $this->out(str_repeat('-', $width)); $this->out(null, $newlines); diff --git a/tests/TestCase/Console/ConsoleIoTest.php b/tests/TestCase/Console/ConsoleIoTest.php index 643f8a666be..469fd1a45d9 100644 --- a/tests/TestCase/Console/ConsoleIoTest.php +++ b/tests/TestCase/Console/ConsoleIoTest.php @@ -260,7 +260,7 @@ public function testNl() { * @return void */ public function testHr() { - $bar = '---------------------------------------------------------------'; + $bar = str_repeat('-', 79); $this->out->expects($this->at(0))->method('write')->with('', 0); $this->out->expects($this->at(1))->method('write')->with($bar, 1);