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

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