Code Duplication    Length = 5-5 lines in 2 locations

ecrire/req/sqlite_generique.php 2 locations

@@ 2953-2957 (lines=5) @@
2950
2951
		// Correction des dates avec INTERVAL
2952
		// utiliser sql_date_proche() de preference
2953
		if (strpos($this->query, 'INTERVAL') !== false) {
2954
			$this->query = preg_replace_callback("/DATE_(ADD|SUB)(.*)INTERVAL\s+(\d+)\s+([a-zA-Z]+)\)/U",
2955
				array(&$this, '_remplacerDateParTime'),
2956
				$this->query);
2957
		}
2958
2959
		if (strpos($this->query, 'LEFT(') !== false) {
2960
			$this->query = str_replace('LEFT(', '_LEFT(', $this->query);
@@ 2979-2983 (lines=5) @@
2976
2977
		// Correction Field
2978
		// remplace FIELD(table,i,j,k...) par CASE WHEN table=i THEN n ... ELSE 0 END
2979
		if (strpos($this->query, 'FIELD') !== false) {
2980
			$this->query = preg_replace_callback('/FIELD\s*\(([^\)]*)\)/',
2981
				array(&$this, '_remplacerFieldParCase'),
2982
				$this->query);
2983
		}
2984
2985
		// Correction des noms de tables FROM
2986
		// mettre les bons noms de table dans from, update, insert, replace...