Code Duplication    Length = 5-5 lines in 2 locations

ecrire/public/iterateur.php 1 location

@@ 224-228 (lines=5) @@
221
		if ($where = &$this->command['where']) {
222
			$menage = false;
223
			foreach($where as $k => $v) { 
224
				if (is_array($v)){
225
					if ((count($v)>=2) && ($v[0]=='REGEXP') && ($v[2]=="'.*'")) $op= false;
226
					elseif ((count($v)>=2) && ($v[0]=='LIKE') && ($v[2]=="'%'")) $op= false;
227
					else $op = $v[0] ? $v[0] : $v;
228
				} else $op = $v;
229
				if ((!$op) OR ($op==1) OR ($op=='0=0')) {
230
					unset($where[$k]);
231
					$menage = true;

ecrire/public/composer.php 1 location

@@ 525-529 (lines=5) @@
522
	// IN sur collection vide (ce dernier devrait pouvoir etre fait a la compil)
523
	$menage = false;
524
	foreach($where as $k => $v) { 
525
		if (is_array($v)){
526
			if ((count($v)>=2) && ($v[0]=='REGEXP') && ($v[2]=="'.*'")) $op= false;
527
			elseif ((count($v)>=2) && ($v[0]=='LIKE') && ($v[2]=="'%'")) $op= false;
528
			else $op = $v[0] ? $v[0] : $v;
529
		} else $op = $v;
530
		if ((!$op) OR ($op==1) OR ($op=='0=0')) {
531
			unset($where[$k]);
532
			$menage = true;