Code Duplication    Length = 11-13 lines in 2 locations

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

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

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

@@ 311-321 (lines=11) @@
308
     *
309
     * @param Swift_InputByteStream $is
310
     */
311
    public function unbind(Swift_InputByteStream $is)
312
    {
313
        // Don't have to mirror anything
314
        foreach ($this->_bound as $k => $stream) {
315
            if ($stream === $is) {
316
                unset($this->_bound[$k]);
317
318
                return;
319
            }
320
        }
321
    }
322
323
    /**
324
     * Flush the contents of the stream (empty it) and set the internal pointer