Fix formatting

This commit is contained in:
Igor Scheller 2022-12-22 00:35:07 +01:00
parent 3d88ae7916
commit b024650eaf
2 changed files with 4 additions and 5 deletions

View File

@ -62,10 +62,6 @@ class LegacyDevelopment extends Legacy
return $return; return $return;
} }
/**
* @param mixed $arg
* @return string
*/
private function getDisplayNameOfValue(mixed $arg): string private function getDisplayNameOfValue(mixed $arg): string
{ {
return match (gettype($arg)) { return match (gettype($arg)) {

View File

@ -48,7 +48,10 @@ class MailerServiceProvider extends ServiceProvider
{ {
return match ($transport) { return match ($transport) {
'log' => $this->app->make(LogTransport::class), 'log' => $this->app->make(LogTransport::class),
'mail', 'sendmail' => $this->app->make(SendmailTransport::class, ['command' => $config['sendmail'] ?? null]), 'mail', 'sendmail' => $this->app->make(
SendmailTransport::class,
['command' => $config['sendmail'] ?? null]
),
'smtp' => $this->getSmtpTransport($config), 'smtp' => $this->getSmtpTransport($config),
default => Transport::fromDsn($transport ?? ''), default => Transport::fromDsn($transport ?? ''),
}; };