Code Duplication    Length = 4-4 lines in 3 locations

ecrire/public/balises.php 2 locations

@@ 1088-1091 (lines=4) @@
1085
		} else $flag_env = false;
1086
1087
		$_options = array();
1088
		if (isset($_contexte['ajax'])) {
1089
			$_options[] = preg_replace(",=>(.*)$,ims",'=> ($v=(\\1))?$v:true',$_contexte['ajax']);
1090
			unset($_contexte['ajax']);
1091
		}
1092
		if ($p->etoile) $_options[] = "'etoile'=>true";
1093
		$_options[] = "'compil'=>array(" . memoriser_contexte_compil($p) .")";
1094
@@ 1147-1150 (lines=4) @@
1144
1145
		$_options = memoriser_contexte_compil($p);
1146
		$_options = "'compil'=>array($_options), 'trim'=>true";
1147
	  if (isset($_contexte['ajax'])){
1148
		  $_options .= ", ".preg_replace(",=>(.*)$,ims",'=> ($v=(\\1))?$v:true',$_contexte['ajax']);
1149
			unset($_contexte['ajax']);
1150
	  }
1151
1152
		$page = sprintf(CODE_RECUPERER_FOND, $nom, 'array(' . join(',', $_contexte) .')', $_options, _q($connect));
1153

ecrire/public/compiler.php 1 location

@@ 170-173 (lines=4) @@
167
			$_contexte['doublons'] = "\\'doublons\\' => '.var_export(\$doublons,true).'";
168
		}
169
170
		if ($ajax = isset($_contexte['ajax'])){
171
			$ajax = preg_replace(",=>(.*)$,ims",'=> ($v=(\\1))?$v:true',$_contexte['ajax']);
172
			unset($_contexte['ajax']);
173
		}
174
175
		$_contexte = join(",\n\t", $_contexte);
176
	}