Skip to content

Commit 499b154

Browse files
PSR2 coding standard, filled forbidden empty lines with some comments
1 parent ab529bc commit 499b154

File tree

1 file changed

+15
-4
lines changed

1 file changed

+15
-4
lines changed

src/Log/Mail.php

Lines changed: 15 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -294,16 +294,23 @@ public function debug($msg)
294294
protected function createTransport($type, array $options)
295295
{
296296
switch ($type) {
297+
//
298+
// null transport, don't send andy mails
299+
//
297300
case 'null':
298301
/* @var $transport \Swift_NullTransport */
299302
$transport = \Swift_NullTransport::newInstance();
300303
break;
301-
304+
//
305+
// php mail config
306+
//
302307
case 'mail':
303308
/* @var $transport \Swift_MailTransport */
304309
$transport = \Swift_MailTransport::newInstance();
305310
break;
306-
311+
//
312+
// smtp config
313+
//
307314
case 'smtp':
308315
if (!isset($options['smtp.host'])) {
309316
throw new Exception('option \'smtp.host\' ist missing');
@@ -333,7 +340,9 @@ protected function createTransport($type, array $options)
333340
$transport->setEncryption($encryption);
334341
}
335342
break;
336-
343+
//
344+
// sendmail configuration
345+
//
337346
case 'sendmail':
338347
if (!isset($options['sendmail.path'])) {
339348
throw new Exception('option \'sendmail.path\' ist missing');
@@ -344,7 +353,9 @@ protected function createTransport($type, array $options)
344353
/* @var $transport \Swift_SendmailTransport */
345354
$transport = \Swift_SendmailTransport::newInstance($path . $options);
346355
break;
347-
356+
//
357+
// UPS! no transport given
358+
//
348359
default:
349360
throw new Exception('mail transport not supported');
350361
break;

0 commit comments

Comments
 (0)