Code Duplication    Length = 9-9 lines in 2 locations

lib/classes/Swift/CharacterStream/MbCharacterStream.php 1 location

@@ 42-50 (lines=9) @@
39
    /**
40
     * @param Swift_OutputByteStream $os
41
     */
42
    public function importByteStream(\Swift_OutputByteStream $os)
43
    {
44
        $this->flushContents();
45
        $blocks = 512;
46
        $os->setReadPointer(0);
47
        while (($read = $os->read($blocks)) !== false) {
48
            $this->write($read);
49
        }
50
    }
51
52
    /**
53
     * @param string $string

lib/classes/Swift/CharacterStream/NgCharacterStream.php 1 location

@@ 134-142 (lines=9) @@
131
     *
132
     * @param Swift_OutputByteStream $os
133
     */
134
    public function importByteStream(Swift_OutputByteStream $os)
135
    {
136
        $this->flushContents();
137
        $blocks = 512;
138
        $os->setReadPointer(0);
139
        while (false !== ($read = $os->read($blocks))) {
140
            $this->write($read);
141
        }
142
    }
143
144
    /**
145
     * @see Swift_CharacterStream::importString()