Cake\Console\ConsoleIo::hr PHP Method

hr() public method

Outputs a series of minus characters to the standard output, acts as a visual separator.
public hr ( integer $newlines, integer $width = 79 ) : void
$newlines integer Number of newlines to pre- and append
$width integer Width of the line, defaults to 79
return void
    public function hr($newlines = 0, $width = 79)
    {
        $this->out(null, $newlines);
        $this->out(str_repeat('-', $width));
        $this->out(null, $newlines);
    }

Usage Example

Ejemplo n.º 1
0
 /**
  * Outputs a series of minus characters to the standard output, acts as a visual separator.
  *
  * @param int $newlines Number of newlines to pre- and append
  * @param int $width Width of the line, defaults to 63
  * @return void
  * @link http://book.cakephp.org/3.0/en/console-and-shells.html#Shell::hr
  */
 public function hr($newlines = 0, $width = 63)
 {
     $this->_io->hr($newlines, $width);
 }