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

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