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

@@ 1018-1021 (lines=4) @@
1015
1016
		$result->ligne = $ligne_preaff;
1017
1018
		if ($p = strpos($type, ':')) {
1019
			$result->sql_serveur = substr($type, 0, $p);
1020
			$type = substr($type, $p + 1);
1021
		}
1022
		$soustype = strtolower($type);
1023
1024
		if (!isset($GLOBALS["table_des_tables"][$soustype])) {