Ejemplo n.º 1
0
 /**
  * Set the width the rendered text must fit in
  *
  * @param int $width passed in options
  *
  * @static
  * @return void
  */
 protected static function setWidth($width = null)
 {
     if ($width === null) {
         if (DIRECTORY_SEPARATOR === '/') {
             $width = `tput cols`;
         }
         if ($width < 80) {
             $width = 80;
         }
     }
     self::$width = $width;
 }