Code Duplication    Length = 13-13 lines in 2 locations

lib/classes/Swift/Signers/DKIMSigner.php 1 location

@@ 298-310 (lines=13) @@
295
     *
296
     * @param Swift_InputByteStream $is
297
     */
298
    public function unbind(Swift_InputByteStream $is)
299
    {
300
        // Don't have to mirror anything
301
        foreach ($this->_bound as $k => $stream) {
302
            if ($stream === $is) {
303
                unset($this->_bound[$k]);
304
305
                return;
306
            }
307
        }
308
309
        return;
310
    }
311
312
    /**
313
     * Flush the contents of the stream (empty it) and set the internal pointer

lib/classes/Swift/Signers/DomainKeySigner.php 1 location

@@ 251-263 (lines=13) @@
248
     *
249
     * @return Swift_Signers_DomainKeySigner
250
     */
251
    public function unbind(Swift_InputByteStream $is)
252
    {
253
        // Don't have to mirror anything
254
        foreach ($this->_bound as $k => $stream) {
255
            if ($stream === $is) {
256
                unset($this->_bound[$k]);
257
258
                return;
259
            }
260
        }
261
262
        return $this;
263
    }
264
265
    /**
266
     * Flush the contents of the stream (empty it) and set the internal pointer