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

@@ 2033-2036 (lines=4) @@
2030
		}
2031
2032
		$_options = array();
2033
		if (isset($_contexte['ajax'])) {
2034
			$_options[] = preg_replace(",=>(.*)$,ims", '=> ($v=(\\1))?$v:true', $_contexte['ajax']);
2035
			unset($_contexte['ajax']);
2036
		}
2037
		if ($p->etoile) {
2038
			$_options[] = "'etoile'=>true";
2039
		}
@@ 2130-2133 (lines=4) @@
2127
2128
		$_options = memoriser_contexte_compil($p);
2129
		$_options = "'compil'=>array($_options), 'trim'=>true";
2130
		if (isset($_contexte['ajax'])) {
2131
			$_options .= ", " . preg_replace(",=>(.*)$,ims", '=> ($v=(\\1))?$v:true', $_contexte['ajax']);
2132
			unset($_contexte['ajax']);
2133
		}
2134
2135
		$_l = 'array(' . join(",\n\t", $_contexte) . ')';
2136
		if ($flag_env) {