Passed
Push — master ( 13eaaf...076aed )
by Anthony
03:16
created
installation.php 1 patch
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -18,13 +18,11 @@
 block discarded – undo
18 18
 
19 19
 			//si c'est un controleur de base on va cerhcer dans core/admin
20 20
 			require_once("installation/controller/".$lien.".php");
21
-		}
22
-		else {
21
+		} else {
23 22
 			require("installation/controller/initialise_all.php");
24 23
 			require("installation/views/template/principal.php");
25 24
 		}
26
-	}
27
-	else {
25
+	} else {
28 26
 		$page = "installation/views/index";
29 27
 		require("installation/views/template/principal.php");
30 28
 	}
Please login to merge, or discard this patch.
installation/controller/InstallUtilisateur.php 1 patch
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -21,8 +21,7 @@  discard block
 block discarded – undo
21 21
 
22 22
 			if ($this->erreur == true) {
23 23
 				FlashMessage::setFlash("<ul>".$this->nom.$this->prenom.$this->pseudo.$this->mdp."</ul>");
24
-			}
25
-			else {
24
+			} else {
26 25
 				$this->setInscrireUtilisateur();
27 26
 
28 27
 				FlashMessage::setFlash("Le compte super admin a bien été créé", "success");
@@ -64,8 +63,7 @@  discard block
 block discarded – undo
64 63
 			if ($mdp != $verif_mdp) {
65 64
 				$this->erreur = true;
66 65
 				return "<li>Vos mots de passe sont différents</li>";
67
-			}
68
-			else {
66
+			} else {
69 67
 				return $mdp;
70 68
 			}
71 69
 		}
Please login to merge, or discard this patch.
installation/controller/configuration/utilisateur.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -8,8 +8,7 @@
 block discarded – undo
8 8
 		$_SESSION['err_user'] = true;
9 9
 
10 10
 		header("location:".WEBROOT."installation-ribs/utilisateur");
11
-	}
12
-	else {
11
+	} else {
13 12
 		\core\App::supprimerDossier(ROOT."installation");
14 13
 
15 14
 		header("location:".WEBROOT."administrator");
Please login to merge, or discard this patch.
installation/controller/bdd/install.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -10,7 +10,6 @@
 block discarded – undo
10 10
 		$_SESSION['err_db'] = true;
11 11
 
12 12
 		header("location:".WEBROOT."installation-ribs/bdd");
13
-	}
14
-	else {
13
+	} else {
15 14
 		header("location:".WEBROOT."installation-ribs/configuration");
16 15
 	}
17 16
\ No newline at end of file
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
@@ -58,8 +58,7 @@
 block discarded – undo
58 58
 					->from("page")
59 59
 					->where("ID_page", "=", $id_page)
60 60
 					->get();
61
-			}
62
-			else {
61
+			} else {
63 62
 				$query = $dbc->select("balise_title")->select("meta_description")->select("ID_page")
64 63
 					->from("page")
65 64
 					->where("url", " LIKE ", $url)
Please login to merge, or discard this patch.
core/Cache.php 1 patch
Braces   +3 added lines, -6 removed lines patch added patch discarded remove patch
@@ -60,8 +60,7 @@  discard block
 block discarded – undo
60 60
 					$this->reload_cache = $obj->reload_cache;
61 61
 					$this->no_cache = $obj->no_cache;
62 62
 				}
63
-			}
64
-			else {
63
+			} else {
65 64
 				$dbc->insert("nom_fichier", $this->page)->insert("reload_cache", 0)->into("cache")->set();
66 65
 
67 66
 				$this->reload_cache = 0;
@@ -107,16 +106,14 @@  discard block
 block discarded – undo
107 106
 					require_once($this->chemin_cache);
108 107
 
109 108
 					return true;
110
-				}
111
-				else {
109
+				} else {
112 110
 					if ($this->no_cache == null) {
113 111
 						ob_start();
114 112
 					}
115 113
 
116 114
 					return false;
117 115
 				}
118
-			}
119
-			else {
116
+			} else {
120 117
 				return false;
121 118
 			}
122 119
 		}
Please login to merge, or discard this patch.
core/functions/ChaineCaractere.php 1 patch
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -44,8 +44,7 @@  discard block
 block discarded – undo
44 44
 		public static function FindInString($string, $find) {
45 45
 			if (strpos($string, $find) !== false) {
46 46
 				return true;
47
-			}
48
-			else {
47
+			} else {
49 48
 				return false;
50 49
 			}
51 50
 		}
@@ -58,8 +57,7 @@  discard block
 block discarded – undo
58 57
 		public static function alphaNumeric($string) {
59 58
 			if (!preg_match('/^[a-zA-Z0-9]+$/', $string)) {
60 59
 				return false;
61
-			}
62
-			else {
60
+			} else {
63 61
 				return true;
64 62
 			}
65 63
 		}
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
@@ -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/admin/contenus/gestion/supprimer_page.php 1 patch
Braces   +5 added lines, -10 removed lines patch added patch discarded remove patch
@@ -10,29 +10,24 @@
 block discarded – undo
10 10
 			if ($gestion_contenu->getErreur() !== true) {
11 11
 				\core\HTML\flashmessage\FlashMessage::setFlash("La page a bien été supprimée", "success");
12 12
 				header("location:".ADMWEBROOT."gestion-contenus/index");
13
-			}
14
-			else {
13
+			} else {
15 14
 				header("location:".ADMWEBROOT."gestion-contenus/modifier-contenu?id=".$_GET['id']);
16 15
 			}
17
-		}
18
-		else {
16
+		} else {
19 17
 			\core\HTML\flashmessage\FlashMessage::setFlash("Vous n'avez pas le droit de supprimer cette page");
20 18
 
21 19
 			if (isset($_GET['id'])) {
22 20
 				header("location:".ADMWEBROOT."gestion-contenus/modifier-contenu?id=".$_GET['id']);
23
-			}
24
-			else {
21
+			} else {
25 22
 				header("location:".ADMWEBROOT."gestion-contenus/index");
26 23
 			}
27 24
 		}
28
-	}
29
-	else {
25
+	} else {
30 26
 		\core\HTML\flashmessage\FlashMessage::setFlash("Vous n'avez pas le droit de supprimer cette page");
31 27
 
32 28
 		if (isset($_GET['id'])) {
33 29
 			header("location:".ADMWEBROOT."gestion-contenus/modifier-contenu?id=".$_GET['id']);
34
-		}
35
-		else {
30
+		} else {
36 31
 			header("location:".ADMWEBROOT."gestion-contenus/index");
37 32
 		}
38 33
 	}
39 34
\ No newline at end of file
Please login to merge, or discard this patch.