mirror of
https://github.com/Seldaek/monolog.git
synced 2025-10-23 17:46:09 +02:00
Moved the use of the default formatter to the getter to keep the code DRY
This commit is contained in:
@@ -33,10 +33,7 @@ abstract class MailHandler extends AbstractHandler
|
||||
}
|
||||
|
||||
if (!empty($messages)) {
|
||||
if (!$this->formatter) {
|
||||
$this->formatter = $this->getDefaultFormatter();
|
||||
}
|
||||
$this->send($this->formatter->formatBatch($messages));
|
||||
$this->send($this->getFormatter()->formatBatch($messages));
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user