Code Duplication    Length = 10-10 lines in 2 locations

core/Database.class.php 1 location

@@ 266-275 (lines=10) @@
263
		 *
264
		 * fonction qui permet de récupérer un select fait sur une table
265
		 */
266
		public function get() {
267
			$requete = $this->req_beginning . implode(",", $this->champs) . " FROM " . implode(",", $this->table);
268
269
			if (!empty($this->conditions)) {
270
				$requete .= " WHERE ". implode(" ", $this->conditions);
271
			}
272
273
			$this->unsetQueryBuilder();
274
			return $this->query($requete);
275
		}
276
277
		/**
278
		 * fonction utlisée pour terminer un insert ou un update dans la base de données

core/modules/Querybuilder.class.php 1 location

@@ 126-135 (lines=10) @@
123
		 *
124
		 * fonction qui permet de récupérer un select fait sur une table
125
		 */
126
		public function get() {
127
			$requete = $this->req_beginning . implode(",", $this->champs) . " FROM " . implode(",", $this->table);
128
129
			if (!empty($this->conditions)) {
130
				$requete .= " WHERE ". implode(" ", $this->conditions);
131
			}
132
133
			$this->unsetQueryBuilder();
134
			return $this->query($requete);
135
		}
136
137
		/**
138
		 * fonction utlisée pour terminer un insert ou un update dans la base de données