Passed
Push — master ( d2bb28...8a1794 )
by Anthony
02:48
created
core/admin/contenus/GestionContenus.php 2 patches
Doc Comments   +4 added lines patch added patch discarded remove patch
@@ -268,6 +268,10 @@
 block discarded – undo
268 268
 			}
269 269
 		}
270 270
 
271
+		/**
272
+		 * @param string $id
273
+		 * @param integer $affiche
274
+		 */
271 275
 		private function setAjoutLienNavigation($id, $value_id, $affiche) {
272 276
 			if ($affiche !== null) {
273 277
 				$nav = new Navigation();
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -129,7 +129,7 @@
 block discarded – undo
129 129
 
130 130
 					$dbc->prepare("INSERT INTO page (titre, contenu, url, meta_description, balise_title, ordre, parent, affiche) VALUES (:titre, :contenu, :url, :meta_description, :balise_title, :ordre, :parent, :affiche)", $value);
131 131
 					$this->id_page = $dbc->lastInsertId();
132
-					$this->setAjoutLienNavigation("ID_page", $this->id_page , 1);
132
+					$this->setAjoutLienNavigation("ID_page", $this->id_page, 1);
133 133
 				}
134 134
 				else {
135 135
 					FlashMessage::setFlash("Impossible de créer cette page, veuillez réeseyer dans un moment. Si le problème persiste contactez votre administrateur.");
Please login to merge, or discard this patch.
core/Navigation.php 2 patches
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -90,6 +90,9 @@
 block discarded – undo
90 90
 			}
91 91
 		}
92 92
 
93
+		/**
94
+		 * @param string $id
95
+		 */
93 96
 		public function setSupprimerLien($id, $value_id) {echo("$id, $value_id");
94 97
 			$dbc = App::getDb();
95 98
 
Please login to merge, or discard this patch.
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -50,7 +50,7 @@  discard block
 block discarded – undo
50 50
 
51 51
 			if (is_array($query) && (count($query) > 0)) {
52 52
 				foreach ($query as $obj) {
53
-					return [$obj->titre,$obj->url];
53
+					return [$obj->titre, $obj->url];
54 54
 				}
55 55
 			}
56 56
 		}
@@ -69,7 +69,7 @@  discard block
 block discarded – undo
69 69
 
70 70
 			if (is_array($query) && (count($query) > 0)) {
71 71
 				foreach ($query as $obj) {
72
-					return [$obj->nom_module,$obj->url];
72
+					return [$obj->nom_module, $obj->url];
73 73
 				}
74 74
 			}
75 75
 		}
@@ -86,7 +86,7 @@  discard block
 block discarded – undo
86 86
 			$dbc = App::getDb();
87 87
 
88 88
 			if ($afficher != null) {
89
-				$dbc->insert($id, $value_id)->insert("ordre", $this->last_ordre+1)->into("navigation")->set();
89
+				$dbc->insert($id, $value_id)->insert("ordre", $this->last_ordre + 1)->into("navigation")->set();
90 90
 			}
91 91
 		}
92 92
 
Please login to merge, or discard this patch.