@@ -418,7 +418,7 @@ discard block |
||
418 | 418 | |
419 | 419 | private function buildDsn(): string |
420 | 420 | { |
421 | - if (! empty($this->dsn)) { |
|
421 | + if (!empty($this->dsn)) { |
|
422 | 422 | return $this->dsn; |
423 | 423 | } |
424 | 424 | |
@@ -426,8 +426,8 @@ discard block |
||
426 | 426 | static::PROTOCOL_SMTP => "smtp://{$this->username}:{$this->password}@{$this->host}:{$this->port}", |
427 | 427 | static::PROTOCOL_SENDMAIL => "sendmail://default", |
428 | 428 | static::PROTOCOL_MAIL => "sendmail://default", |
429 | - static::PROTOCOL_POSTMARK => "postmark+smtp://{$this->username}@default", // username joue le role de ID |
|
430 | - static::PROTOCOL_SENDGRID => "sendgrid+smtp://apikey:{$this->username}@default", // username joue le role de API_KEY |
|
429 | + static::PROTOCOL_POSTMARK => "postmark+smtp://{$this->username}@default", // username joue le role de ID |
|
430 | + static::PROTOCOL_SENDGRID => "sendgrid+smtp://apikey:{$this->username}@default", // username joue le role de API_KEY |
|
431 | 431 | default => "{$this->protocol}+smtp://{$this->username}:{$this->password}@default", |
432 | 432 | }; |
433 | 433 | } |
@@ -89,11 +89,11 @@ discard block |
||
89 | 89 | */ |
90 | 90 | protected function factory(): AbstractAdapter |
91 | 91 | { |
92 | - if (! empty($this->adapter)) { |
|
92 | + if (!empty($this->adapter)) { |
|
93 | 93 | return $this->adapter; |
94 | 94 | } |
95 | 95 | |
96 | - $handler = $this->config['handler'] ?? null; |
|
96 | + $handler = $this->config['handler'] ?? null; |
|
97 | 97 | |
98 | 98 | if (empty($handler)) { |
99 | 99 | throw new InvalidArgumentException(lang('Mail.undefinedHandler')); |
@@ -103,7 +103,7 @@ discard block |
||
103 | 103 | $handler = static::$validHandlers[$handler]; |
104 | 104 | } |
105 | 105 | |
106 | - if (! class_exists($handler)) { |
|
106 | + if (!class_exists($handler)) { |
|
107 | 107 | throw new InvalidArgumentException(lang('Mail.invalidHandler', [$handler])); |
108 | 108 | } |
109 | 109 | |
@@ -112,7 +112,7 @@ discard block |
||
112 | 112 | $debug = on_dev(); |
113 | 113 | } |
114 | 114 | |
115 | - if (! is_subclass_of($handler, AbstractAdapter::class)) { |
|
115 | + if (!is_subclass_of($handler, AbstractAdapter::class)) { |
|
116 | 116 | throw new InvalidArgumentException(lang('Mail.handlerMustExtendClass', [$handler, AbstractAdapter::class])); |
117 | 117 | } |
118 | 118 | |
@@ -320,13 +320,13 @@ discard block |
||
320 | 320 | // N'est-il pas namespaced ? on cherche le dossier en fonction du parametre "view_base" |
321 | 321 | if (strpos($view, '\\') === false) { |
322 | 322 | $path = $this->config['view_dir'] ?? ''; |
323 | - if (! empty($path)) { |
|
323 | + if (!empty($path)) { |
|
324 | 324 | $path .= '/'; |
325 | 325 | } |
326 | 326 | } |
327 | 327 | |
328 | 328 | $view = view($path . $view, $data); |
329 | - if (! empty($this->config['template'])) { |
|
329 | + if (!empty($this->config['template'])) { |
|
330 | 330 | $view->setLayout($this->config['template']); |
331 | 331 | } |
332 | 332 |