Code Duplication    Length = 4-4 lines in 3 locations

ecrire/public/compiler.php 1 location

@@ 206-209 (lines=4) @@
203
			$_contexte['doublons'] = "\\'doublons\\' => '.var_export(\$doublons,true).'";
204
		}
205
206
		if ($ajax = isset($_contexte['ajax'])) {
207
			$ajax = preg_replace(",=>(.*)$,ims", '=> ($v=(\\1))?$v:true', $_contexte['ajax']);
208
			unset($_contexte['ajax']);
209
		}
210
211
		$_contexte = join(",\n\t", $_contexte);
212
	} else {

ecrire/public/balises.php 2 locations

@@ 1984-1987 (lines=4) @@
1981
		}
1982
1983
		$_options = array();
1984
		if (isset($_contexte['ajax'])) {
1985
			$_options[] = preg_replace(",=>(.*)$,ims", '=> ($v=(\\1))?$v:true', $_contexte['ajax']);
1986
			unset($_contexte['ajax']);
1987
		}
1988
		if ($p->etoile) {
1989
			$_options[] = "'etoile'=>true";
1990
		}
@@ 2081-2084 (lines=4) @@
2078
2079
		$_options = memoriser_contexte_compil($p);
2080
		$_options = "'compil'=>array($_options), 'trim'=>true";
2081
		if (isset($_contexte['ajax'])) {
2082
			$_options .= ", " . preg_replace(",=>(.*)$,ims", '=> ($v=(\\1))?$v:true', $_contexte['ajax']);
2083
			unset($_contexte['ajax']);
2084
		}
2085
2086
		$_l = 'array(' . join(",\n\t", $_contexte) . ')';
2087
		if ($flag_env) {