Passed
Push — master ( 369f5f...26dd04 )
by Anthony
03:00
created
core/admin/Admin.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/admin/comptes/creer_utilisateur.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/admin/contenus/gestion/creer_page_redirect.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/admin/contenus/gestion/creer_page.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/iniparser/IniParser.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/contenus/Contenus.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.
modules/messagerie/router/routes.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.
modules/bataille/router/routes.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.
modules/messagerie/app/controller/message/envoyer.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.