src/VCR/CodeTransform/AbstractCodeTransform.php
public function filter($in, $out, &$consumed, $closing)
    {
        while ($bucket = stream_bucket_make_writeable($in)) {
            $bucket->data = $this->transformCode($bucket->data);
            $consumed += $bucket->datalen;
            stream_bucket_append($out, $bucket);
        }

        return PSFS_PASS_ON;
    }
public function filter($in, $out, &$consumed, $closing)
    {
        while ($bucket = stream_bucket_make_writeable($in)) {
            $bucket->data = $this->transformCode($bucket->data);
            $consumed += $bucket->datalen;
            stream_bucket_append($out, $bucket);
        }

        return PSFS_PASS_ON;
    }
public function filter ( $ in , $ out , & $ consumed , $ closing ) { while ( $ bucket = stream_bucket_make_writeable ( $ in ) ) { $ bucket -> data = $ this -> transformCode ( $ bucket -> data ) ; $ consumed += $ bucket -> datalen ; stream_bucket_append ( $ out , $ bucket ) ; } return PSFS_PASS_ON ; }
Applies the current filter to a provided stream.

@param resource $in
@param resource $out
@param int      $consumed
@param bool     $closing

@return int PSFS_PASS_ON

@link http://www.php.net/manual/en/php-user-filter.filter.php
Applies the current filter to a provided stream .