lib/classes/Swift/StreamFilters/StringReplacementFilter.php
public function shouldBuffer($buffer)
    {
        if ('' === $buffer) {
            return false;
        }

        $endOfBuffer = substr($buffer, -1);
        foreach ((array) $this->search as $needle) {
            if (false !== strpos($needle, $endOfBuffer)) {
                return true;
            }
        }

        return false;
    }
public function shouldBuffer($buffer)
    {
        if ('' === $buffer) {
            return false;
        }

        $endOfBuffer = substr($buffer, -1);
        foreach ((array) $this->search as $needle) {
            if (false !== strpos($needle, $endOfBuffer)) {
                return true;
            }
        }

        return false;
    }
public function shouldBuffer ( $ buffer ) { if ( '' === $ buffer ) { return false ; } $ endOfBuffer = substr ( $ buffer , - 1 ) ; foreach ( ( array ) $ this -> search as $ needle ) { if ( false !== strpos ( $ needle , $ endOfBuffer ) ) { return true ; } } return false ; }
Returns true if based on the buffer passed more bytes should be buffered.

@param string $buffer

@return bool
Returns true if based on the buffer passed more bytes should be buffered .