Passed
Push — master ( 74b946...cdc5d8 )
by Anthony
03:02
created
core/mail/Mail.php 1 patch
Braces   +4 added lines, -3 removed lines patch added patch discarded remove patch
@@ -24,8 +24,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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;
Please login to merge, or discard this patch.
admin/views/gestion-contenus/modifier-contenu.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -16,7 +16,7 @@
 block discarded – undo
16 16
 		<button type="submit" class="submit-contenu" type="submit"><i class="fa fa-check"></i>Valider</button>
17 17
 	<?php endif; ?>
18 18
 	<input type="hidden" name="id_page" value="<?=$id_page_courante?>">
19
-	<?php if (($_GET['id'] != 1) && (($droit_acces->getSupprimerPage() == 1)  || ($droit_acces->getSuperAdmin() == 1))):?>
19
+	<?php if (($_GET['id'] != 1) && (($droit_acces->getSupprimerPage() == 1) || ($droit_acces->getSuperAdmin() == 1))):?>
20 20
 		<button id="supprimer-page-contenu" type="button" class="submit-contenu supprimer-page supprimer open-popup" popup="supprimer-page" href="<?=ADMWEBROOT?>controller/core/admin/contenus/gestion/supprimer_page?id=<?=$id_page_courante?>"><i class="fa fa-times"></i>Supprimer cette page</button>
21 21
 	<?php endif; ?>
22 22
 
Please login to merge, or discard this patch.