Passed
Push — master ( d5a1bb...855a75 )
by Anthony
02:58
created
core/database/Querybuilder.php 2 patches
Doc Comments   +5 added lines patch added patch discarded remove patch
@@ -119,6 +119,7 @@  discard block
 block discarded – undo
119 119
 
120 120
 		/**
121 121
 		 * @param string $order
122
+		 * @param string $type
122 123
 		 */
123 124
 		public function orderBy($order, $type = null) {
124 125
 			if ($type === null) $type = "ASC";
@@ -128,6 +129,10 @@  discard block
 block discarded – undo
128 129
 			return $this;
129 130
 		}
130 131
 
132
+		/**
133
+		 * @param integer $debut
134
+		 * @param integer $fin
135
+		 */
131 136
 		public function limit($debut, $fin) {
132 137
 			$this->limit = " LIMIT ".$debut.", ".$fin." ";
133 138
 
Please login to merge, or discard this patch.
Braces   +4 added lines, -3 removed lines patch added patch discarded remove patch
@@ -108,8 +108,7 @@  discard block
 block discarded – undo
108 108
 
109 109
 			if ($no_bind === true) {
110 110
 				$this->conditions_table[] = $champ.$cond.$champ_test." ".$closure;
111
-			}
112
-			else {
111
+			} else {
113 112
 				$this->conditions[] = $cond;
114 113
 				$this->addWhere($champ, $champ_test);
115 114
 			}
@@ -121,7 +120,9 @@  discard block
 block discarded – undo
121 120
 		 * @param string $order
122 121
 		 */
123 122
 		public function orderBy($order, $type = null) {
124
-			if ($type === null) $type = "ASC";
123
+			if ($type === null) {
124
+				$type = "ASC";
125
+			}
125 126
 
126 127
 			$this->order_by = " ORDER BY ".$order." ".$type." ";
127 128
 
Please login to merge, or discard this patch.
core/admin/contenus/gestion/modifier_contenus.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -10,7 +10,7 @@
 block discarded – undo
10 10
 			$meta_description = $_POST['meta_description'];
11 11
 			$titre_page = $_POST['titre_page'];
12 12
 			$parent = $_POST['parent_texte'];
13
-			$contenu = $_POST['contenu'];echo("dgfdgf");
13
+			$contenu = $_POST['contenu']; echo("dgfdgf");
14 14
 		}
15 15
 		else {
16 16
 			$contenu_class->getHeadPage($_POST['id_page']);
Please login to merge, or discard this patch.
core/admin/contenus/GestionContenus.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -136,7 +136,7 @@  discard block
 block discarded – undo
136 136
 						->set();
137 137
 
138 138
 					$this->id_page = $dbc->lastInsertId();
139
-					$this->setAjoutLienNavigation("ID_page", $this->id_page , 1);
139
+					$this->setAjoutLienNavigation("ID_page", $this->id_page, 1);
140 140
 				}
141 141
 				else {
142 142
 					FlashMessage::setFlash("Impossible de créer cette page, veuillez réeseyer dans un moment. Si le problème persiste contactez votre administrateur.");
@@ -203,7 +203,7 @@  discard block
 block discarded – undo
203 203
 						->update("parent", $parent)
204 204
 						->update("affiche", $affiche)
205 205
 						->from("page")
206
-						->where("ID_page", "=", $id_page,"",true)
206
+						->where("ID_page", "=", $id_page, "", true)
207 207
 						->set();
208 208
 
209 209
 					$this->setModifierLienNavigation("ID_page", $id_page, $this->getParentId($parent), $affiche);
Please login to merge, or discard this patch.