@@ -139,7 +139,7 @@ discard block |
||
139 | 139 | */ |
140 | 140 | public function get() { |
141 | 141 | $values = []; |
142 | - $requete = $this->req_beginning . implode(",", $this->select_champ) . " FROM " . implode(",", $this->table); |
|
142 | + $requete = $this->req_beginning.implode(",", $this->select_champ)." FROM ".implode(",", $this->table); |
|
143 | 143 | |
144 | 144 | if ((!empty($this->conditions)) || (!empty($this->conditions_table))) { |
145 | 145 | $requete .= $this->getWhereConditions()[0]; |
@@ -162,12 +162,12 @@ discard block |
||
162 | 162 | |
163 | 163 | $datas = []; |
164 | 164 | $count = count($this->champs); |
165 | - for ($i=0 ; $i<$count ; $i++) { |
|
165 | + for ($i = 0; $i < $count; $i++) { |
|
166 | 166 | $datas[] = $this->champs[$i]."=:".$this->champs[$i]; |
167 | 167 | } |
168 | 168 | |
169 | 169 | //si on a des conditions alors on sera dans un insert |
170 | - $requete = $this->req_beginning . implode(",", $this->table) . " SET " . implode(", ", $datas); |
|
170 | + $requete = $this->req_beginning.implode(",", $this->table)." SET ".implode(", ", $datas); |
|
171 | 171 | |
172 | 172 | if ((!empty($this->conditions)) || (!empty($this->conditions_table))) { |
173 | 173 | $requete .= $this->getWhereConditions()[0]; |
@@ -184,7 +184,7 @@ discard block |
||
184 | 184 | */ |
185 | 185 | public function del() { |
186 | 186 | $values = []; |
187 | - $requete = $this->req_beginning . implode(",", $this->table); |
|
187 | + $requete = $this->req_beginning.implode(",", $this->table); |
|
188 | 188 | |
189 | 189 | if (!empty($this->conditions)) { |
190 | 190 | $requete .= $this->getWhereConditions()[0]; |
@@ -238,7 +238,7 @@ discard block |
||
238 | 238 | |
239 | 239 | $count = count($this->champs_where); |
240 | 240 | |
241 | - for ($i=0 ; $i<$count ; $i++) { |
|
241 | + for ($i = 0; $i < $count; $i++) { |
|
242 | 242 | $datas[] = $this->champs_where[$i]." ".$this->conditions[$i]." :".str_replace(".", "", $this->champs_where[$i])." ".$this->closure[$i]." "; |
243 | 243 | } |
244 | 244 | } |
@@ -249,7 +249,7 @@ discard block |
||
249 | 249 | } |
250 | 250 | } |
251 | 251 | |
252 | - return [" WHERE ". implode(" ", $datas), $values]; |
|
252 | + return [" WHERE ".implode(" ", $datas), $values]; |
|
253 | 253 | } |
254 | 254 | |
255 | 255 | /** |