@@ -24,8 +24,7 @@ discard block |
||
24 | 24 | public function setVerifierMail($email) { |
25 | 25 | if (filter_var($email, FILTER_VALIDATE_EMAIL)) { |
26 | 26 | return true; |
27 | - } |
|
28 | - else { |
|
27 | + } else { |
|
29 | 28 | return false; |
30 | 29 | } |
31 | 30 | } |
@@ -42,7 +41,9 @@ discard block |
||
42 | 41 | //on récupere le mail du site |
43 | 42 | $config = new \core\Configuration(); |
44 | 43 | |
45 | - if ($from == null) $from = $config->getMailSite(); |
|
44 | + if ($from == null) { |
|
45 | + $from = $config->getMailSite(); |
|
46 | + } |
|
46 | 47 | |
47 | 48 | $headers = 'Content-type: text/html; charset=utf-8'."\r\n"; |
48 | 49 | $headers .= "From: ".$from; |