classes/phing/filters/TabToSpaces.php
public function read($len = null)
    {
        if (!$this->getInitialized()) {
            $this->_initialize();
            $this->setInitialized(true);
        }

        $buffer = $this->in->read($len);

        if ($buffer === -1) {
            return -1;
        }

        $buffer = str_replace("\t", str_repeat(' ', $this->tabLength), $buffer);

        return $buffer;
    }
public function read($len = null)
    {
        if (!$this->getInitialized()) {
            $this->_initialize();
            $this->setInitialized(true);
        }

        $buffer = $this->in->read($len);

        if ($buffer === -1) {
            return -1;
        }

        $buffer = str_replace("\t", str_repeat(' ', $this->tabLength), $buffer);

        return $buffer;
    }
public function read ( $ len = null ) { if ( ! $ this -> getInitialized ( ) ) { $ this -> _initialize ( ) ; $ this -> setInitialized ( true ) ; } $ buffer = $ this -> in -> read ( $ len ) ; if ( $ buffer === - 1 ) { return - 1 ; } $ buffer = str_replace ( "\t" , str_repeat ( ' ' , $ this -> tabLength ) , $ buffer ) ; return $ buffer ; }
Returns stream after converting tabs to the specified number of spaces.

@param  null $len
@return int the resulting stream, or -1
if the end of the resulting stream has been reached

@exception IOException if the underlying stream throws an IOException
during reading
Returns stream after converting tabs to the specified number of spaces .