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

@@ 2009-2012 (lines=4) @@
2006
		}
2007
2008
		$_options = array();
2009
		if (isset($_contexte['ajax'])) {
2010
			$_options[] = preg_replace(",=>(.*)$,ims", '=> ($v=(\\1))?$v:true', $_contexte['ajax']);
2011
			unset($_contexte['ajax']);
2012
		}
2013
		if ($p->etoile) {
2014
			$_options[] = "'etoile'=>true";
2015
		}
@@ 2106-2109 (lines=4) @@
2103
2104
		$_options = memoriser_contexte_compil($p);
2105
		$_options = "'compil'=>array($_options), 'trim'=>true";
2106
		if (isset($_contexte['ajax'])) {
2107
			$_options .= ", " . preg_replace(",=>(.*)$,ims", '=> ($v=(\\1))?$v:true', $_contexte['ajax']);
2108
			unset($_contexte['ajax']);
2109
		}
2110
2111
		$_l = 'array(' . join(",\n\t", $_contexte) . ')';
2112
		if ($flag_env) {