Passed
Push — master ( 2bafbc...e0b597 )
by Anthony
02:41
created
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/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.
core/modules/RouterModule.php 2 patches
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -23,7 +23,7 @@  discard block
 block discarded – undo
23 23
 		public function getPage() {
24 24
 			return $this->page;
25 25
 		}
26
-		public function getModule(){
26
+		public function getModule() {
27 27
 			return $this->module;
28 28
 		}
29 29
 		public function getController() {
@@ -55,7 +55,7 @@  discard block
 block discarded – undo
55 55
 		 * Permets de générer l'url pour aller charger la page concernee pour le module blog
56 56
 		 * appele également l'actoin à effectur dans la page
57 57
 		 */
58
-		public function getUrl($url, $admin="app") {
58
+		public function getUrl($url, $admin = "app") {
59 59
 			$explode = explode("/", $url);
60 60
 			$count = count($explode);
61 61
 			$debut_url = "";
Please login to merge, or discard this patch.
Braces   +3 added lines, -6 removed lines patch added patch discarded remove patch
@@ -65,8 +65,7 @@  discard block
 block discarded – undo
65 65
 				if (in_array($explode[$i], $this->getAllModules())) {
66 66
 					$this->module = $explode[$i];
67 67
 					$debut_url = $explode[$i];
68
-				}
69
-				else if ($i >= 1) {
68
+				} else if ($i >= 1) {
70 69
 					$centre_url[] = $explode[$i];
71 70
 				}
72 71
 			}
@@ -76,8 +75,7 @@  discard block
 block discarded – undo
76 75
 			
77 76
 			if ($centre_url == "") {
78 77
 				$this->page = "index";
79
-			}
80
-			else {
78
+			} else {
81 79
 				$file = ROOT."modules/".$debut_url."/".$admin."/views/".$centre_url;
82 80
 				
83 81
 				if (!file_exists($file.".html")) {
@@ -129,8 +127,7 @@  discard block
 block discarded – undo
129 127
 			//on require le fichier routes.php dans /modules/nom_module/router/routes.php
130 128
 			if ($this->admin !== "app") {
131 129
 				require_once(MODULEROOT.$this->module."/router/admin_routes.php");
132
-			}
133
-			else {
130
+			} else {
134 131
 				require_once(MODULEROOT.$this->module."/router/routes.php");
135 132
 			}
136 133
 		}
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
@@ -50,7 +50,7 @@
 block discarded – undo
50 50
 						<label class="label label-textarea" for="meta_description" data-error="La description doit être comprise entre 10 et 158 caractères">Description de votre site pour le navigateur (maximum 256 caractères)</label>
51 51
 						<textarea name="meta_description" type-val="string" min="10" max="158" required=""><?=$meta_description?></textarea>
52 52
 					</div>
53
-				<?php endif;?>
53
+				<?php endif; ?>
54 54
 			</section>
55 55
 		<?php endif; ?>
56 56
 
Please login to merge, or discard this patch.
config/initialise.php 1 patch
Braces   +4 added lines, -3 removed lines patch added patch discarded remove patch
@@ -1,5 +1,7 @@  discard block
 block discarded – undo
1 1
 <?php
2
-	if (!isset($page_root)) $page_root = "index.php";
2
+	if (!isset($page_root)) {
3
+		$page_root = "index.php";
4
+	}
3 5
 
4 6
 	//-------------------------- CONSTANTE POUR LES ROUTES ----------------------------------------------------------------------------//
5 7
 	//definit le chemin vers la racine du projet (depuis racine serveur web
@@ -46,8 +48,7 @@  discard block
 block discarded – undo
46 48
 		if (($ini["installation"] == 1) && ($page_root != "installation.php")) {
47 49
 			header("location:".WEBROOT."installation-ribs");
48 50
 		}
49
-	}
50
-	else {
51
+	} else {
51 52
 		header("location:".WEBROOT."installation");
52 53
 	}
53 54
 	
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
@@ -15,8 +15,7 @@  discard block
 block discarded – undo
15 15
 		public function getParse($file) {
16 16
 			if (file_exists($file)) {
17 17
 				return parse_ini_file($file);
18
-			}
19
-			else {
18
+			} else {
20 19
 				return false;
21 20
 			}
22 21
 		}
@@ -33,8 +32,7 @@  discard block
 block discarded – undo
33 32
 		public function setModifierConfigIni($developpement, $dev_info) {
34 33
 			if ($developpement == "on") {
35 34
 				$developpement = 1;
36
-			}
37
-			else {
35
+			} else {
38 36
 				$developpement = 0;
39 37
 			}
40 38
 
Please login to merge, or discard this patch.