Code Duplication    Length = 4-4 lines in 2 locations

ecrire/xml/valider.php 1 location

@@ 52-55 (lines=4) @@
49
					$fils = $this->dtc->elements[$pere];
50
					#spip_log("rejeton $name fils " . @join(',',$fils));
51
					if (!($p = @in_array($name, $fils))) {
52
						if ($p = strpos($name, ':')) {
53
							$p = substr($name, $p + 1);
54
							$p = @in_array($p, $fils);
55
						}
56
					}
57
					if (!$p) {
58
						$bons_peres = @join('</b>, <b>', $this->dtc->peres[$name]);

ecrire/public/phraser_html.php 1 location

@@ 1072-1075 (lines=4) @@
1069
1070
		$result->ligne = $ligne_preaff;
1071
1072
		if ($p = strpos($type, ':')) {
1073
			$result->sql_serveur = substr($type, 0, $p);
1074
			$type = substr($type, $p + 1);
1075
		}
1076
		$soustype = strtolower($type);
1077
1078
		if (!isset($GLOBALS["table_des_tables"][$soustype])) {