original_string: public function replaceEOL($text, $eol = null, $stream = false)
      {
          if (is_null($eol)) {
              $eol = $this->getEOL();
          }
  
          stream_filter_register('horde_eol', 'Horde_Stream_Filter_Eol');
          $fp = $this->_writeStream($text, array(
              'filter' => array(
                  'horde_eol' => array('eol' => $eol)
              )
          ));
  
          return $stream ? $fp : $this->_readStream($fp, true);
      }
code: public function replaceEOL($text, $eol = null, $stream = false)
      {
          if (is_null($eol)) {
              $eol = $this->getEOL();
          }
  
          stream_filter_register('horde_eol', 'Horde_Stream_Filter_Eol');
          $fp = $this->_writeStream($text, array(
              'filter' => array(
                  'horde_eol' => array('eol' => $eol)
              )
          ));
  
          return $stream ? $fp : $this->_readStream($fp, true);
      }
code_tokens: public function replaceEOL ( $ text , $ eol = null , $ stream = false ) { if ( is_null ( $ eol ) ) { $ eol = $ this -> getEOL ( ) ; } stream_filter_register ( 'horde_eol' , 'Horde_Stream_Filter_Eol' ) ; $ fp = $ this -> _writeStream ( $ text , array ( 'filter' => array ( 'horde_eol' => array ( 'eol' => $ eol ) ) ) ) ; return $ stream ? $ fp : $ this -> _readStream ( $ fp , true ) ; }
docstring: Replace newlines in this part's contents with those specified by either
  the given newline sequence or the part's current EOL setting.
  
  @param mixed $text      The text to replace. Either a string or a
  stream resource. If a stream, and returning
  a string, will close the stream when done.
  @param string $eol      The EOL sequence to use. If not present, uses
  the part's current EOL setting.
  @param boolean $stream  If true, returns a stream resource.
  
  @return string  The text with the newlines replaced by the desired
  newline sequence (returned as a stream resource if
  $stream is true).
docstring_tokens: Replace newlines in this part s contents with those specified by either the given newline sequence or the part s current EOL setting .