Passed
Push — master ( d58d86...648729 )
by Anthony
03:51
created
core/auth/Encrypt.php 1 patch
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -28,8 +28,7 @@  discard block
 block discarded – undo
28 28
 						$params = $obj->mdp_params;
29 29
 					}
30 30
 				}
31
-			}
32
-			else {
31
+			} else {
33 32
 				$params = self::$params;
34 33
 			}
35 34
 
@@ -81,8 +80,7 @@  discard block
 block discarded – undo
81 80
 
82 81
 			if ($id_identite != null) {
83 82
 				self::setSaveParams("$taille_bout1, $debut_bout2, $nb_aleatoire_mdp, $taille_bout2, $debut_bout1, ".ChaineCaractere::random(20), $id_identite);
84
-			}
85
-			else {
83
+			} else {
86 84
 				self::$params = "$taille_bout1, $debut_bout2, $nb_aleatoire_mdp, $taille_bout2, $debut_bout1, ".ChaineCaractere::random(20);
87 85
 			}
88 86
 
Please login to merge, or discard this patch.
core/auth/connexion/login.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -4,7 +4,6 @@
 block discarded – undo
4 4
 
5 5
 	if (isset($_POST['admin'])) {
6 6
 		\core\auth\Connexion::setLogin($pseudo, $mdp, WEBROOT."administrator/login", WEBROOT."administrator", 0);
7
-	}
8
-	else {
7
+	} else {
9 8
 		\core\auth\Connexion::setLogin($pseudo, $mdp, WEBROOT."login", WEBROOT."index.php", 0);
10 9
 	}
11 10
\ No newline at end of file
Please login to merge, or discard this patch.
core/auth/mdp/changer_mdp.php 1 patch
Braces   +3 added lines, -6 removed lines patch added patch discarded remove patch
@@ -13,20 +13,17 @@
 block discarded – undo
13 13
 		if ($membre->getErreur() != "") {
14 14
 			FlashMessage::setFlash($membre->getErreur());
15 15
 			header("location:".ADMWEBROOT."configuration/mon-compte");
16
-		}
17
-		else {
16
+		} else {
18 17
 			\core\auth\Connexion::setDeconnexion(WEBROOT."administrator/login");
19 18
 			FlashMessage::setFlash("Votre mot de passe a été changé avec succès, vous pouvez vous reconnecter avec votre nouveau mot de passe", "info");
20 19
 		}
21
-	}
22
-	else {
20
+	} else {
23 21
 		$membre->setMdp($mdp, $new_mdp, $verif_new_mdp);
24 22
 
25 23
 		if ($membre->getErreur() != "") {
26 24
 			FlashMessage::setFlash($membre->getErreur());
27 25
 			header("location:index.php");
28
-		}
29
-		else {
26
+		} else {
30 27
 			\core\auth\Connexion::setDeconnexion("index.php?page=login");
31 28
 			FlashMessage::setFlash("Votre mot de passe a été changé avec succès, vous pouvez vous reconnecter avec votre nouveau mot de passe", "info");
32 29
 		}
Please login to merge, or discard this patch.
core/Navigation.php 1 patch
Braces   +3 added lines, -6 removed lines patch added patch discarded remove patch
@@ -21,8 +21,7 @@  discard block
 block discarded – undo
21 21
 
22 22
 			if ($no_module === null) {
23 23
 				$query = $dbc->select()->from("navigation")->orderBy("ordre")->get();
24
-			}
25
-			else {
24
+			} else {
26 25
 				$query = $dbc->select()->from("navigation")->where("ID_page", " IS NOT ", "NULL", "", true)->orderBy("ordre")->get();
27 26
 			}
28 27
 
@@ -30,8 +29,7 @@  discard block
 block discarded – undo
30 29
 				foreach ($query as $obj) {
31 30
 					if ($obj->ID_page === null) {
32 31
 						$navigation[] = $this->getLienNavigationModule($obj->ID_module);
33
-					}
34
-					else {
32
+					} else {
35 33
 						$navigation[] = $this->getLienNavigationPage($obj->ID_page);
36 34
 					}
37 35
 					$last_ordre = $obj->ordre;
@@ -138,8 +136,7 @@  discard block
 block discarded – undo
138 136
 		private function getLienPage($url) {
139 137
 			if (ChaineCaractere::FindInString($url, "http://")) {
140 138
 				return $url;
141
-			}
142
-			else {
139
+			} else {
143 140
 				return WEBROOT.$url;
144 141
 			}
145 142
 		}
Please login to merge, or discard this patch.
core/form/support/envoyer_message.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -7,8 +7,7 @@
 block discarded – undo
7 7
 
8 8
 	if ($validator->getErrors() !== null) {
9 9
 		\core\HTML\flashmessage\FlashMessage::setFlash($validator->getErrors());
10
-	}
11
-	else {
10
+	} else {
12 11
 		$type = $_POST["type"];
13 12
 		$objet = $_POST['objet']." de la part de ".$_SERVER['HTTP_HOST'];
14 13
 		$demande = $_POST['demande'];
Please login to merge, or discard this patch.
core/RedirectError.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -30,8 +30,7 @@
 block discarded – undo
30 30
 
31 31
 			if (((is_array($query)) && (count($query) > 0)) || ($controller !== false)) {
32 32
 				return true;
33
-			}
34
-			else {
33
+			} else {
35 34
 				$router = new RouterModule();
36 35
 
37 36
 				if ($router->getRouteModuleExist($url) !== true) {
Please login to merge, or discard this patch.
core/admin/contenus/gestion/creer_page.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -6,7 +6,6 @@
 block discarded – undo
6 6
 	if ((\core\App::getErreur() !== true) && ($gestion_contenu->getErreur() !== true)) {
7 7
 		\core\HTML\flashmessage\FlashMessage::setFlash("La page ".$_POST['titre_page']." a bien été crée", "success");
8 8
 		header("location:".ADMWEBROOT."gestion-contenus/modifier-contenu?id=".$gestion_contenu->getIdPage());
9
-	}
10
-	else {
9
+	} else {
11 10
 		header("location:".ADMWEBROOT."gestion-contenus/creer-une-page");
12 11
 	}
13 12
\ No newline at end of file
Please login to merge, or discard this patch.
core/Configuration.php 2 patches
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -70,7 +70,7 @@
 block discarded – undo
70 70
 			return $this->cache;
71 71
 		}
72 72
 		public function getDesactiverNavigation(){
73
-		    return $this->desactiver_navigation;
73
+			return $this->desactiver_navigation;
74 74
 		}
75 75
 
76 76
 		//pour la configuration des comptes
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -69,7 +69,7 @@
 block discarded – undo
69 69
 		public function getCache() {
70 70
 			return $this->cache;
71 71
 		}
72
-		public function getDesactiverNavigation(){
72
+		public function getDesactiverNavigation() {
73 73
 		    return $this->desactiver_navigation;
74 74
 		}
75 75
 
Please login to merge, or discard this patch.
admin/views/gestion-contenus/inline.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -31,13 +31,13 @@
 block discarded – undo
31 31
 <script>
32 32
 	CKEDITOR.disableAutoInline = true;
33 33
 
34
-	<?php for($i=0 ; $i<$bloc_editable ; $i++):?>
34
+	<?php for ($i = 0; $i < $bloc_editable; $i++):?>
35 35
 		$(document).ready(function() {
36 36
 			console.log("editor<?=$i?>");
37 37
 			$("#editor<?=$i?>").attr("contenteditable", true);
38 38
 		})
39 39
 		var editor<?=$i?> = CKEDITOR.inline("editor<?=$i?>", { customConfig: "<?=WEBROOT?>config/config_ckeditor.js" });
40 40
 		CKFinder.setupCKEditor( editor<?=$i?>, "<?=LIBSWEBROOT?>ckfinder/" );
41
-	<?php endfor;?>
41
+	<?php endfor; ?>
42 42
 </script>
43
-<?php require_once(ROOT."admin/views/gestion-contenus/js/inline.php");?>
44 43
\ No newline at end of file
44
+<?php require_once(ROOT."admin/views/gestion-contenus/js/inline.php"); ?>
45 45
\ No newline at end of file
Please login to merge, or discard this patch.