@@ -23,7 +23,7 @@ |
||
23 | 23 | $accessor = service($accessor); |
24 | 24 | } |
25 | 25 | |
26 | - if (! is_object($accessor)) { |
|
26 | + if (!is_object($accessor)) { |
|
27 | 27 | throw new InvalidArgumentException(sprintf('La methode `%s::accessor` doit retourner un object ou le nom d\'un service.', static::class)); |
28 | 28 | } |
29 | 29 |
@@ -112,7 +112,7 @@ discard block |
||
112 | 112 | */ |
113 | 113 | protected function factory(): AbstractAdapter |
114 | 114 | { |
115 | - if (! empty($this->adapter)) { |
|
115 | + if (!empty($this->adapter)) { |
|
116 | 116 | return $this->adapter; |
117 | 117 | } |
118 | 118 | |
@@ -126,7 +126,7 @@ discard block |
||
126 | 126 | $handler = static::$validHandlers[$handler]; |
127 | 127 | } |
128 | 128 | |
129 | - if (! class_exists($handler)) { |
|
129 | + if (!class_exists($handler)) { |
|
130 | 130 | throw new InvalidArgumentException(lang('Mail.invalidHandler', [$handler])); |
131 | 131 | } |
132 | 132 | |
@@ -135,7 +135,7 @@ discard block |
||
135 | 135 | $debug = on_dev(); |
136 | 136 | } |
137 | 137 | |
138 | - if (! is_subclass_of($handler, AbstractAdapter::class)) { |
|
138 | + if (!is_subclass_of($handler, AbstractAdapter::class)) { |
|
139 | 139 | throw new InvalidArgumentException(lang('Mail.handlerMustExtendClass', [$handler, AbstractAdapter::class])); |
140 | 140 | } |
141 | 141 | |
@@ -341,15 +341,15 @@ discard block |
||
341 | 341 | $path = ''; |
342 | 342 | |
343 | 343 | // N'est-il pas namespaced ? on cherche le dossier en fonction du parametre "view_base" |
344 | - if (! str_contains($view, '\\')) { |
|
344 | + if (!str_contains($view, '\\')) { |
|
345 | 345 | $path = $this->config['view_dir'] ?? ''; |
346 | - if (! empty($path)) { |
|
346 | + if (!empty($path)) { |
|
347 | 347 | $path .= '/'; |
348 | 348 | } |
349 | 349 | } |
350 | 350 | |
351 | 351 | $view = view($path . $view, $data); |
352 | - if (! empty($this->config['template'])) { |
|
352 | + if (!empty($this->config['template'])) { |
|
353 | 353 | $view->layout($this->config['template']); |
354 | 354 | } |
355 | 355 |