Code Duplication    Length = 9-9 lines in 2 locations

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

@@ 138-146 (lines=9) @@
135
     *
136
     * @param Swift_OutputByteStream $os
137
     */
138
    public function importByteStream(Swift_OutputByteStream $os)
139
    {
140
        $this->flushContents();
141
        $blocks = 512;
142
        $os->setReadPointer(0);
143
        
144
        while (false !== ($read = $os->read($blocks))) {
145
            $this->write($read);
146
        }
147
    }
148
149
    /**

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

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