@@ -159,10 +159,10 @@ |
||
| 159 | 159 | public function setEncryption(?string $encryption): self |
| 160 | 160 | { |
| 161 | 161 | if ($encryption === static::ENCRYPTION_NONE) { |
| 162 | - $encryption = null; |
|
| 163 | - } |
|
| 162 | + $encryption = null; |
|
| 163 | + } |
|
| 164 | 164 | |
| 165 | - if (in_array($encryption, [null, static::ENCRYPTION_SSL, static::ENCRYPTION_TLS], true)) { |
|
| 165 | + if (in_array($encryption, [null, static::ENCRYPTION_SSL, static::ENCRYPTION_TLS], true)) { |
|
| 166 | 166 | $this->encryption = $encryption; |
| 167 | 167 | } |
| 168 | 168 | |
@@ -164,9 +164,9 @@ |
||
| 164 | 164 | */ |
| 165 | 165 | public function setEncryption(?string $encryption): self |
| 166 | 166 | { |
| 167 | - if ($encryption === static::ENCRYPTION_NONE) { |
|
| 168 | - $encryption = null; |
|
| 169 | - } |
|
| 167 | + if ($encryption === static::ENCRYPTION_NONE) { |
|
| 168 | + $encryption = null; |
|
| 169 | + } |
|
| 170 | 170 | |
| 171 | 171 | if (in_array($encryption, [null, static::ENCRYPTION_SSL, static::ENCRYPTION_TLS], true)) { |
| 172 | 172 | $this->mailer->SMTPSecure = $encryption; |
@@ -233,7 +233,7 @@ |
||
| 233 | 233 | $file = $this->locator->locateFile($view, 'Views', empty($ext) ? 'php' : $ext); |
| 234 | 234 | } |
| 235 | 235 | |
| 236 | - $file = realpath($file); |
|
| 236 | + $file = realpath($file); |
|
| 237 | 237 | |
| 238 | 238 | // locateFile renverra une chaîne vide si le fichier est introuvable. |
| 239 | 239 | if (! is_file($file)) { |
@@ -70,7 +70,7 @@ discard block |
||
| 70 | 70 | { |
| 71 | 71 | helper('assets'); |
| 72 | 72 | |
| 73 | - if (! empty($viewPathLocator)) { |
|
| 73 | + if (!empty($viewPathLocator)) { |
|
| 74 | 74 | if (is_string($viewPathLocator)) { |
| 75 | 75 | $this->viewPath = rtrim($viewPathLocator, '\\/ ') . DS; |
| 76 | 76 | } elseif ($viewPathLocator instanceof Locator) { |
@@ -221,7 +221,7 @@ discard block |
||
| 221 | 221 | $options = (array) $options; |
| 222 | 222 | |
| 223 | 223 | $viewPath = $options['viewPath'] ?? $this->viewPath; |
| 224 | - if (! empty($viewPath)) { |
|
| 224 | + if (!empty($viewPath)) { |
|
| 225 | 225 | $file = str_replace('/', DS, rtrim($viewPath, '/\\') . DS . ltrim($view, '/\\')); |
| 226 | 226 | } else { |
| 227 | 227 | $file = $view; |
@@ -229,14 +229,14 @@ discard block |
||
| 229 | 229 | |
| 230 | 230 | $file = Helpers::ensureExt($file, $ext); |
| 231 | 231 | |
| 232 | - if (! is_file($file) && $this->locator instanceof Locator) { |
|
| 232 | + if (!is_file($file) && $this->locator instanceof Locator) { |
|
| 233 | 233 | $file = $this->locator->locateFile($view, 'Views', empty($ext) ? 'php' : $ext); |
| 234 | 234 | } |
| 235 | 235 | |
| 236 | 236 | $file = realpath($file); |
| 237 | 237 | |
| 238 | 238 | // locateFile renverra une chaîne vide si le fichier est introuvable. |
| 239 | - if (! is_file($file)) { |
|
| 239 | + if (!is_file($file)) { |
|
| 240 | 240 | throw ViewException::invalidFile($view); |
| 241 | 241 | } |
| 242 | 242 | |