_wrap() protected method

Fix line length
protected _wrap ( string $message, integer $wrapLength = CakeEmail::LINE_LENGTH_MUST ) : array
$message string Message to wrap
$wrapLength integer
return array Wrapped message
Beispiel #1
0
 /**
  * Fix line length
  *
  * @overwrite
  * @param string $message Message to wrap
  * @return array Wrapped message
  */
 protected function _wrap($message, $wrapLength = Email::LINE_LENGTH_MUST)
 {
     if ($this->_wrapLength !== null) {
         $wrapLength = $this->_wrapLength;
     }
     return parent::_wrap($message, $wrapLength);
 }
Beispiel #2
0
 /**
  * Wrap to protected method
  *
  * @param string $text
  * @param int $length
  * @return array
  */
 public function wrap($text, $length = Email::LINE_LENGTH_MUST)
 {
     return parent::_wrap($text, $length);
 }