Code Duplication    Length = 4-4 lines in 2 locations

ecrire/xml/valider.php 1 location

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

ecrire/public/phraser_html.php 1 location

@@ 771-774 (lines=4) @@
768
		$b = substr_count($result->avant, "\n");
769
		$a = substr_count($result->apres, "\n");
770
771
		if ($p = strpos($type, ':')){
772
			$result->sql_serveur = substr($type, 0, $p);
773
			$type = substr($type, $p+1);
774
		}
775
		$soustype = strtolower($type);
776
777
		if (!isset($GLOBALS["table_des_tables"][$soustype]))