Code Duplication    Length = 14-14 lines in 2 locations

lib/classes/Swift/Transport/MailTransport.php 1 location

@@ 224-237 (lines=14) @@
221
     *
222
     * @throws Swift_TransportException
223
     */
224
    protected function _throwException(Swift_TransportException $e)
225
    {
226
        $evt = $this->_eventDispatcher->createTransportExceptionEvent($this, $e);
227
        if ($evt) {
228
229
            $this->_eventDispatcher->dispatchEvent($evt, 'exceptionThrown');
230
            if (!$evt->bubbleCancelled()) {
231
                throw $e;
232
            }
233
234
        } else {
235
            throw $e;
236
        }
237
    }
238
239
    /**
240
     * Send mail via the mail() function.

lib/classes/Swift/Transport/AbstractSmtpTransport.php 1 location

@@ 439-452 (lines=14) @@
436
     *
437
     * @throws Swift_TransportException
438
     */
439
    protected function _throwException(Swift_TransportException $e)
440
    {
441
        $evt = $this->_eventDispatcher->createTransportExceptionEvent($this, $e);
442
        if ($evt) {
443
444
            $this->_eventDispatcher->dispatchEvent($evt, 'exceptionThrown');
445
            if (!$evt->bubbleCancelled()) {
446
                throw $e;
447
            }
448
449
        } else {
450
            throw $e;
451
        }
452
    }
453
454
    /**
455
     * Throws an Exception if a response code is incorrect