Browse Source

Default to 79 dashes in a bar.

mark_story 12 years ago
parent
commit
a883e0da43
2 changed files with 3 additions and 3 deletions
  1. 2 2
      src/Console/ConsoleIo.php
  2. 1 1
      tests/TestCase/Console/ConsoleIoTest.php

+ 2 - 2
src/Console/ConsoleIo.php

@@ -213,10 +213,10 @@ class ConsoleIo {
  * 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);

+ 1 - 1
tests/TestCase/Console/ConsoleIoTest.php

@@ -260,7 +260,7 @@ class ConsoleIoTest extends TestCase {
  * @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);